feat(device): Replace chip_db placeholders with real gaster offsets
Complete chip offset table from gaster source for 16 BootROM variants (A9 through A11/M2). Includes all memory addresses, ROP gadgets, heap spray params, and callback overwrite offsets. Extended chip_info_t with full exploit configuration fields. Split table into chip_db_table.h. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6cd54f5272
commit
e2f936d6b7
4 changed files with 504 additions and 257 deletions
|
|
@ -6,18 +6,46 @@
|
|||
/*
|
||||
* chip_info_t -- static descriptor for a known Apple SoC variant.
|
||||
*
|
||||
* heap_base : DFU SRAM heap base (ttbr0_addr from gaster); 0 if not
|
||||
* vulnerable.
|
||||
* payload_base : Insecure memory / shellcode load address
|
||||
* (insecure_memory_base from gaster); 0 if not vulnerable.
|
||||
* All memory addresses and exploit parameters are sourced from gaster
|
||||
* (github.com/0x7ff/gaster). Fields are 0 when unused for a given chip.
|
||||
*/
|
||||
typedef struct {
|
||||
uint32_t cpid;
|
||||
const char *name; /* "A7", "A8", ..., "A17" */
|
||||
const char *marketing; /* "iPhone 5s", "iPhone X", etc. */
|
||||
int checkm8_vulnerable; /* 1 = A5-A11, 0 = A12+ */
|
||||
uint64_t heap_base; /* DFU heap base (0 if not vuln) */
|
||||
uint64_t payload_base; /* Shellcode addr (0 if not vuln) */
|
||||
|
||||
/* Exploit config */
|
||||
uint16_t config_large_leak; /* heap spray iterations (0 = no-leak path) */
|
||||
uint16_t config_overwrite_pad; /* overwrite padding size */
|
||||
uint16_t config_hole; /* hole count for newer chips (0 if unused) */
|
||||
|
||||
/* Memory addresses */
|
||||
uint64_t insecure_memory_base;
|
||||
uint64_t patch_addr;
|
||||
uint64_t memcpy_addr;
|
||||
uint64_t aes_crypto_cmd;
|
||||
uint64_t boot_tramp_end;
|
||||
uint64_t gUSBSerialNumber;
|
||||
uint64_t dfu_handle_request;
|
||||
uint64_t usb_core_do_transfer;
|
||||
uint64_t dfu_handle_bus_reset;
|
||||
uint64_t handle_interface_request;
|
||||
uint64_t usb_create_string_descriptor;
|
||||
uint64_t usb_serial_number_string_descriptor;
|
||||
|
||||
/* ROP gadgets (A10+ only, 0 for older) */
|
||||
uint64_t ttbr0_addr;
|
||||
uint64_t tlbi;
|
||||
uint64_t nop_gadget;
|
||||
uint64_t ret_gadget;
|
||||
uint64_t func_gadget;
|
||||
uint64_t write_ttbr0;
|
||||
uint64_t ttbr0_vrom_off;
|
||||
uint64_t ttbr0_sram_off;
|
||||
|
||||
/* ARMv7 payload dest (0 for ARM64 chips) */
|
||||
uint64_t payload_dest_armv7;
|
||||
} chip_info_t;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue