Port Scan
Last updated
Last updated
Identify online hosts using .
Save all online hosts to a file. This will be used to only scan machines that are online.
Identify all open ports using the -p-
flag.
Gather more detailed information of the open ports by using the -A
flag.
Make sure you have the file where online targets are saved. In this example we have the following targets: 172.16.1.5, 172.16.1.6, 172.16.1.100
Syntax: nmap -T4 -p- -iL [Filename] -Pn
For detailed scans, we will be utilizing the -A
flag. This will perform OS detection, service detection, script scanning, and traceroute.
Once you identified all open ports of your target machines, you may then perform a detailed scan for those individual machines. One thing to note, you may also add the -A
flag when identifying all ports of the target machines. The downside is that it will take a longer time for the scan to finish.
Syntax: nmap -T4 -p [port1, port2, port3...] -A [IP] -Pn