Useful Scans

#Host_discovery Scans:

Best method to scan ports:

Open Prorts scan:

nmap --open -p0- -n -Pn -vvv --min-rate 5000 -oG nmap/port_scan

Then Service versions scan for each port:

nmap -p<discoverd_ports> -n -Pn -vvv -sCV --min-rate 5000 -oN nmap/open_port

#port_scan Scans:

TCP scan:

Scans all TCP ports and their versions and guess OS

nmap -sS -sV -O -p- -T4

UDP Scan:

Scans all UDP ports and their versions and guess OS

nmap -sU -sV -O -p- -T4

Stealth Scans: