Difference between revisions of "Nmap"

From DevOps Notebook
Line 2: Line 2:
 
<pre>
 
<pre>
 
$ nmap -sP -PR 10.5.12.0/24
 
$ nmap -sP -PR 10.5.12.0/24
 +
</pre>
 +
== Find unused IP in subnet with nmap ==
 +
<pre>
 +
$ nmap -v -sn -n 64.68.193.0/24 -oG - | awk '/Status: Down/{print $2}'
 
</pre>
 
</pre>

Revision as of 11:50, 10 March 2021

Scan network for used ip address in a range

$ nmap -sP -PR 10.5.12.0/24

Find unused IP in subnet with nmap

$ nmap -v -sn -n 64.68.193.0/24 -oG - | awk '/Status: Down/{print $2}'