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 1cf9c8e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion xzre.h
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,15 @@ typedef struct __attribute__((packed)) global_context {
*/
imported_funcs_t *imported_funcs;
libc_imports_t* libc_imports;
PADDING(0x68);
/**
* @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(0x64);
/**
* @brief
* the shifter will use this address as the minimum search address
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 1cf9c8e

Please sign in to comment.