Hi,
I have successfully reached step 4, which is to setup my gateway and tested. My "victim" can reach the internet through "wlan0" home network and the traffic goes out through "eth0".
However, the next few steps were pretty frustrating. Looking at Mallory log, it seems that either mallory didn't forward the DNS lookup request to the correct DNS.
sending data from ('10.0.0.10', 50120) to ('10.0.0.1', 53)
Waiting for data
Terminating thread for (10.0.0.10, 50120) No more data
10.0.0.1 is the mallory gateway, 10.0.0.10 is the "victim". I don't know why mallory forwarded DNS request to itself.
I have to do a hack here in line 186 of base.py:
#Get real destiation
rdst, rpt = nftool.getrealdest_ct(caddr[0], caddr[1])
rdst = "<insert my ISP DNS server IP here>"
raddr = (rdst, rpt)
And everything seems to be working. This is definitely NOT the correct solution. It seems there are some minute changes I got to make. I am not sure where.
Anyone?
Thanks in advance.
Regards,
Choong Leong