Nmap is a free and open-source utility used for network exploration and security auditing
Basic
Think ip = 192.168.0.101 Basic command for nmap:
nmap 192.168.0.101
Scan top 1000 ports
nmap -vvv 192.168.0.101
print only open ports
nmap -T5 -A -Pn -sC -p21,22,80,445 192.168.0.101
-T5
= Fastest scan
-A
= Enable OS detection, version detection, script scanning, and traceroute
-p
= Port number what should scan
-Pn
= Scan ports without ping
-sC
= default script
Some useful flags
-iL
= Input from list of hosts/networks-sS
= TCP SYN-p
= Port number what should scan-sV
= Open port service/version info-sC
= equivalent to —script=default-O
= Enable OS detection-oN
= Output file in.txt
format-v
= Increase verbosity level (use-vv
or more for greater effect)-A
= Enable OS detection, version detection, script scanning, and trace-route