测试:
Itouch4g工作在DFU模式
# lsusb
Bus 001 Device 009: ID 05ac:1227 Apple, Inc. Mobile Device (DFU Mode)
问题:loadibec无法识别出DFU模式下的itouch4g
# loadibec ./ipt_4g_openiboot.bin
open_device: unable to connect to device.
your device must be in recovery mode.
下面代码说明,需要工作在USB_RECOVERY模式:
handle = open_device(USB_RECOVERY);
从这个loadibec代码里看,并没有利用漏洞,而是直接上传文件,然后用iRecovery的go命令执行ipt_4g_openiboot.bin,觉得不太靠谱,还是安装新版本的loadibec
# git clone https://github.com/Chronic-Dev/syringe
# cd ./syringe && make
# cp utilities/loadibec /usr/local/bin
# loadibec ./ipt_4g_openiboot.bin
Loadibec 2.00.
Connecting to iDevice...
linera1n compatible device detected, injecting limera1n.
Initializing libpois0n
opening device 05ac:1227...
Checking if device is compatible with this jailbreak
Checking the device type
Identified device as iPod4,1
Preparing to upload limera1n exploit
Resetting device counters
Sending chunk headers
Sending exploit payload
Sending fake data
Exploit sent
Reconnecting to device
Waiting 2 seconds for the device to pop up...
opening device 05ac:1227...
limera1ned, reconnecting...
Waiting 10 seconds for the device to pop up...
opening device 05ac:1227...
uploading ibss...
Checking if iBSS.n81ap already exists
Preparing to fetch DFU image from Apple's servers
Fetching Firmware/dfu/iBSS.n81ap.RELEASE.dfu...
[==================================================] 100.0%
Uploading iBSS.n81ap to device
[==================================================] 100.0%
Waiting 10 seconds for the device to pop up...
opening device 05ac:1281...
Setting to configuration 1
Setting to interface 0:0
Loaded payload for iBSS on n81ap
Resetting device counters
Uploading iBSS payload
[==================================================] 100.0%
iBSS loaded...
Waiting 10 seconds for the device to pop up...
opening device 05ac:1281...
Setting to configuration 1
Setting to interface 0:0
Starting transfer of './ipt_4g_openiboot.bin'.
[==================================================] 100.0%
Uploaded Successfully.