I am using nmap to scan all open ports on all IP's connected with local network.
I want to check specific ports on All list of IP's which is being picked from txt file.
So is it possible to specify list of ports along with list of ip's? i.e nmap (specfic ports) -sS -iL ip_list.txt something like this
CodePudding user response:
You can use -p
nmap -p80,443 -sS -iL ip_list.txt
From documentation
-p : Only scan specified ports Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9
If you just want the open ports, you can add --open
nmap -p80,443 --open -sS -iL ip_list.txt