From 8ff7edf429af6a76aff9bf0911cde16b0e7adce2 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sat, 26 Oct 2024 12:59:44 +0200 Subject: [PATCH] Generate a real token --- prism/genaccounts.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/prism/genaccounts.py b/prism/genaccounts.py index 6ca6219..63494c5 100755 --- a/prism/genaccounts.py +++ b/prism/genaccounts.py @@ -4,11 +4,13 @@ import binascii import hashlib import json +import secrets +import sys -user = "mid-kid" +user = sys.argv[1] 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" +token = secrets.token_urlsafe(32) accounts = { "formatVersion": 3,