DNS spoof/poison
Domain Name System (DNS) spoofing involves sending fake and malicious DNS query to a target machine, causing its DNS cache to be poisoned.
dSniff's dnsspoof tool
Installation
$ sudo apt install dsniffUsage
$ echo "<attacker_ip_addr> *.example.com" > path/to/hostsfile
$ cat path/to/hostsfile
<attacker_ip_addr> *.example.comAlternative method
Demonstration
Assume the following parameters:
Attacker machine
Actual gateway
Attacker machine: Run a malicious DNS server (assume a MitM position has been established)
Victim machine: Ping a subdomain of the target root domain (trustme.gohxiangzheng.com)
Attacker machine: DNS query display
Victim machine: Poisoning of the victim's local DNS cache
View & flush DNS cache on Windows
To view the local DNS cache
To flush the local DNS cache
Prevention methods
1. Use secure DNS
Last updated
