nsbin/kill_win
Nico Schottelius d3c6e29902 Initial commit
2006-07-20 09:54:37 +02:00

15 lines
269 B
Bash
Executable file

#!/bin/sh
BASE_IP=213.173
for ip in `seq 0 255`; do
real_ip="$BASE_IP.$1.$ip"
is_win=""
is_win=`nmap -p 139 $real_ip | grep 139/tcp`
if [ -n "$is_win" ]; then
smbclient -N -W MSHEIMNETZ -L $real_ip
fi
done
# ./smbnuke 213.173.$ip.255; done