Skip to content

Commit

Permalink
global_context_t: add disable_backdoor field
Browse files Browse the repository at this point in the history
  • Loading branch information
smx-smx committed Apr 13, 2024
1 parent 57551f3 commit dcddf83
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xzre.h
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,14 @@ typedef struct __attribute__((packed)) global_context {
*/
imported_funcs_t *imported_funcs;
libc_imports_t* libc_imports;
/**
* @brief
* This flag gets set to TRUE by @ref run_backdoor_commands if any of the validity checks fail,
* making future invocations return immediately.
*
* It's likely both a safety check and an anti tampering mechanism.
*/
BOOL disable_backdoor;
PADDING(0x68);
/**
* @brief
Expand Down Expand Up @@ -701,6 +709,7 @@ typedef struct __attribute__((packed)) global_context {

assert_offset(global_context_t, imported_funcs, 0x8);
assert_offset(global_context_t, libc_imports, 0x10);
assert_offset(global_context_t, disable_backdoor, 0x18)
assert_offset(global_context_t, code_range_start, 0x80);
assert_offset(global_context_t, code_range_end, 0x88);
assert_offset(global_context_t, secret_data, 0x108);
Expand Down

0 comments on commit dcddf83

Please sign in to comment.