Aug 26, 2016 10:13 AM
(This post was last modified: Aug 26, 2016 10:25 AM by kdlsw.)
Hi, I just tried dnsspoof on Kali, and it did not work in an interesting way. Here is what I did, I start the arpspoof first, with ip forwarding, the man in the middle works. Then I started the apache server, and the dnsspoof with a config file, mapping some address to kali local ip. And this is what I got when the target is trying to connect those address
Now this is why I thought to be interesting, target ip is 192.168.0.108, kali ip is 192.168.0.112, but there are two layers of router, one router is connected to wan directly, and it has a gateway 192.168.1.1, under it, there is a second router with a gateway of 192.168.0.1. The target was not redirected to kali's apache, but still able to reach the right web.
I am not sure how the dnsspoof works on kali, but theoretically, regardless if the request from target is going through the outter router or not, the real webpage package should always pass through kali, and with the dnsspoof running, it should be stopped, if I understand it correctly.
Is this issue due to the two layers of router? Should I arpspoof between the outter one and the target? Please, any idea will be appreciated, thanks!
Code
root@kali:~# dnsspoof -i eth0 -f dnshost.spoof
dnsspoof: listening on eth0 [udp dst port 53 and not src 192.168.0.112]
192.168.0.108.56523 > 192.168.1.1.53: 26782+ A? somelinkhere
192.168.0.108.56523 > 192.168.1.1.53: 26782+ A? somelinkhere
192.168.0.108.57090 > 192.168.1.1.53: 21153+ A? somelinkhere
192.168.0.108.57090 > 192.168.1.1.53: 21153+ A? somelinkhere
^Croot@kali:~gedit dnshost.spoof
root@kali:~# dnsspoof -i eth0 -f dnshost.spoof
dnsspoof: listening on eth0 [udp dst port 53 and not src 192.168.0.112]
192.168.0.108.62281 > 192.168.1.1.53: 10039+ A? someotherlinkhere
192.168.0.108.62281 > 192.168.1.1.53: 10039+ A? someotherlinkhere
192.168.0.108.62281 > 192.168.0.1.53: 10039+ A? someotherlinkhere
192.168.0.108.62281 > 192.168.0.1.53: 10039+ A? someotherlinkhereNow this is why I thought to be interesting, target ip is 192.168.0.108, kali ip is 192.168.0.112, but there are two layers of router, one router is connected to wan directly, and it has a gateway 192.168.1.1, under it, there is a second router with a gateway of 192.168.0.1. The target was not redirected to kali's apache, but still able to reach the right web.
I am not sure how the dnsspoof works on kali, but theoretically, regardless if the request from target is going through the outter router or not, the real webpage package should always pass through kali, and with the dnsspoof running, it should be stopped, if I understand it correctly.
Is this issue due to the two layers of router? Should I arpspoof between the outter one and the target? Please, any idea will be appreciated, thanks!


