pastebin - collaborative debugging tool
kpaste.net RSS


Untitled
Posted by Anonymous on Wed 24th Apr 2013 11:00
raw | new post
view followups (newest first): Untitled by Anonymous

  1.  
  2. from httplib2 import Http
  3. from urllib import urlencode
  4. import random
  5. numberofthreads=10
  6. import threading
  7.  
  8. a=0
  9. class fuckingthread ( threading.Thread ):
  10.   def run ( self ):
  11.     a=0
  12.     while 1:
  13.       a+=1
  14.       h = Http(disable_ssl_certificate_validation=True)
  15.       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'}
  16.  
  17.  
  18.       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'}
  19.       resp, content = h.request("https://www2.axeapollo.com/gateway.php?action=User.register", "POST" ,headers=headers, body=urlencode(data))
  20.       #print resp
  21.       print content
  22.  
  23.      
  24.       print ""
  25.       cook = resp['set-cookie']
  26.      
  27.       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]
  28.  
  29.      
  30.       data = {'userId': '122849', 'options[type]':'user','locale': 'en_GB'}
  31.       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'}
  32.      
  33.       resp, content = h.request("https://www2.axeapollo.com/gateway.php?action=User.vote", "POST" ,headers=headers, body=urlencode(data))
  34.       #print resp
  35.       print content
  36.       print a
  37.  
  38. for i in range(numberofthreads):
  39.   currentthread = fuckingthread()
  40.   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