Add 'expandcidr.sh'
This commit is contained in:
parent
f78d929f0e
commit
33d1493661
|
@ -0,0 +1,13 @@
|
|||
# $1 - input filename
|
||||
# $2 - output filename
|
||||
# $3 - Randomize output number
|
||||
|
||||
# Help
|
||||
|
||||
|
||||
if [ -z "$3"]
|
||||
then
|
||||
nmap -sL -n -iL $1 | grep 'Nmap scan report for' | cut -f 5 -d ' ' > $2
|
||||
else
|
||||
nmap -sL -n -iL $1 | grep 'Nmap scan report for' | cut -f 5 -d ' ' | shuf -n $3 > $2
|
||||
fi
|
Reference in New Issue