PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Linux Bash Nmap Netmask Notation Examples

Go down

Linux Bash Nmap Netmask Notation Examples Empty Linux Bash Nmap Netmask Notation Examples

Post by jamied_uk 3rd January 2018, 22:16

Example 1


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)
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum