You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
952 B
40 lines
952 B
4 weeks ago
|
#!/usr/bin/env python3
|
||
|
# Generates accounts.json suitable for this service
|
||
|
|
||
|
import binascii
|
||
|
import hashlib
|
||
|
import json
|
||
|
|
||
|
user = "mid-kid"
|
||
|
|
||
|
uuid = binascii.hexlify(bytes(eval("x"+{6:"&0xf|0x30",8:"&0x3f|0x80"}.get(i,""))for i,x in enumerate(hashlib.md5(("OfflinePlayer:%s"%user).encode()).digest()))).decode()
|
||
|
token = "penispenis123"
|
||
|
|
||
|
accounts = {
|
||
|
"formatVersion": 3,
|
||
|
"accounts": [
|
||
|
{
|
||
|
"type": "MSA",
|
||
|
"entitlement": {
|
||
|
"canPlayMinecraft": True,
|
||
|
"ownsMinecraft": True
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"active": True,
|
||
|
"type": "Offline",
|
||
|
"profile": {
|
||
|
"id": uuid,
|
||
|
"name": user,
|
||
|
"capes": [],
|
||
|
"skin": {"id": "", "url": "", "variant": ""}
|
||
|
},
|
||
|
"ygg": {
|
||
|
"token": token
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|
||
|
print(json.dumps(accounts, separators=(",", ":")))
|