- Sleeping Sheep Hackers… - http://sleepingsheephackers.org -

A wrapper script for big nmap scans with not enough time

Dieser Eintrag stammt von matti Am 9.10.2009 @ 13:57 In hacking | Keine Kommentare

#!/usr/local/bin/bash
#
# Usage example:./netnmap hosts.txt
#

# Some vars
nmap=/usr/local/bin/nmap

# Command line
filename=$1

# Local fuctions
function usage() {
echo “”
echo “nmap scanner helper script”
echo “usage  : ./netnmap <filename>”
exit 1
}

# Input control
if [ -z “$1″  ]; then
usage
fi

if [ “`cat $filename 2>/dev/null`” = “” ]; then
echo “err: corrupted hosts file?”
exit 1
fi

# Perform the port scan (full tcp scan)
for current in `cat $filename`
do
$nmap -n –min-rate 1000 -vvvv –max-rtt-timeout 1000 –initial-rtt-timeout 400 –max-retries 4 -p1-65535 -PN -oA $current.scan $current &
sleep 60
done

exit 0


Dieser Artikel wurde ausgedruckt ab Sleeping Sheep Hackers…: http://sleepingsheephackers.org

URL zum Artikel: http://sleepingsheephackers.org/2009/10/09/big-nmap-scans-with-not-enough-time/

Klicken hier zum Drucken.