Advertisement
Guest User

Untitled

a guest
Apr 16th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.86 KB | None | 0 0
  1. import requests
  2. def register(self):
  3.     self.session = requests.session()
  4.     self.headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246'}
  5.     self.session.headers.update(self.headers)
  6.     r = self.session.get('https://legacy.hackerexperience.com')
  7.     print(r) #Had to print shit, for no errors
  8.     #Here your 2captcha thing, please set g-recaptcha-response
  9.     username = "randominputplease"
  10.     password = "randominputplease"
  11.     email = "randominputplease" + "%40mailinator.com"
  12.     recaptcharesponse = "ur response"
  13.     payload = {"username=" + username + "&password=" + password + "&email=" + email +"&g-recaptcha-response="+ recaptcharesponse + "&terms=1"}
  14.     self.session.post('https://legacy.hackerexperience.com/register', data=payload)
  15. register("self")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement