kill_win 269 Bytes
Newer Older
Nico Schottelius's avatar
Nico Schottelius committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/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