Loading...
Jwt HSA/RSA signing vulnerability Use pubkey.pem with jwt_tool.py 'speed' is calculated with
'ajuuer' is fast enough Set horses to ["ajuuer"] Race Get flag
speed = int(hashlib.md5(("Horse_" + horse).encode()).hexdigest(), 16)
from pwn import * import hashlib from pwnlib.util.iters import mbruteforce import string BOSS_HORSE = "MechaOmkar-YG6BPRJM" goal = int(hashlib.md5(("Horse_" + BOSS_HORSE).encode()).hexdigest(), 16) def attempt(horse): speed = int(hashlib.md5(("Horse_" + horse).encode()).hexdigest(), 16) if speed > goal: return True else: return False myhorse = mbruteforce(attempt, string.ascii_lowercase, length=10) print(myhorse)