Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

FileNotFoundError when passing non existing key file to -k/--key #10

Closed
DontPanicO opened this issue Mar 5, 2021 · 1 comment · Fixed by #11
Closed

FileNotFoundError when passing non existing key file to -k/--key #10

DontPanicO opened this issue Mar 5, 2021 · 1 comment · Fixed by #11
Assignees

Comments

@DontPanicO
Copy link
Owner

DontPanicO commented Mar 5, 2021

Describe the bug
Exception FileNotFoundError not properly handled, when passing a non existing key file to -k/--key.
This happen only with asymmetric algorithms, since it's been handled with HS*

To Reproduce

  1. Get a valid JWT (you can grab it from jwt.io)
  2. Run an attack using an asymmetric algorithm and passing a non existing key file to -k
    jwtxpl <token> -a rs256 -p <key>:<value> -k /path/to/non/existing

Expected behavior
The script should properly handle this exception and return a custom error

@DontPanicO DontPanicO self-assigned this Mar 5, 2021
@DontPanicO
Copy link
Owner Author

This issue is going to be closed with next release during the weekend

@DontPanicO DontPanicO linked a pull request Mar 6, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant