robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23k stars 3.02k forks source link

Masscan doesn’t resolve MAC addresses in the same subnet #724

Open Hex27 opened 1 year ago

Hex27 commented 1 year ago

Masscan seems to only perform ARP requests to find the gateway, making it resolve any host IP, even those in the same subnet, to the gateway’s mac address.

This causes some false negatives for machines in the same subnet if the gateway decides not to forward the tcp packet to the same subnet

I understand that ARP requests are a little out of scope for a scanner like masscan, so could it perhaps be documented somewhere on the main page? Or perhaps a warning of some sort could be displayed when attempting to scan the same subnet?