Linux Bash Nmap Netmask Notation Examples
Page 1 of 1
Linux Bash Nmap Netmask Notation Examples
Example 1
Find ip with /24 notation example
Example 2 (For NMAP)
Find ip with /24 notation example 2
Find ip with /24 notation example
- Code:
ip addr show | grep eth1 | grep inet | awk '{print $2}' | cut -d "/" -f 2
Example 2 (For NMAP)
Find ip with /24 notation example 2
- Code:
nmap -sP $(ip addr show | grep eth1 | grep inet | awk '{print $2}' | cut -d "/" -f 1) /$
ip addr show | grep eth1 | grep inet | awk '{print $2}' | cut -d "/" -f 2)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|