#851·masscan

masscan ignores port specification (built from source)

Author: LeoMerlinoCreated Jun 14, 2026Updated Jun 14, 2026

When specifying the port to scan, e.g., -p22 masscan will scan all 65536 ports instead. This only occurs on the version build from source. From source:

sudo bin/masscan 0.0.0.0/0 -p5900
Starting masscan 1.3.2 (http://bit.ly/14GZzcT) at 2026-06-14 18:48:53 GMT
Initiating SYN Stealth Scan
Scanning 3969658877 hosts [65536 ports/host]

Kali package:

sudo masscan 0.0.0.0/0  -p5900
Starting masscan 1.3.2 (http://bit.ly/14GZzcT) at 2026-06-14 18:49:38 GMT
Initiating SYN Stealth Scan
Scanning 4294967295 hosts [1 port/host]

Source: robertdavidgraham/masscan