Update rmsigchks.py with t8015 patches (commented out)#4
Update rmsigchks.py with t8015 patches (commented out)#4czz wants to merge 1 commit intoLinusHenze:masterfrom
Conversation
t8015_patches to be verified
|
t8015 needs its own patches, the t8011 patches do not work. Even when patched properly, we still need wxn disabled on the platform. |
|
The patches might be false or the USB_READ_LIMIT isn't right or the whole usbexec.py needs to be rewritten (probably not) Edit: You can read from the SecureROM but you can't write to it. |
|
you can read http://newosxbook.com/bonus/iBoot.pdf, to see about the values set in the system register. on the other hand, lets read the system register, and then flip the 19 bit (see iboot.pdf). but you can obviously execute any arbitrary code you like.. |
|
(ofc that with the debugger you can just hook the function to 'execute the patches') |
|
wont work w/o a probe.. |
|
"die-young: I have set USB_READ_LIMIT = 0xFF0 on usbexec.py for iphone X to be checkm8ted. |
|
Yeah 0xFF0 is the right "value". Only need to disable wxn. |
File "/Users/jh0n4/ipwndfu_public/usbexec.py", line 106, in command |
|
Interesting reading here: https://googleprojectzero.blogspot.com/2019/10/ktrw-journey-to-build-debuggable-iphone.html?m=1 |
|
from tech analysis checkm8 by a1exdandy: 0x1800B0610: disabe_wxn_arm64 # code for disabling WXN |
|
https://github.com/akayn/ipwndfu this does everything we wanted to do ;) |
|
yeah but only iPhoneX need that for the iPhone8 |
|
Sorry for asking dumb question here: If the wxn can be disabled and the patch is correct. The device still can't restore to "ANY" firmware, right? Because https://github.com/tihmstar/futurerestore/blob/master/README.md shows that
and
However, this can't fix SEP compatibility for older firmwares, right? |
djeraseit
left a comment
There was a problem hiding this comment.
*** SecureROM Signature check remover by Linus Henze ***
Found: CPID:8015 CPRV:11 CPFM:03 SCEP:01 BDID:06 ECID:000169E82007C83A IBFL:3C SRTG:[iBoot-3332.0.0.1.23] PWND:[checkm8]
Applying patches...
Traceback (most recent call last):
File "rmsigchks.py", line 101, in
main()
File "rmsigchks.py", line 88, in main
pdev.write_memory(k, config.patches[k])
File "/media/theodisbutler/RECOVERY/Mobile/ipwndfu_public/usbexec.py", line 44, in write_memory
def write_memory(self, address, data): self.command(self.cmd_memcpy(address, self.cmd_data_address(3), len(data)) + data, 0)
File "/media/theodisbutler/RECOVERY/Mobile/ipwndfu_public/usbexec.py", line 106, in command
response = device.ctrl_transfer(0xA1, 2, 0xFFFF, 0, response_length + 1, CMD_TIMEOUT).tostring()[1:]
File "/media/theodisbutler/RECOVERY/Mobile/ipwndfu_public/usb/core.py", line 1043, in ctrl_transfer
self.__get_timeout(timeout))
File "/media/theodisbutler/RECOVERY/Mobile/ipwndfu_public/usb/backend/libusb1.py", line 883, in ctrl_transfer
timeout))
File "/media/theodisbutler/RECOVERY/Mobile/ipwndfu_public/usb/backend/libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 5] Input/Output Error
|
i modified usbexec.py and set USB_READ_LIMIT = 0xFF0. Need to test. As for now phone stuck on Apple logo. Will start over and try again. Do not merge the commit as is without modifying USB_READ_LIMIT |
t8015_patches to be verified