pastebin - collaborative debugging tool
kpaste.net RSS


Untitled
Posted by Anonymous on Wed 24th Apr 2013 11:03
raw | new post
modification of post by Anonymous (view diff)

  1. from httplib2 import Http
  2. from urllib import urlencode
  3. import random
  4. numberofthreads=10
  5. import threading
  6.  
  7. a=0
  8. class fuckingthread ( threading.Thread ):
  9.   def run ( self ):
  10.     a=0
  11.     while 1:
  12.       a+=1
  13.       h = Http(disable_ssl_certificate_validation=True)
  14.       data = {'user[_explicitType]': 'User', 'user[firstName]': str(''.join(random.choice("abcdefghij") for x in range(14))), 'user[lastName]': str(''.join(random.choice("abcdefghij") for x in range(14))), 'user[emailAddress]': str(''.join(random.choice("abcdefghij") for x in range(14))) + '@yahoo.com' , 'user[dateOfBirth]':'1987-12-13', 'user[origin]': 'hub', 'user[locale]':'en_GB', 'user[facebookConnected]': 'false', 'user[vkontaktConnected]':'false', 'user[isMobile]':'false', 'user[password]': str(''.join(random.choice("abcdefghij") for x in range(14))), 'createTemporarySubmission':'false', 'locale':'en_GB'}
  15.  
  16.  
  17.       headers = {'Content-type': 'application/x-www-form-urlencoded','User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)','Referer': 'https://www2.axeapollo.com/en_GB/register'}
  18.       resp, content = h.request("https://www2.axeapollo.com/gateway.php?action=User.register", "POST" ,headers=headers, body=urlencode(data))
  19.       #print resp
  20.       print content
  21.  
  22.      
  23.       print ""
  24.       cook = resp['set-cookie']
  25.      
  26.       cook = cook[cook.rfind("PHPSESSID"):cook[cook.rfind("PHPSESSID"):].find(";") + cook.rfind("PHPSESSID") + 1] + cook[cook.rfind("axeapollo"):cook[cook.rfind("axeapollo"):].find(";") + cook.rfind("axeapollo") + 1] + cook[cook.rfind("AWSELB"):cook[cook.rfind("AWSELB"):].find(";") + cook.rfind("AWSELB") + 1] + cook[cook.rfind("AXEASAA"):cook[cook.rfind("AXEASAA"):].find(";") + cook.rfind("AXEASAA") + 1]
  27.  
  28.      
  29.       data = {'userId': '358075', 'options[type]':'user','locale': 'en_GB'}
  30.       headers = {'Cookie': cook,'Content-type': 'application/x-www-form-urlencoded; charset=utf-8','User-Agent': 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)','Accept': 'application/json','Referer': 'https://www2.axeapollo.com/en_GB/358075/erika-treial/','X-Requested-With': 'XMLHttpRequest','X-Request': 'JSON', 'Pragma': 'no-cache'}
  31.      
  32.       resp, content = h.request("https://www2.axeapollo.com/gateway.php?action=User.vote", "POST" ,headers=headers, body=urlencode(data))
  33.       #print resp
  34.       print content
  35.       print a
  36.  
  37. for i in range(numberofthreads):
  38.   currentthread = fuckingthread()
  39.   currentthread.start()

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at