From 69bcd0e4d6ec865df7ce0fc4d6202346dade5e7f Mon Sep 17 00:00:00 2001 From: Gh05t666nero <70060844+Gh05t666nero@users.noreply.github.com> Date: Wed, 12 Jun 2024 02:45:31 +1200 Subject: [PATCH] Fix castInput function to handle OrderedDict conversion to JSON string --- jwt_tool.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jwt_tool.py b/jwt_tool.py index 99ca1ab..d9ca243 100644 --- a/jwt_tool.py +++ b/jwt_tool.py @@ -590,6 +590,9 @@ def crackSig(sig, contents): cprintc(utf8errors, " UTF-8 incompatible passwords skipped", "cyan") def castInput(newInput): + if isinstance(newInput, OrderedDict): + newInput = json.dumps(newInput) + if "{" in str(newInput): try: jsonInput = json.loads(newInput)