17 lines
393 B
Python
17 lines
393 B
Python
|
|
from sys import argv
|
|
public_key = bytes.fromhex(
|
|
"67186ade9d222c21b1be112009b7c43676aab17f1b8796682f88c8636dceaf2f")
|
|
|
|
new_public_key = bytes.fromhex(
|
|
"8653d80bab2d8b9dbb88cd0e0ebe9b99f588d4295a599d4b68f1696ae40177ef")
|
|
|
|
|
|
with open(argv[1], "rb") as f:
|
|
data = f.read()
|
|
|
|
assert public_key in data
|
|
|
|
with open(argv[1], "wb") as f:
|
|
f.write(data.replace(public_key, new_public_key))
|