Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Nmap Cheatsheet

Scan for a single port on a range of IP addresses.

nmap -p $PORT_NUMBER 192.168.1.*

If you want to scan all IPs from 192.168.0.0 to 192.168.2.255, you could use a - like so:

nmap -p 80 192.168.0-2.*

References

Last updated: 28th December 2020
First published: 28th December 2020