Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

nmap to scan specific ports on specific list of IP's

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading