Created
December 26, 2021 20:02
-
-
Save caseyavila/58166e518365e2a141567c29383b42f4 to your computer and use it in GitHub Desktop.
Simple Minecraft login script for Mojang accounts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import requests | |
login_url = "https://authserver.mojang.com/authenticate" | |
payload = { | |
"agent": { | |
"name": "Minecraft", | |
"version": 1 | |
}, | |
"username": "EMAIL HERE (OR USERNAME FOR UNMIGRATED ACCOUNTS)", | |
"password": "PASSWORD HERE", | |
"clientToken": "", | |
"requestUser": True | |
} | |
request = requests.post(login_url, json=payload) | |
print(request.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment