| 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. | #!/bin/bash
if [ x"${1}" = x"" ] ; then
echo
echo "Nmap Random ip List"
echo
echo "Author: homen3 <[email protected]>"
echo "License: GPL"
echo
echo "Usage: nmap-random.sh [PORT]"
##### ################################################################################
echo
exit
fi
function isint() {
ret=0
test -z $1 -o -n "$(echo $1 | grep '^-\?[0-9]\+$')" || ret=1
return $ret
}
if isint "1" ; then
echo
echo "this can take a while. get a coffe."
nmap -v -iR 100000 -P0 -p $1 | tee /tmp/random-scan-at-$1
cat /tmp/random-scan-at-$1 | grep Discovered > random-scan-result
rm /tmp/random-scan-at-$1
exit
fi
|