DEV Community


Posted on


Detect man in the Middle

nmap -sn --script=sniffer-detect

"sn" This command is for "ping" scan, but it will not necessarily do an ICMP request.

"--script" This will tell Nmap to run a script. In this case, it was "sniffer-detect."

"sniffer-detect" This was the script name that we used for detecting the sniffer.

"" This is the target network that may be compromised. In this case, this may not always work, so you can also scan the whole network by adding /24 after the gateway address. For example, in this case, it would be

Alt Text

Top comments (0)

Advice For Junior Developers

Advice from a career of 15+ years for new and beginner developers just getting started on their journey.