tr4mpass/src/bypass
Moussa Ouallaf 03d352d7f5 fix(dfu): read iSerial index at runtime; honor --cpid/--ecid overrides
Retire the three hardcoded DFU_SERIAL_INDEX = 3 constants in
usb_dfu.c, path_b_identity.c, and checkm8_internal.h. usb_dfu_find()
now captures bDeviceDescriptor.iSerialNumber into device_info_t and
usb_dfu_read_info() iterates hint -> 3 -> 4 with the sentinel check
deferred until every probe has returned only the product string. The
checkm8 spray helpers accept the resolved index as a parameter, and
the CLI override log fires whenever --cpid/--ecid populated a field
the descriptor read could not, so A14/A15/A16 devices no longer
strand users on the false NOT-in-SecureROM-DFU diagnostic.

Files modified:
- include/device/device.h
- include/device/usb_dfu.h
- include/exploit/checkm8_internal.h
- src/bypass/path_b_identity.c
- src/device/usb_dfu.c
- src/exploit/checkm8.c
- src/exploit/checkm8_spray.c
- src/main.c
- tests/mocks/mock_hw_stubs.c

Closes: #45, #65, #59, #27, #17, #52, #30, #22, #25, #10, #8, #6, #7
2026-07-17 03:04:22 +02:00
..
afc_utils.c fix: rename afc_strerror to afc_err_str for portability 2026-04-12 20:13:11 +02:00
bypass.c Task 006: Bypass registry and AFC utils (carried from research_icloud0) 2026-04-05 01:58:15 +02:00
deletescript.c fix(activation): Fix AFC service, deletescript return, session mutation 2026-04-05 03:32:08 +02:00
path_a.c fix(activation): Use plist_mem_free for plist-allocated strings 2026-04-05 03:51:46 +02:00
path_a_ramdisk.c build(deps): fix pkg-config skew, libusb include, libplist/libirecovery drift 2026-07-17 02:43:53 +02:00
path_a_ramdisk_poll.c feat: real Path A implementation, cert extraction, mock test harness 2026-04-18 17:43:30 +02:00
path_a_ssh.c feat: real Path A implementation, cert extraction, mock test harness 2026-04-18 17:43:30 +02:00
path_a_ssh_helpers.c feat: real Path A implementation, cert extraction, mock test harness 2026-04-18 17:43:30 +02:00
path_b.c build(deps): fix pkg-config skew, libusb include, libplist/libirecovery drift 2026-07-17 02:43:53 +02:00
path_b_identity.c fix(dfu): read iSerial index at runtime; honor --cpid/--ecid overrides 2026-07-17 03:04:22 +02:00
signal.c feat(bypass): Add signal type detection for cellular vs WiFi-only 2026-04-05 02:06:09 +02:00