Guest User

Untitled

a guest
Apr 11th, 2012
126
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2.  
  3. import socks
  4. #google it, it's a common python extension
  5. import socket
  6. #127.0.0.1:9050 is the default TOR socks4 proxy
  7. #this connects to TOR
  8. socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS4, "127.0.0.1", 9050)
  9. socket.socket = socks.socksocket
  10. from httplib import *
  11. from urllib import *
  12. import random
  13. import time
  14. import hashlib
  15.  
  16. times = 1
  17. while 1:
  18.     ############DOX############
  19.     doxrand = random.choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890')
  20.     dox = hashlib.sha224(doxrand).hexdigest()
  21.     print dox
  22.     #doxrand = picking a random character
  23.     #dox = SHA hashing of the random character defined in doxrand
  24.     ##############NAEM###########
  25.     naemrand = random.choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890')
  26.     naem = hashlib.sha224(naemrand).hexdigest()
  27.     print naem
  28.     #same as above
  29.     ##############
  30.  
  31.     connection = HTTPConnection("doxbinumfxfyytnh.onion")
  32.     #establishing HTTP conenction to website
  33.     head = {"Content-Type" : "application/x-www-form-urlencoded", "Accept" : "text/plain"}
  34.     #constructing the header, so the webserver will respond properly
  35.     parameters = urlencode({"naem" : naem, "dox" : dox})
  36.     #defining the data to be used during POST, note naem and dox refer to the random strings from ealier
  37.     #they must correspond to the ID fields from the web form, otherwise..it won't work
  38.     connection.request("POST", "/post.php", parameters, head)
  39.     #pushing the data to the post function of the php file
  40.     print 'Connection OK...Continuing..'
  41.     print 'Spammed',
  42.     print times,
  43.     print 'times!'
  44.     times = times + 1
  45.     time.sleep(30) #in seconds
  46.     #self explanitory
RAW Paste Data