|
|
|
|
|
by e1ghtSpace
832 days ago
|
|
The minus 0x400 shift appears to work like this: Seek(fd, 0xA0020000 - 0x400);
We seek to 0x400 before where we need to write the data SendWrite(fd, foo, 0x400, false);
We set the first 0x400 bytes of what we want to write to 0 SendWrite(fd, fw, fwsize, true);
We then set the rest of the bytes to our data. SendEndSecpack(fd);
The iphone copies the data from 0x400 bytes onwards (which is all the data we wanted to write), then tries to verify the signature and fails. If the signature could be verified the first 0x400 bytes (which we left as all zeros) would then be copied. |
|