MicroCorruption/22-Churchill/gen_payload_hash.py

9 lines
312 B
Python
Raw Normal View History

2022-12-12 03:03:53 +00:00
#!/usr/bin/env python3
import hashlib
payload = bytes.fromhex("8000 01 0c 3240 00ff b012 1000")
print(f"{payload.hex()}{hashlib.sha512(payload).hexdigest()}")
print("800000063041c26436953f8f3cadf1442fc218b185051ab6c20853a45f093fc32adf31529d05a5ec3e96a9e41ed9ad1b14dcbdb98e50e37a7ddc3d595b867807ed1605f2070e")