-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck_pseudo_mc.py
36 lines (28 loc) · 1.11 KB
/
check_pseudo_mc.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
import requests, json, logging
from colorama import Fore, init
init()
minecraft_name = input(Fore.LIGHTCYAN_EX + "[>] Saisissez un nom d'utilisateur MC : ")
def converttostr(input_seq, seperator):
final_str = seperator.join(input_seq)
return final_str
def req(name):
try:
resp = requests.get("https://api.ashcon.app/mojang/v2/user/" + name)
data = json.loads(resp.text)
print(Fore.GREEN + "[+] Nom: " + data["username"])
print(Fore.GREEN + "[+] UUID: " + data["uuid"])
if data["created_at"] == None:
print(Fore.RED + "[-] Crée le: Non Trouvé")
else:
print(Fore.GREEN + "[+] Crée le: " + data["created_at"])
print(Fore.GREEN + "\n[+] Nom Historique: ")
# Checking for username history
for names in data["username_history"]:
try:
print(Fore.YELLOW + " - " + names["username"] + f"(Changed {data['changed_at']})")
except:
print(Fore.YELLOW + " - " + names["username"])
except Exception as x:
logging.basicConfig(format="%(asctime)s - %(levelname)s - %(message)s", datefmt="%m/%d/%Y %I:%M:%S %p")
logging.critical(x)
req(minecraft_name)