-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchecker.py
37 lines (29 loc) · 1.87 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
import requests
import random
import time
from colorama import Fore
aqua = """
██╗ ██╗ ██████╗ ██╗ ██╗██╗ ██╗
██║ ██║██╔═══██╗ ██║ ██║██║ ██║
███████║██║ ██║█████╗██║ ██║███████║
╚════██║██║▄▄ ██║╚════╝██║ ██║╚════██║
██║╚██████╔╝ ╚██████╔╝ ██║
╚═╝ ╚══▀▀═╝ ╚═════╝ ╚═╝
--------------------------------------------------
"""
print(Fore.BLUE + f"{aqua}" + Fore.RESET)
while True:
user = ""
for character in random.choices("abcdefghijklmnopqrstuvwxyz123456789", k=3):
user = user + character
response = requests.get(f"https://www.github.com/{user}/")
if response.status_code == 200:
print(Fore.RED + f"USERNAME TAKEN: {user}" + Fore.RESET)
elif response.status_code == 404:
print(Fore.GREEN + f"USERNAME AVAILABLE: {user}" + Fore.RESET)
# Append available usernames to a text file
with open("available2usernames.txt", "a") as file:
file.write(user + "\n")
else:
print("BLOCKED FROM GITHUB")
time.sleep(120)