Add 'expandcidr.sh'

This commit is contained in:
CURSORBLOCK 2022-09-20 00:54:10 +00:00
parent f78d929f0e
commit 33d1493661
1 changed files with 13 additions and 0 deletions

13
expandcidr.sh Normal file
View File

@ -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