Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import struct
- with open('EBOOT.orig','rb') as f:
- filedata = bytearray(f.read())
- pos = [0x1509b0, 0x1627c0]
- diff = 0x6c100 - 0x47e70
- for p in pos:
- filedata[p:p+4] = struct.pack('<I', 0x6c100)
- pos = 0x15dc88
- for x in range(24):
- val = struct.unpack('<I', filedata[pos:pos+4])[0] + diff
- filedata[pos:pos+4] = struct.pack('<I',val)
- pos += 12
- with open('EBOOT.BIN','wb') as f:
- f.write(filedata)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement