Skip to content

Commit

Permalink
add backdoor_symbind64
Browse files Browse the repository at this point in the history
  • Loading branch information
smx-smx committed Apr 8, 2024
1 parent 46ac40b commit 7ee3364
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions xzre.h
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,24 @@ extern int init_hook_functions(void *funcs);
*/
extern void update_got_address(elf_entry_ctx_t *entry_ctx);

/**
* @brief the backdoored symbind64 installed in GLRO(dl_audit)
*
* @param sym
* @param ndx
* @param refcook
* @param defcook
* @param flags
* @param symname
* @return uintptr_t
*/
extern uintptr_t backdoor_symbind64(
Elf64_Sym *sym,
unsigned int ndx,
uptr *refcook, uptr *defcook,
unsigned int flags,
const char *symname);

extern u32 resolver_call_count;
extern global_context_t *global_ctx;
extern lzma_allocator *fake_lzma_allocator;
Expand Down
3 changes: 3 additions & 0 deletions xzre.lds
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ SECTIONS {

"update_got_address" = ".";
*(.text.lzma_stream_header_encoda);

"backdoor_symbind64" = ".";
*(.text.lz_encoder_prepara);
}
} INSERT AFTER .text;

Expand Down

0 comments on commit 7ee3364

Please sign in to comment.