depace/patch/macwars-postdecrypt-patchD.py

17 lines
245 B
Python
Executable File

#!/usr/bin/env python3
noops = [
[0x50c,0x541]
]
fh=open("D.bin","r+b")
for myrange in noops:
i=myrange[0]+0x80
while i<=(myrange[1]+0x80):
fh.seek(i)
fh.write((0x4e71).to_bytes(2,'big'))
i+=2
fh.close()