authentication - Get the username from Minecraft email and pass [Python] -
i tried python script uses authentication minecraft , gets username of player (from email , password). can check if account working can't seem minecraft player's username. although beginner in python , requests, can understand of code
here current code [python 3.5]:
import fileinput import json import requests import time line in fileinput.input(['list.txt']): = line username, password = (a.strip().split(':', 1)) data = json.dumps({"agent":{"name":"minecraft","version":1},"username":username,"password":password,"clienttoken":""}) headers = {'content-type': 'application/json'} rauth = requests.post('https://authserver.mojang.com/authenticate', data=data, headers=headers) if rauth.status_code == 200: # means success print(username, password, sep=':') else: print("error", rauth.status_code) # displays error code time.sleep(5) # delay
i'm looking python script can find username of minecraft user, email , password. if module 'requests' used other modules fine.
Comments
Post a Comment