repl.it
@minx28/

minecraft auth testing

Python

No description

fork
loading
Files
  • main.py
main.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
import requests
import os
from random import choice
from string import ascii_lowercase as letters

email=os.getenv("email")
password=os.getenv("password")
client_token="".join([choice(letters) for i in range(64)])

auth_payload={
  "agent":{
    "name":"Minecraft",
    "version":1
  },
  "username":email,
  "password":password,
  "clientToken":client_token,
}

r=requests.post("https://authserver.mojang.com/authenticate",json=auth_payload)

print(r.status_code,r.json())


Fetching token
?