Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

OSError: [Errno 75] Value too large for defined data type #113

Open
emilyanncr opened this issue Jun 15, 2024 · 1 comment
Open

OSError: [Errno 75] Value too large for defined data type #113

emilyanncr opened this issue Jun 15, 2024 · 1 comment

Comments

@emilyanncr
Copy link

emilyanncr commented Jun 15, 2024

Running updated version of Kali Linux on a Virtualbox where Windows is the Host

Anticipated output

{
"iat": 133628760717238400,
"nonce": "fa47d072-1c37-4ca4-a064-1a81d1270192",
"clientid": "cef9cdba-e8c2-4abc-b16d-XXXX",
"recipid": "43d56975-94ed-4caa-94f6-e3e4f74095c3",
"nbf": 1718402471,
"exp": 1720994471,
"iss": "https://internalngicqa.xxx.com/esign/",
"aud": "https://internalngicqa.xxx.com/esign/"
}
*The above was indeed the output I received when entering the JWT into the site jwt.io

Actual output:

python3 jwt_tool.py eyJhbGciOiJSUzI1NiIsImtpZCI6IjA2NjczQTlBRUQyMjNEMTcxQzNDMkZEODQxODhGMUZEQjQwOEMzNjIiLCJ0eXAiOiJKV1QifQ.eyJpYXQiOjEzMzYyODc2MDcxNzIzODM5Miwibm9uY2UiOiJmYTQ3ZDA3Mi0xYzM3LTRjYTQtYTA2NC0xYTgxZDEyNzAxOTIiLCJjbGllbnRpZCI6ImNlZjljZGJhLWU4YzItNGFiYy1iMTZkLTI0NjMxZGIwNzE1OCIsInJlY2lwaWQiOiI0M2Q1Njk3NS05NGVkLTRjYWEtOTRmNi1lM2U0Zjc0MDk1YzMiLCJuYmYiOjE3MTg0MDI0NzEsImV4cCI6MTcyMDk5NDQ3MSwiaXNzIjoiaHR0cHM6Ly9pbnRlcm5hbG5naWNxYS5uYXRpb25hbGdlbmVyYWwuY29tL2VzaWduLyIsImF1ZCI6Imh0dHBzOi8vaW50ZXJuYWxuZ2ljcWEubmF0aW9uYWxnZW5lcmFsLmNvbS9lc2lnbi8ifQ.r2754YB9qXzIpxilw333Lja0-4zZHW-OHrgwZwtNjFqCQfb72rD1mzKT-09U_HaQaIu-uc0KXnOpFmebn1U1PWhLX_knn97yx3OAToS1dvnpjbYwfXsczlblS3tP1AvXgVXX51aTSFfSNiA9F6USu0cOT-y_QKXuhYLAYscaL1nk0pON8SRxvyz6HsoCdfgGpO8xjO95i8ouU5C6tiCzEzYNwPkzmVicqmBK88NLJYYO1P2KB1NkWGXLHbWwQeD8f62IcGvEXxQUf-_tzyhpqPyKniBkYgh_gHe7exmT6R79u3321BAeAKHcp58zla4i5EmrtJE8WJCDzuLoEYyw7Q

    \   \        \         \          \                    \ 

__ | | \ |__ | _ | |
| | \ | | | \ \ |
| \ | | | __ \ __ \ |
\ | _ | | | | | | | |
| | / \ | | | | | | | |
\ | / \ | | |\ |\ | |
_
/ _/ _| _| _| _/ _/ __|
Version 2.2.7 _
___| @ticarpi

Original JWT:

=====================
Decoded Token Values:

Token header values:
[+] alg = "RS256"
[+] kid = "06673A9AED223D171C3C2FD84188F1FDB408C362"
[+] typ = "JWT"

Token payload values:
Traceback (most recent call last):
File "/home/emily/Downloads/jwt_tool/jwt_tool.py", line 2103, in
rejigToken(headDict, paylDict, sig)
File "/home/emily/Downloads/jwt_tool/jwt_tool.py", line 1299, in rejigToken
comparestamps, expiredtoken = dissectPayl(paylDict)
^^^^^^^^^^^^^^^^^^^^^
File "/home/emily/Downloads/jwt_tool/jwt_tool.py", line 1193, in dissectPayl
timestamp = datetime.fromtimestamp(int(paylDict[claim]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 75] Value too large for defined data type

Can you please advise? Many thanks!!

@sinSeptember
Copy link

Hey,
You're encountering the OSError: [Errno 75] Value too large for defined data type error related to timestamps.
Could you please provide more details about the JWT token that triggered this error?
Specifically, the values of the iat and exp timestamps in the token payload would be helpful to diagnose the problem further.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants