chore: Remove dead code in payload headers
Removed unused legacy aliases in shellcode.h and stub arrays in rop_a10.h/rop_a11.h. Payload assembly uses chip_db fields directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
af8db9836f
commit
a15cdc0abd
3 changed files with 0 additions and 41 deletions
|
|
@ -1,20 +0,0 @@
|
||||||
/* rop_a10.h -- Placeholder kept for backward compatibility.
|
|
||||||
*
|
|
||||||
* The actual payload is now assembled dynamically from chip_db fields
|
|
||||||
* in assemble_payload() (checkm8_payload.c). The header struct is
|
|
||||||
* populated with per-chip addresses at runtime rather than using static
|
|
||||||
* ROP chain bytes. This file is retained so existing #include directives
|
|
||||||
* do not break.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef ROP_A10_H
|
|
||||||
#define ROP_A10_H
|
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
/* These are unused but kept to avoid breaking existing references. */
|
|
||||||
static const uint8_t rop_chain_a10[] = { 0 };
|
|
||||||
static const size_t rop_chain_a10_len = 0;
|
|
||||||
|
|
||||||
#endif /* ROP_A10_H */
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
/* rop_a11.h -- Placeholder kept for backward compatibility.
|
|
||||||
*
|
|
||||||
* The actual payload is now assembled dynamically from chip_db fields
|
|
||||||
* in assemble_payload() (checkm8_payload.c). This file is retained so
|
|
||||||
* existing #include directives do not break.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef ROP_A11_H
|
|
||||||
#define ROP_A11_H
|
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
/* These are unused but kept to avoid breaking existing references. */
|
|
||||||
static const uint8_t rop_chain_a11[] = { 0 };
|
|
||||||
static const size_t rop_chain_a11_len = 0;
|
|
||||||
|
|
||||||
#endif /* ROP_A11_H */
|
|
||||||
|
|
@ -106,9 +106,6 @@ static const uint8_t checkm8_shellcode_armv7[] = {
|
||||||
static const size_t checkm8_shellcode_armv7_len =
|
static const size_t checkm8_shellcode_armv7_len =
|
||||||
sizeof(checkm8_shellcode_armv7);
|
sizeof(checkm8_shellcode_armv7);
|
||||||
|
|
||||||
/* Legacy alias used by assemble_payload */
|
|
||||||
static const uint8_t *checkm8_shellcode = checkm8_shellcode_arm64;
|
|
||||||
static const size_t checkm8_shellcode_len = sizeof(checkm8_shellcode_arm64);
|
|
||||||
/* clang-format on */
|
/* clang-format on */
|
||||||
|
|
||||||
#endif /* SHELLCODE_H */
|
#endif /* SHELLCODE_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue