hlsdk

Even better login info. Verified and works

Jun 27th, 2012
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.75 KB | None | 0 0
  1. import pkcs1, rsa
  2. import math, json, urllib, httplib, random
  3. import base64
  4.  
  5. params = urllib.urlencode({'username': 'hlsdk5'})
  6. headers = {"Content-type": "application/x-www-form-urlencoded", \
  7.            "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0"}
  8.  
  9. conn = httplib.HTTPSConnection("steamcommunity.com");
  10. conn.request("POST", "/login/getrsakey/", params, headers);
  11.  
  12. response = conn.getresponse();
  13. publicKeyJSON = json.loads(response.read());
  14.  
  15. steamPublicRSAKey = pkcs1.keys.RsaPublicKey(int(publicKeyJSON["publickey_mod"], 16), int(publicKeyJSON["publickey_exp"], 16));
  16. pK = rsa.PublicKey(int(publicKeyJSON["publickey_mod"], 16), int(publicKeyJSON["publickey_exp"], 16));
  17.  
  18. encryptedPassword = base64.encodestring(rsa.encrypt('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', pK))
  19.  
  20. params = urllib.urlencode({                                              \
  21.                             'redir': 'http://steamcommunity.com/actions/RedirectToHome',
  22.                             'password': encryptedPassword,               \
  23.                             'username': 'hlsdk5',                        \
  24.                             'emailauth': 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',                           \
  25.                             'captcha_text': '',                        \
  26.                             'emailsteamid': 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',                        \
  27.                             'rsatimestamp': publicKeyJSON["timestamp"]   \
  28.                            })
  29. headers = {"Content-type": "application/x-www-form-urlencoded"}
  30. conn = httplib.HTTPSConnection("steamcommunity.com");
  31. conn.request("POST", "/login/dologin/", params, headers);
  32. response = conn.getresponse();
  33. ans = response.getheaders();
Advertisement
Add Comment
Please, Sign In to add comment