freemyipod r550 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r549‎ | r550 | r551 >
Date:03:51, 7 February 2011
Author:theseven
Status:new
Tags:
Comment:
libipodcrypto.py: Don't brick innocent iPods...
Modified paths:
  • /emcore/trunk/tools/libipodcrypto.py (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/libipodcrypto.py
@@ -34,7 +34,7 @@
3535
3636 def s5l8701cryptdfu(data):
3737 data = data.ljust((len(data) + 0x3f) & ~0x3f, "\0")
38 - header = "87011.0\0\0\0x8\0\0" + struct.pack("<I", len(data))
 38+ header = "87011.0\0\0\x08\0\0" + struct.pack("<I", len(data))
3939 emcore = libemcore.Emcore()
4040 addr = emcore.memalign(0x10, len(data) + 0x800)
4141 emcore.write(addr, header.ljust(0x800, "\0") + data)