Port Scanning with Nmap
Default nmap scan: nmap <IP_HERE>
- This performs a SYN scan against the top 1000 ports.
It's important to keep in mind that when running an nmap scan against Windows OS is that we should use the -Pn flag due to ICMP requests being disabled by the host firewall.
Scan for entire TCP port range: nmap -Pn -p- <IP_HERE>
Scan only top 100 ports: nmap -Pn -F <IP_HERE>
-F= fast scan
Perform UDP scan: nmap -Pn -sU <IP_HERE>
Perform Service Version scan: nmap -Pn -F -sV <IP_HERE>
-sV= service version
Perform Operating System scan: nmap -Pn -F -sV -O <IP_HERE>
-O= OS scan
Perform Script Scan: nmap -Pn -F -sV -O -sC <IP_HERE>
-sC= script scan
Output results: -oN test.txt || -oX test.xml
Lab Results: nmap -Pn -p- -T4 10.3.22.198 or nmap -Pn -sV -T4 -F 10.3.22.198