Skip to content

Commit

Permalink
Corrected new keyerror
Browse files Browse the repository at this point in the history
  • Loading branch information
DontPanicO committed Feb 18, 2021
1 parent d29af0f commit fef0bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwt-crack.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def jku_basic_attack(self, header):
accesses it to change the modulus and the exponent with the ones of our generated key. Then creates a new
file named jwks.json in the current working directory and writes the dump of the jwks dict into it.
"""
filename = Cracker.download_jwks(header['x5u'])
filename = Cracker.download_jwks(header['jku'])
if filename is None:
print(f"{Bcolors.FAIL}jwtxpl: error: can't download jwks file from url specified in x5u header{Bcolors.ENDC}")
sys.exit(1)
Expand Down

0 comments on commit fef0bc9

Please sign in to comment.