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)