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 scans all ports, regardless of what -p is set to #709

Closed ghost closed 8 months ago

ghost commented 1 year ago

image

tested on 1.3.2 and github master

BasToTheMax commented 1 year ago

Use -p 80 (with a space between the p and the 80)

robertdavidgraham commented 8 months ago

Both -p80 and -p 80 should work just fine. I'm at a loss here. I suspect there's a setting in /etc/masscan/masscan.conf that somebody added for all ports. If you remove the -p80 completely, it should tell you that no ports were configured and refuse to run. This would confirm a setting in the conf file. Or you could look in /etc/masscan and see if it's there.