This commit is contained in:
your-favorite-hacker
2015-05-30 16:41:32 +02:00
commit adede3bd0f
2 changed files with 128 additions and 0 deletions

14
generateRandomIP.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
#
if [ $# -ne 1 ];
then
echo 'generate random ips with nmap'
echo '<count>'
echo
exit
fi
cnt=$1
nmap -n -iR $cnt --exclude 127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,224-255.-.-.- -sL | cut -d ' ' -f 5 |grep -v addresses |grep -v nmap > rIP.txt