nmap local scan code example
Example 1: nmap ping sweep
nmap -sP 172.31.1-255.1-255 # quick ping sweep (no port scanning)
Example 2: nmap scan network ip
sudo nmap -sP 10.10.0.0/24
nmap -sP 172.31.1-255.1-255 # quick ping sweep (no port scanning)
sudo nmap -sP 10.10.0.0/24