Port scanning
Port scanning is the process of probing a host for open ports to determine which services are running. Tools like nmap
or masscan
can be used to identify open ports and the services behind them.
Useful scans
Scanning for open ports using Live of the land (LOTL) technique:
Windows
Linux
Scans using nmap
:
Command options:
-Pn
: skip host discovery.
-p-
: scan all ports (not recommended at first).
-p <ports>
: scan specific ports
sV
: enumerate for version.
sC
: run default script for enumeration.
oN <output_file>
: output results in normal format - ALWAYS DOCUMENT YOUR SCANS
sU
: UDP scan.
sT
: TCP scan.
sS
: SYN scan.
Last updated