diff --git a/xzre_8h_source.html b/xzre_8h_source.html
index 9c15a6b..232882a 100644
--- a/xzre_8h_source.html
+++ b/xzre_8h_source.html
@@ -78,1541 +78,1536 @@
16 #include <sys/select.h>
-
-
-
-
-
- 24 typedef uintptr_t uptr;
-
- 26 typedef unsigned char u8;
- 27 typedef unsigned short u16;
- 28 typedef unsigned int u32;
- 29 typedef unsigned long long int u64;
- 30 typedef unsigned long int size_t;
- 31 typedef signed long int ssize_t;
-
-
- 34 typedef uint64_t uptr;
-
- 36 Elf64_Ehdr, Elf64_Phdr, Elf64_Dyn, Elf64_Sym, Elf64_Rela, Elf64_Relr,
- 37 Elf64_Verdef, Elf64_Versym, sigset_t, fd_set, EVP_PKEY, RSA, DSA,
- 38 BIGNUM, EC_POINT, EC_KEY, EC_GROUP, EVP_MD, point_conversion_form_t,
- 39 EVP_CIPHER, EVP_CIPHER_CTX, ENGINE, EVP_MD_CTX, EVP_PKEY_CTX, BN_CTX;
-
- 41 void *(*alloc)(
void *opaque,
size_t nmemb,
size_t size);
- 42 void (*free)(
void *opaque,
void *ptr);
-
-
-
-
-
-
- 49 #include <openssl/dsa.h>
- 50 #include <openssl/ec.h>
- 51 #include <openssl/evp.h>
- 52 #include <openssl/rsa.h>
-
-
- 55 typedef Elf64_Xword Elf64_Relr;
-
-
- 58 #define UPTR(x) ((uptr)(x))
- 59 #define PTRADD(a, b) (UPTR(a) + UPTR(b))
- 60 #define PTRDIFF(a, b) (UPTR(a) - UPTR(b))
-
-
-
-
-
-
-
- 68 #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
- 69 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
- 70 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
- 71 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
-
-
-
-
-
- 77 unsigned int bindflags;
-
-
- 80 typedef struct link_map *lookup_t;
-
-
-
- 84 struct La_x86_64_regs;
- 85 struct La_x86_64_retval;
-
-
-
-
-
-
-
- 93 void (*activity) (uintptr_t *,
unsigned int);
- 94 char *(*objsearch) (
const char *, uintptr_t *,
unsigned int);
- 95 unsigned int (*objopen) (
struct link_map *, Lmid_t, uintptr_t *);
- 96 void (*preinit) (uintptr_t *);
-
-
- 99 uintptr_t (*symbind32) (Elf32_Sym *,
unsigned int, uintptr_t *,
- 100 uintptr_t *,
unsigned int *,
const char *);
- 101 uintptr_t (*symbind64) (Elf64_Sym *,
unsigned int, uintptr_t *,
- 102 uintptr_t *,
unsigned int *,
const char *);
-
-
-
- 106 Elf32_Addr (*i86_gnu_pltenter) (Elf32_Sym *,
unsigned int, uintptr_t *,
- 107 uintptr_t *,
struct La_i86_regs *,
+
+
+
+
+ 23 typedef uintptr_t uptr;
+
+
+ 26 typedef unsigned long int size_t;
+ 27 typedef signed long int ssize_t;
+
+
+
+ 31 Elf64_Ehdr, Elf64_Phdr, Elf64_Dyn, Elf64_Sym, Elf64_Rela, Elf64_Relr,
+ 32 Elf64_Verdef, Elf64_Versym, sigset_t, fd_set, EVP_PKEY, RSA, DSA,
+ 33 BIGNUM, EC_POINT, EC_KEY, EC_GROUP, EVP_MD, point_conversion_form_t,
+ 34 EVP_CIPHER, EVP_CIPHER_CTX, ENGINE, EVP_MD_CTX, EVP_PKEY_CTX, BN_CTX;
+
+ 36 void *(*alloc)(
void *opaque,
size_t nmemb,
size_t size);
+ 37 void (*free)(
void *opaque,
void *ptr);
+
+
+
+
+
+
+ 44 #include <openssl/dsa.h>
+ 45 #include <openssl/ec.h>
+ 46 #include <openssl/evp.h>
+ 47 #include <openssl/rsa.h>
+
+
+ 50 typedef Elf64_Xword Elf64_Relr;
+
+
+ 53 #define UPTR(x) ((uptr)(x))
+ 54 #define PTRADD(a, b) (UPTR(a) + UPTR(b))
+ 55 #define PTRDIFF(a, b) (UPTR(a) - UPTR(b))
+
+
+
+
+
+
+
+ 63 #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
+ 64 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
+ 65 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
+ 66 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
+
+
+
+
+
+ 72 unsigned int bindflags;
+
+
+ 75 typedef struct link_map *lookup_t;
+
+
+
+ 79 struct La_x86_64_regs;
+ 80 struct La_x86_64_retval;
+
+
+
+
+
+
+
+ 88 void (*activity) (uintptr_t *,
unsigned int);
+ 89 char *(*objsearch) (
const char *, uintptr_t *,
unsigned int);
+ 90 unsigned int (*objopen) (
struct link_map *, Lmid_t, uintptr_t *);
+ 91 void (*preinit) (uintptr_t *);
+
+
+ 94 uintptr_t (*symbind32) (Elf32_Sym *,
unsigned int, uintptr_t *,
+ 95 uintptr_t *,
unsigned int *,
const char *);
+ 96 uintptr_t (*symbind64) (Elf64_Sym *,
unsigned int, uintptr_t *,
+ 97 uintptr_t *,
unsigned int *,
const char *);
+
+
+
+ 101 Elf32_Addr (*i86_gnu_pltenter) (Elf32_Sym *,
unsigned int, uintptr_t *,
+ 102 uintptr_t *,
struct La_i86_regs *,
+ 103 unsigned int *,
const char *name,
+ 104 long int *framesizep);
+ 105 Elf64_Addr (*x86_64_gnu_pltenter) (Elf64_Sym *,
unsigned int,
+
+ 107 uintptr_t *,
struct La_x86_64_regs *,
108 unsigned int *,
const char *name,
109 long int *framesizep);
- 110 Elf64_Addr (*x86_64_gnu_pltenter) (Elf64_Sym *,
unsigned int,
-
- 112 uintptr_t *,
struct La_x86_64_regs *,
- 113 unsigned int *,
const char *name,
- 114 long int *framesizep);
- 115 Elf32_Addr (*x32_gnu_pltenter) (Elf32_Sym *,
unsigned int, uintptr_t *,
- 116 uintptr_t *,
struct La_x32_regs *,
- 117 unsigned int *,
const char *name,
- 118 long int *framesizep);
-
-
-
- 122 unsigned int (*i86_gnu_pltexit) (Elf32_Sym *,
unsigned int, uintptr_t *,
- 123 uintptr_t *,
const struct La_i86_regs *,
- 124 struct La_i86_retval *,
const char *);
- 125 unsigned int (*x86_64_gnu_pltexit) (Elf64_Sym *,
unsigned int,
-
+ 110 Elf32_Addr (*x32_gnu_pltenter) (Elf32_Sym *,
unsigned int, uintptr_t *,
+ 111 uintptr_t *,
struct La_x32_regs *,
+ 112 unsigned int *,
const char *name,
+ 113 long int *framesizep);
+
+
+
+ 117 unsigned int (*i86_gnu_pltexit) (Elf32_Sym *,
unsigned int, uintptr_t *,
+ 118 uintptr_t *,
const struct La_i86_regs *,
+ 119 struct La_i86_retval *,
const char *);
+ 120 unsigned int (*x86_64_gnu_pltexit) (Elf64_Sym *,
unsigned int,
+
+
+ 123 const struct La_x86_64_regs *,
+ 124 struct La_x86_64_retval *,
+
+ 126 unsigned int (*x32_gnu_pltexit) (Elf32_Sym *,
unsigned int, uintptr_t *,
- 128 const struct La_x86_64_regs *,
+ 128 const struct La_x32_regs *,
129 struct La_x86_64_retval *,
- 131 unsigned int (*x32_gnu_pltexit) (Elf32_Sym *,
unsigned int, uintptr_t *,
-
- 133 const struct La_x32_regs *,
- 134 struct La_x86_64_retval *,
-
-
- 137 unsigned int (*objclose) (uintptr_t *);
-
-
-
+
+ 132 unsigned int (*objclose) (uintptr_t *);
+
+
+
+
+
+ 138 #define XZDASM_OPC(op) (op - 0x80)
+
+
-
- 143 #define XZDASM_OPC(op) (op - 0x80)
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 201 X_ELF_DYNAMIC_LINKER = 1,
-
-
-
-
-
- 207 XREF_xcalloc_zero_size = 0,
- 208 XREF_Could_not_chdir_to_home_directory_s_s = 1,
- 209 XREF_list_hostkey_types = 2,
- 210 XREF_demote_sensitive_data = 3,
- 211 XREF_mm_terminate = 4,
- 212 XREF_mm_pty_allocate = 5,
- 213 XREF_mm_do_pam_account = 6,
- 214 XREF_mm_session_pty_cleanup2 = 7,
- 215 XREF_mm_getpwnamallow = 8,
- 216 XREF_mm_sshpam_init_ctx = 9,
- 217 XREF_mm_sshpam_query = 10,
- 218 XREF_mm_sshpam_respond = 11,
- 219 XREF_mm_sshpam_free_ctx = 12,
- 220 XREF_mm_choose_dh = 13,
- 221 XREF_sshpam_respond = 14,
- 222 XREF_sshpam_auth_passwd = 15,
- 223 XREF_sshpam_query = 16,
-
- 225 XREF_mm_request_send = 18,
- 226 XREF_mm_log_handler = 19,
- 227 XREF_Could_not_get_agent_socket = 20,
- 228 XREF_auth_root_allowed = 21,
- 229 XREF_mm_answer_authpassword = 22,
- 230 XREF_mm_answer_keyallowed = 23,
- 231 XREF_mm_answer_keyverify = 24,
- 232 XREF_48s_48s_d_pid_ld_ = 25,
- 233 XREF_Unrecognized_internal_syslog_level_code_d = 26
-
-
-
-
-
- 239 STR_48s_48s_d_pid_ld_ = 0xd8,
-
- 241 STR_usr_sbin_sshd = 0x108,
- 242 STR_Accepted_password_for = 0x870,
- 243 STR_Accepted_publickey_for = 0x1a0,
- 244 STR_BN_bin2bn = 0xc40,
- 245 STR_BN_bn2bin = 0x6d0,
-
-
- 248 STR_BN_num_bits = 0x4e0,
- 249 STR_Connection_closed_by = 0x790,
- 250 STR_Could_not_chdir_to_home_directory_s_s = 0x18,
- 251 STR_Could_not_get_agent_socket = 0xb0,
-
- 253 STR_DSA_get0_pqg = 0x9d0,
- 254 STR_DSA_get0_pub_key = 0x468,
- 255 STR_EC_KEY_get0_group = 0x7e8,
- 256 STR_EC_KEY_get0_public_key = 0x268,
- 257 STR_EC_POINT_point2oct = 0x6e0,
- 258 STR_EVP_CIPHER_CTX_free = 0xb28,
- 259 STR_EVP_CIPHER_CTX_new = 0x838,
- 260 STR_EVP_DecryptFinal_ex = 0x2a8,
- 261 STR_EVP_DecryptInit_ex = 0xc08,
- 262 STR_EVP_DecryptUpdate = 0x3f0,
- 263 STR_EVP_Digest = 0xf8,
- 264 STR_EVP_DigestVerify = 0x408,
- 265 STR_EVP_DigestVerifyInit = 0x118,
- 266 STR_EVP_MD_CTX_free = 0xd10,
- 267 STR_EVP_MD_CTX_new = 0xaf8,
- 268 STR_EVP_PKEY_free = 0x6f8,
- 269 STR_EVP_PKEY_new_raw_public_key = 0x758,
- 270 STR_EVP_PKEY_set1_RSA = 0x510,
- 271 STR_EVP_chacha20 = 0xc28,
- 272 STR_EVP_sha256 = 0xc60,
-
- 274 STR_GLIBC_2_2_5 = 0x8c0,
- 275 STR_GLRO_dl_naudit_naudit = 0x6a8,
- 276 STR_KRB5CCNAME = 0x1e0,
- 277 STR_LD_AUDIT = 0xcf0,
- 278 STR_LD_BIND_NOT = 0xbc0,
- 279 STR_LD_DEBUG = 0xa90,
- 280 STR_LD_PROFILE = 0xb98,
- 281 STR_LD_USE_LOAD_BIAS = 0x3e0,
-
- 283 STR_RSA_free = 0xac0,
- 284 STR_RSA_get0_key = 0x798,
-
- 286 STR_RSA_public_decrypt = 0x1d0,
- 287 STR_RSA_set0_key = 0x540,
- 288 STR_RSA_sign = 0x8f8,
-
-
- 291 STR_Unrecognized_internal_syslog_level_code_d = 0xe0,
- 292 STR_WAYLAND_DISPLAY = 0x158,
- 293 STR_errno_location = 0x878,
- 294 STR_libc_stack_end = 0x2b0,
- 295 STR_libc_start_main = 0x228,
- 296 STR_dl_audit_preinit = 0xa60,
- 297 STR_dl_audit_symbind_alt = 0x9c8,
-
-
- 300 STR_rtld_global = 0x5b8,
- 301 STR_rtld_global_ro = 0xa98,
- 302 STR_auth_root_allowed = 0xb8,
- 303 STR_authenticating = 0x1d8,
- 304 STR_demote_sensitive_data = 0x28,
-
- 306 STR_ld_linux_x86_64_so = 0xa48,
-
- 308 STR_libcrypto_so = 0x7c0,
- 309 STR_liblzma_so = 0x590,
- 310 STR_libsystemd_so = 0x938,
- 311 STR_list_hostkey_types = 0x20,
- 312 STR_malloc_usable_size = 0x440,
- 313 STR_mm_answer_authpassword = 0xc0,
- 314 STR_mm_answer_keyallowed = 0xc8,
- 315 STR_mm_answer_keyverify = 0xd0,
- 316 STR_mm_answer_pam_start = 0x948,
- 317 STR_mm_choose_dh = 0x78,
- 318 STR_mm_do_pam_account = 0x40,
- 319 STR_mm_getpwnamallow = 0x50,
- 320 STR_mm_log_handler = 0xa8,
- 321 STR_mm_pty_allocate = 0x38,
- 322 STR_mm_request_send = 0xa0,
- 323 STR_mm_session_pty_cleanup2 = 0x48,
- 324 STR_mm_sshpam_free_ctx = 0x70,
- 325 STR_mm_sshpam_init_ctx = 0x58,
- 326 STR_mm_sshpam_query = 0x60,
- 327 STR_mm_sshpam_respond = 0x68,
- 328 STR_mm_terminate = 0x30,
- 329 STR_parse_PAM = 0xc58,
- 330 STR_password = 0x400,
-
-
- 333 STR_publickey = 0x7b8,
-
- 335 STR_rsa_sha2_256 = 0x710,
- 336 STR_setlogmask = 0x428,
- 337 STR_setresgid = 0x5f0,
- 338 STR_setresuid = 0xab8,
- 339 STR_shutdown = 0x760,
-
- 341 STR_ssh_rsa_cert_v01_openssh_com = 0x2c8,
- 342 STR_sshpam_auth_passwd = 0x88,
- 343 STR_sshpam_query = 0x90,
- 344 STR_sshpam_respond = 0x80,
- 345 STR_start_pam = 0x98,
-
-
-
-
- 350 STR_xcalloc_zero_size = 0x10,
- 351 STR_yolAbejyiejuvnupEvjtgvsh5okmkAvj = 0xb00,
-
-
-
-
- 356 #define assert_offset(t, f, o) static_assert(offsetof(t, f) == o)
-
- 358 #define assert_offset(t, f, o)
-
-
- 361 #define CONCAT(x, y) x ## y
- 362 #define EXPAND(x, y) CONCAT(x, y)
- 363 #define PADDING(size) u8 EXPAND(_unknown, __LINE__)[size]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 406 u64 instruction_size;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 433 assert_offset(
dasm_ctx_t, instruction_size, 8);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 512 Elf64_Versym *versym;
- 513 Elf64_Rela *rela_relocs;
-
-
- 516 Elf64_Relr *relr_relocs;
-
-
-
-
-
- 530 u64 rodata_segment_start;
- 531 u64 rodata_segment_size;
- 532 u64 data_segment_start;
- 533 u64 data_segment_size;
- 534 u64 data_segment_alignment;
-
-
-
-
-
- 546 u32 gnu_hash_bloom_shift;
-
-
- 549 u32 *gnu_hash_buckets;
-
-
-
-
-
-
-
-
- 558 assert_offset(
elf_info_t, dyn_num_entries, 0x28);
-
-
-
- 562 assert_offset(
elf_info_t, plt_relocs_num, 0x48);
- 563 assert_offset(
elf_info_t, gnurelro_found, 0x4C);
- 564 assert_offset(
elf_info_t, gnurelro_vaddr, 0x50);
- 565 assert_offset(
elf_info_t, gnurelro_memsize, 0x58);
-
-
-
-
- 570 assert_offset(
elf_info_t, rela_relocs_num, 0x80);
-
- 572 assert_offset(
elf_info_t, relr_relocs_num, 0x90);
- 573 assert_offset(
elf_info_t, code_segment_start, 0x98);
- 574 assert_offset(
elf_info_t, code_segment_size, 0xA0);
- 575 assert_offset(
elf_info_t, rodata_segment_start, 0xA8);
- 576 assert_offset(
elf_info_t, rodata_segment_size, 0xB0);
- 577 assert_offset(
elf_info_t, data_segment_start, 0xB8);
- 578 assert_offset(
elf_info_t, data_segment_size, 0xC0);
- 579 assert_offset(
elf_info_t, data_segment_alignment, 0xC8);
-
- 581 assert_offset(
elf_info_t, gnu_hash_nbuckets, 0xd8);
- 582 assert_offset(
elf_info_t, gnu_hash_last_bloom, 0xdc);
- 583 assert_offset(
elf_info_t, gnu_hash_bloom_shift, 0xe0);
- 584 assert_offset(
elf_info_t, gnu_hash_bloom, 0xe8);
- 585 assert_offset(
elf_info_t, gnu_hash_buckets, 0xf0);
- 586 assert_offset(
elf_info_t, gnu_hash_chain, 0xf8);
-
-
-
- 590 u32 resolved_imports_count;
-
- 592 size_t (*malloc_usable_size)(
void *ptr);
- 593 uid_t (*getuid)(void);
- 594 void (*exit)(
int status);
- 595 int (*setresgid)(gid_t rgid, gid_t egid, gid_t sgid);
- 596 int (*setresuid)(uid_t ruid, uid_t euid, uid_t suid);
- 597 int (*system)(
const char *command);
- 598 ssize_t (*write)(
int fd,
const void *buf,
size_t count);
-
- 600 int nfds, fd_set *readfds, fd_set *writefds,
- 601 fd_set *exceptfds,
const struct timespec *timeout,
- 602 const sigset_t *sigmask);
- 603 ssize_t (*read)(
int fd,
void *buf,
size_t count);
- 604 int *(*__errno_location)(void);
- 605 int (*setlogmask)(
int mask);
- 606 int (*shutdown)(
int sockfd,
int how);
- 607 void *__libc_stack_end;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 625 typedef int (*pfn_RSA_public_decrypt_t)(
- 626 int flen,
unsigned char *from,
unsigned char *to,
- 627 RSA *rsa,
int padding);
- 628 typedef int (*pfn_EVP_PKEY_set1_RSA_t)(EVP_PKEY *pkey,
struct rsa_st *key);
- 629 typedef void (*pfn_RSA_get0_key_t)(
-
- 631 const BIGNUM **n,
const BIGNUM **e,
const BIGNUM **d);
-
-
- 634 pfn_RSA_public_decrypt_t RSA_public_decrypt;
- 635 pfn_EVP_PKEY_set1_RSA_t EVP_PKEY_set1_RSA;
-
- 637 void (*RSA_get0_key_null)(
- 638 const RSA *r,
const BIGNUM **n,
- 639 const BIGNUM **e,
const BIGNUM **d);
-
-
-
- 655 void (*DSA_get0_pqg)(
- 656 const DSA *d,
const BIGNUM **p,
- 657 const BIGNUM **q,
const BIGNUM **g);
- 658 const BIGNUM *(*DSA_get0_pub_key)(
const DSA *d);
- 659 size_t (*EC_POINT_point2oct)(
- 660 const EC_GROUP *group,
const EC_POINT *p,
- 661 point_conversion_form_t form,
unsigned char *buf,
- 662 size_t len, BN_CTX *ctx);
- 663 EC_POINT *(*EC_KEY_get0_public_key)(
const EC_KEY *key);
- 664 const EC_GROUP *(*EC_KEY_get0_group)(
const EC_KEY *key);
- 665 EVP_MD *(*EVP_sha256)(void);
- 666 pfn_RSA_get0_key_t RSA_get0_key;
- 667 int (*BN_num_bits)(
const BIGNUM *a);
- 668 EVP_PKEY *(*EVP_PKEY_new_raw_public_key)(
-
- 670 const unsigned char *key,
size_t keylen);
- 671 EVP_MD_CTX *(*EVP_MD_CTX_new)(void);
- 672 int (*EVP_DigestVerifyInit)(
- 673 EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
- 674 const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey);
- 675 int (*EVP_DigestVerify)(
- 676 EVP_MD_CTX *ctx,
const unsigned char *sig,
- 677 size_t siglen,
const unsigned char *tbs,
size_t tbslen);
- 678 void (*EVP_MD_CTX_free)(EVP_MD_CTX *ctx);
- 679 void (*EVP_PKEY_free)(EVP_PKEY *key);
- 680 EVP_CIPHER_CTX *(*EVP_CIPHER_CTX_new)(void);
- 681 int (*EVP_DecryptInit_ex)(
- 682 EVP_CIPHER_CTX *ctx,
const EVP_CIPHER *type,
- 683 ENGINE *impl,
const unsigned char *key,
const unsigned char *iv);
- 684 int (*EVP_DecryptUpdate)(
- 685 EVP_CIPHER_CTX *ctx,
unsigned char *out,
- 686 int *outl,
const unsigned char *in,
int inl);
- 687 int (*EVP_DecryptFinal_ex)(EVP_CIPHER_CTX *ctx,
unsigned char *outm,
int *outl);
- 688 void (*EVP_CIPHER_CTX_free)(EVP_CIPHER_CTX *ctx);
- 689 const EVP_CIPHER *(*EVP_chacha20)(void);
- 690 RSA *(*RSA_new)(void);
- 691 BIGNUM *(*BN_dup)(
const BIGNUM *from);
- 692 BIGNUM (*BN_bin2bn)(
const unsigned char *s,
int len, BIGNUM *ret);
- 693 int (*RSA_set0_key)(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
-
- 695 const void *data,
size_t count,
unsigned char *md,
- 696 unsigned int *size,
const EVP_MD *type, ENGINE *impl);
-
-
- 699 const unsigned char *m,
unsigned int m_len,
- 700 unsigned char *sigret,
unsigned int *siglen, RSA *rsa);
- 701 int (*BN_bn2bin)(
const BIGNUM *a,
unsigned char *to);
- 702 void (*RSA_free)(RSA *rsa);
- 703 void (*BN_free)(BIGNUM *a);
-
- 705 u64 resolved_imports_count;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 749 PADDING(
sizeof(
void *));
- 750 void *mm_answer_authpassword_start;
- 751 void *mm_answer_authpassword_end;
- 752 void *monitor_req_authpassword;
- 753 PADDING(
sizeof(
void *));
- 754 void *mm_answer_keyallowed_start;
- 755 void *mm_answer_keyallowed_end;
- 756 void *monitor_req_keyallowed_ptr;
- 757 PADDING(
sizeof(
void *));
- 758 void *mm_answer_keyverify_start;
- 759 void *mm_answer_keyverify_end;
- 760 void *monitor_req_keyverify_ptr;
-
-
-
-
-
-
- 767 PADDING(
sizeof(
void *));
- 768 void *mm_request_send_start;
- 769 void *mm_request_send_end;
- 770 PADDING(
sizeof(u32));
- 771 PADDING(
sizeof(u32));
-
- 773 int *permit_root_login_ptr;
-
-
-
-
- 778 assert_offset(
sshd_ctx_t, mm_answer_authpassword_start, 0x28);
- 779 assert_offset(
sshd_ctx_t, mm_answer_authpassword_end, 0x30);
- 780 assert_offset(
sshd_ctx_t, monitor_req_authpassword, 0x38);
- 781 assert_offset(
sshd_ctx_t, mm_answer_keyallowed_start, 0x48);
- 782 assert_offset(
sshd_ctx_t, mm_answer_keyallowed_end, 0x50);
- 783 assert_offset(
sshd_ctx_t, monitor_req_keyallowed_ptr, 0x58);
- 784 assert_offset(
sshd_ctx_t, mm_answer_keyverify_start, 0x68);
- 785 assert_offset(
sshd_ctx_t, mm_answer_keyverify_end, 0x70);
- 786 assert_offset(
sshd_ctx_t, monitor_req_keyverify_ptr, 0x78);
- 787 assert_offset(
sshd_ctx_t, writebuf_size, 0x84);
-
- 789 assert_offset(
sshd_ctx_t, mm_request_send_start, 0xA8);
- 790 assert_offset(
sshd_ctx_t, mm_request_send_end, 0xB0);
-
- 792 assert_offset(
sshd_ctx_t, permit_root_login_ptr, 0xC8);
- 793 assert_offset(
sshd_ctx_t, STR_password, 0xD0);
- 794 assert_offset(
sshd_ctx_t, STR_publickey, 0xD8);
-
-
-
-
-
- 800 char *STR_Connection_closed_by;
-
- 802 char *STR_authenticating;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 838 void *sshd_host_keys;
-
-
-
-
-
-
-
-
-
-
-
-
-
- 890 u8 shift_operations[31];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 916 PADDING(
sizeof(
void*));
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1020 void (*_dl_audit_symbind_alt)(
struct link_map *l,
const ElfW(Sym) *ref,
void **value, lookup_t result);
-
- 1030 pfn_RSA_public_decrypt_t hook_RSA_public_decrypt;
- 1036 pfn_RSA_public_decrypt_t hook_EVP_PKEY_set1_RSA;
- 1041 pfn_RSA_get0_key_t hook_RSA_get0_key;
-
- 1043 u64 hooks_installed;
-
-
- 1046 assert_offset(
ldso_ctx_t, libcrypto_auditstate_bindflags_ptr, 0x40);
- 1047 assert_offset(
ldso_ctx_t, libcrypto_auditstate_bindflags_old_value, 0x48);
- 1048 assert_offset(
ldso_ctx_t, sshd_auditstate_bindflags_ptr, 0x50);
- 1049 assert_offset(
ldso_ctx_t, sshd_auditstate_bindflags_old_value, 0x58);
- 1050 assert_offset(
ldso_ctx_t, sshd_link_map_l_audit_any_plt_addr, 0x60);
- 1051 assert_offset(
ldso_ctx_t, link_map_l_audit_any_plt_bitmask, 0x68);
- 1052 assert_offset(
ldso_ctx_t, _dl_audit_ptr, 0x70);
- 1053 assert_offset(
ldso_ctx_t, _dl_naudit_ptr, 0x78);
- 1054 assert_offset(
ldso_ctx_t, hooked_audit_ifaces, 0x80);
-
- 1056 assert_offset(
ldso_ctx_t, libcrypto_l_name, 0xF8);
- 1057 assert_offset(
ldso_ctx_t, _dl_audit_symbind_alt, 0x100);
- 1058 assert_offset(
ldso_ctx_t, _dl_audit_symbind_alt__size, 0x108);
- 1059 assert_offset(
ldso_ctx_t, hook_RSA_public_decrypt, 0x110);
- 1060 assert_offset(
ldso_ctx_t, hook_EVP_PKEY_set1_RSA, 0x118);
- 1061 assert_offset(
ldso_ctx_t, hook_RSA_get0_key, 0x120);
-
- 1063 assert_offset(
ldso_ctx_t, hooks_installed, 0x130);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1086 uintptr_t (*symbind64)(
- 1087 Elf64_Sym *sym,
unsigned int ndx,
- 1088 uptr *refcook, uptr *defcook,
- 1089 unsigned int flags,
const char *symname);
- 1090 pfn_RSA_public_decrypt_t hook_RSA_public_decrypt;
- 1091 pfn_RSA_get0_key_t hook_RSA_get0_key;
-
- 1096 PADDING(
sizeof(
void *));
- 1097 PADDING(
sizeof(
void *));
-
-
- 1106 PADDING(
sizeof(
void *));
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 196 X_ELF_DYNAMIC_LINKER = 1,
+
+
+
+
+
+ 202 XREF_xcalloc_zero_size = 0,
+ 203 XREF_Could_not_chdir_to_home_directory_s_s = 1,
+ 204 XREF_list_hostkey_types = 2,
+ 205 XREF_demote_sensitive_data = 3,
+ 206 XREF_mm_terminate = 4,
+ 207 XREF_mm_pty_allocate = 5,
+ 208 XREF_mm_do_pam_account = 6,
+ 209 XREF_mm_session_pty_cleanup2 = 7,
+ 210 XREF_mm_getpwnamallow = 8,
+ 211 XREF_mm_sshpam_init_ctx = 9,
+ 212 XREF_mm_sshpam_query = 10,
+ 213 XREF_mm_sshpam_respond = 11,
+ 214 XREF_mm_sshpam_free_ctx = 12,
+ 215 XREF_mm_choose_dh = 13,
+ 216 XREF_sshpam_respond = 14,
+ 217 XREF_sshpam_auth_passwd = 15,
+ 218 XREF_sshpam_query = 16,
+
+ 220 XREF_mm_request_send = 18,
+ 221 XREF_mm_log_handler = 19,
+ 222 XREF_Could_not_get_agent_socket = 20,
+ 223 XREF_auth_root_allowed = 21,
+ 224 XREF_mm_answer_authpassword = 22,
+ 225 XREF_mm_answer_keyallowed = 23,
+ 226 XREF_mm_answer_keyverify = 24,
+ 227 XREF_48s_48s_d_pid_ld_ = 25,
+ 228 XREF_Unrecognized_internal_syslog_level_code_d = 26
+
+
+
+
+
+ 234 STR_48s_48s_d_pid_ld_ = 0xd8,
+
+ 236 STR_usr_sbin_sshd = 0x108,
+ 237 STR_Accepted_password_for = 0x870,
+ 238 STR_Accepted_publickey_for = 0x1a0,
+ 239 STR_BN_bin2bn = 0xc40,
+ 240 STR_BN_bn2bin = 0x6d0,
+
+
+ 243 STR_BN_num_bits = 0x4e0,
+ 244 STR_Connection_closed_by = 0x790,
+ 245 STR_Could_not_chdir_to_home_directory_s_s = 0x18,
+ 246 STR_Could_not_get_agent_socket = 0xb0,
+
+ 248 STR_DSA_get0_pqg = 0x9d0,
+ 249 STR_DSA_get0_pub_key = 0x468,
+ 250 STR_EC_KEY_get0_group = 0x7e8,
+ 251 STR_EC_KEY_get0_public_key = 0x268,
+ 252 STR_EC_POINT_point2oct = 0x6e0,
+ 253 STR_EVP_CIPHER_CTX_free = 0xb28,
+ 254 STR_EVP_CIPHER_CTX_new = 0x838,
+ 255 STR_EVP_DecryptFinal_ex = 0x2a8,
+ 256 STR_EVP_DecryptInit_ex = 0xc08,
+ 257 STR_EVP_DecryptUpdate = 0x3f0,
+ 258 STR_EVP_Digest = 0xf8,
+ 259 STR_EVP_DigestVerify = 0x408,
+ 260 STR_EVP_DigestVerifyInit = 0x118,
+ 261 STR_EVP_MD_CTX_free = 0xd10,
+ 262 STR_EVP_MD_CTX_new = 0xaf8,
+ 263 STR_EVP_PKEY_free = 0x6f8,
+ 264 STR_EVP_PKEY_new_raw_public_key = 0x758,
+ 265 STR_EVP_PKEY_set1_RSA = 0x510,
+ 266 STR_EVP_chacha20 = 0xc28,
+ 267 STR_EVP_sha256 = 0xc60,
+
+ 269 STR_GLIBC_2_2_5 = 0x8c0,
+ 270 STR_GLRO_dl_naudit_naudit = 0x6a8,
+ 271 STR_KRB5CCNAME = 0x1e0,
+ 272 STR_LD_AUDIT = 0xcf0,
+ 273 STR_LD_BIND_NOT = 0xbc0,
+ 274 STR_LD_DEBUG = 0xa90,
+ 275 STR_LD_PROFILE = 0xb98,
+ 276 STR_LD_USE_LOAD_BIAS = 0x3e0,
+
+ 278 STR_RSA_free = 0xac0,
+ 279 STR_RSA_get0_key = 0x798,
+
+ 281 STR_RSA_public_decrypt = 0x1d0,
+ 282 STR_RSA_set0_key = 0x540,
+ 283 STR_RSA_sign = 0x8f8,
+
+
+ 286 STR_Unrecognized_internal_syslog_level_code_d = 0xe0,
+ 287 STR_WAYLAND_DISPLAY = 0x158,
+ 288 STR_errno_location = 0x878,
+ 289 STR_libc_stack_end = 0x2b0,
+ 290 STR_libc_start_main = 0x228,
+ 291 STR_dl_audit_preinit = 0xa60,
+ 292 STR_dl_audit_symbind_alt = 0x9c8,
+
+
+ 295 STR_rtld_global = 0x5b8,
+ 296 STR_rtld_global_ro = 0xa98,
+ 297 STR_auth_root_allowed = 0xb8,
+ 298 STR_authenticating = 0x1d8,
+ 299 STR_demote_sensitive_data = 0x28,
+
+ 301 STR_ld_linux_x86_64_so = 0xa48,
+
+ 303 STR_libcrypto_so = 0x7c0,
+ 304 STR_liblzma_so = 0x590,
+ 305 STR_libsystemd_so = 0x938,
+ 306 STR_list_hostkey_types = 0x20,
+ 307 STR_malloc_usable_size = 0x440,
+ 308 STR_mm_answer_authpassword = 0xc0,
+ 309 STR_mm_answer_keyallowed = 0xc8,
+ 310 STR_mm_answer_keyverify = 0xd0,
+ 311 STR_mm_answer_pam_start = 0x948,
+ 312 STR_mm_choose_dh = 0x78,
+ 313 STR_mm_do_pam_account = 0x40,
+ 314 STR_mm_getpwnamallow = 0x50,
+ 315 STR_mm_log_handler = 0xa8,
+ 316 STR_mm_pty_allocate = 0x38,
+ 317 STR_mm_request_send = 0xa0,
+ 318 STR_mm_session_pty_cleanup2 = 0x48,
+ 319 STR_mm_sshpam_free_ctx = 0x70,
+ 320 STR_mm_sshpam_init_ctx = 0x58,
+ 321 STR_mm_sshpam_query = 0x60,
+ 322 STR_mm_sshpam_respond = 0x68,
+ 323 STR_mm_terminate = 0x30,
+ 324 STR_parse_PAM = 0xc58,
+ 325 STR_password = 0x400,
+
+
+ 328 STR_publickey = 0x7b8,
+
+ 330 STR_rsa_sha2_256 = 0x710,
+ 331 STR_setlogmask = 0x428,
+ 332 STR_setresgid = 0x5f0,
+ 333 STR_setresuid = 0xab8,
+ 334 STR_shutdown = 0x760,
+
+ 336 STR_ssh_rsa_cert_v01_openssh_com = 0x2c8,
+ 337 STR_sshpam_auth_passwd = 0x88,
+ 338 STR_sshpam_query = 0x90,
+ 339 STR_sshpam_respond = 0x80,
+ 340 STR_start_pam = 0x98,
+
+
+
+
+ 345 STR_xcalloc_zero_size = 0x10,
+ 346 STR_yolAbejyiejuvnupEvjtgvsh5okmkAvj = 0xb00,
+
+
+
+
+ 351 #define assert_offset(t, f, o) static_assert(offsetof(t, f) == o)
+
+ 353 #define assert_offset(t, f, o)
+
+
+ 356 #define CONCAT(x, y) x ## y
+ 357 #define EXPAND(x, y) CONCAT(x, y)
+ 358 #define PADDING(size) u8 EXPAND(_unknown, __LINE__)[size]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 401 u64 instruction_size;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 428 assert_offset(
dasm_ctx_t, instruction_size, 8);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 507 Elf64_Versym *versym;
+ 508 Elf64_Rela *rela_relocs;
+
+
+ 511 Elf64_Relr *relr_relocs;
+
+
+
+
+
+ 525 u64 rodata_segment_start;
+ 526 u64 rodata_segment_size;
+ 527 u64 data_segment_start;
+ 528 u64 data_segment_size;
+ 529 u64 data_segment_alignment;
+
+
+
+
+
+ 541 u32 gnu_hash_bloom_shift;
+
+
+ 544 u32 *gnu_hash_buckets;
+
+
+
+
+
+
+
+
+ 553 assert_offset(
elf_info_t, dyn_num_entries, 0x28);
+
+
+
+ 557 assert_offset(
elf_info_t, plt_relocs_num, 0x48);
+ 558 assert_offset(
elf_info_t, gnurelro_found, 0x4C);
+ 559 assert_offset(
elf_info_t, gnurelro_vaddr, 0x50);
+ 560 assert_offset(
elf_info_t, gnurelro_memsize, 0x58);
+
+
+
+
+ 565 assert_offset(
elf_info_t, rela_relocs_num, 0x80);
+
+ 567 assert_offset(
elf_info_t, relr_relocs_num, 0x90);
+ 568 assert_offset(
elf_info_t, code_segment_start, 0x98);
+ 569 assert_offset(
elf_info_t, code_segment_size, 0xA0);
+ 570 assert_offset(
elf_info_t, rodata_segment_start, 0xA8);
+ 571 assert_offset(
elf_info_t, rodata_segment_size, 0xB0);
+ 572 assert_offset(
elf_info_t, data_segment_start, 0xB8);
+ 573 assert_offset(
elf_info_t, data_segment_size, 0xC0);
+ 574 assert_offset(
elf_info_t, data_segment_alignment, 0xC8);
+
+ 576 assert_offset(
elf_info_t, gnu_hash_nbuckets, 0xd8);
+ 577 assert_offset(
elf_info_t, gnu_hash_last_bloom, 0xdc);
+ 578 assert_offset(
elf_info_t, gnu_hash_bloom_shift, 0xe0);
+ 579 assert_offset(
elf_info_t, gnu_hash_bloom, 0xe8);
+ 580 assert_offset(
elf_info_t, gnu_hash_buckets, 0xf0);
+ 581 assert_offset(
elf_info_t, gnu_hash_chain, 0xf8);
+
+
+
+ 585 u32 resolved_imports_count;
+
+ 587 size_t (*malloc_usable_size)(
void *ptr);
+ 588 uid_t (*getuid)(void);
+ 589 void (*exit)(
int status);
+ 590 int (*setresgid)(gid_t rgid, gid_t egid, gid_t sgid);
+ 591 int (*setresuid)(uid_t ruid, uid_t euid, uid_t suid);
+ 592 int (*system)(
const char *command);
+ 593 ssize_t (*write)(
int fd,
const void *buf,
size_t count);
+
+ 595 int nfds, fd_set *readfds, fd_set *writefds,
+ 596 fd_set *exceptfds,
const struct timespec *timeout,
+ 597 const sigset_t *sigmask);
+ 598 ssize_t (*read)(
int fd,
void *buf,
size_t count);
+ 599 int *(*__errno_location)(void);
+ 600 int (*setlogmask)(
int mask);
+ 601 int (*shutdown)(
int sockfd,
int how);
+ 602 void *__libc_stack_end;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 620 typedef int (*pfn_RSA_public_decrypt_t)(
+ 621 int flen,
unsigned char *from,
unsigned char *to,
+ 622 RSA *rsa,
int padding);
+ 623 typedef int (*pfn_EVP_PKEY_set1_RSA_t)(EVP_PKEY *pkey,
struct rsa_st *key);
+ 624 typedef void (*pfn_RSA_get0_key_t)(
+
+ 626 const BIGNUM **n,
const BIGNUM **e,
const BIGNUM **d);
+
+
+ 629 pfn_RSA_public_decrypt_t RSA_public_decrypt;
+ 630 pfn_EVP_PKEY_set1_RSA_t EVP_PKEY_set1_RSA;
+
+ 632 void (*RSA_get0_key_null)(
+ 633 const RSA *r,
const BIGNUM **n,
+ 634 const BIGNUM **e,
const BIGNUM **d);
+
+
+
+ 650 void (*DSA_get0_pqg)(
+ 651 const DSA *d,
const BIGNUM **p,
+ 652 const BIGNUM **q,
const BIGNUM **g);
+ 653 const BIGNUM *(*DSA_get0_pub_key)(
const DSA *d);
+ 654 size_t (*EC_POINT_point2oct)(
+ 655 const EC_GROUP *group,
const EC_POINT *p,
+ 656 point_conversion_form_t form,
unsigned char *buf,
+ 657 size_t len, BN_CTX *ctx);
+ 658 EC_POINT *(*EC_KEY_get0_public_key)(
const EC_KEY *key);
+ 659 const EC_GROUP *(*EC_KEY_get0_group)(
const EC_KEY *key);
+ 660 EVP_MD *(*EVP_sha256)(void);
+ 661 pfn_RSA_get0_key_t RSA_get0_key;
+ 662 int (*BN_num_bits)(
const BIGNUM *a);
+ 663 EVP_PKEY *(*EVP_PKEY_new_raw_public_key)(
+
+ 665 const unsigned char *key,
size_t keylen);
+ 666 EVP_MD_CTX *(*EVP_MD_CTX_new)(void);
+ 667 int (*EVP_DigestVerifyInit)(
+ 668 EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
+ 669 const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey);
+ 670 int (*EVP_DigestVerify)(
+ 671 EVP_MD_CTX *ctx,
const unsigned char *sig,
+ 672 size_t siglen,
const unsigned char *tbs,
size_t tbslen);
+ 673 void (*EVP_MD_CTX_free)(EVP_MD_CTX *ctx);
+ 674 void (*EVP_PKEY_free)(EVP_PKEY *key);
+ 675 EVP_CIPHER_CTX *(*EVP_CIPHER_CTX_new)(void);
+ 676 int (*EVP_DecryptInit_ex)(
+ 677 EVP_CIPHER_CTX *ctx,
const EVP_CIPHER *type,
+ 678 ENGINE *impl,
const unsigned char *key,
const unsigned char *iv);
+ 679 int (*EVP_DecryptUpdate)(
+ 680 EVP_CIPHER_CTX *ctx,
unsigned char *out,
+ 681 int *outl,
const unsigned char *in,
int inl);
+ 682 int (*EVP_DecryptFinal_ex)(EVP_CIPHER_CTX *ctx,
unsigned char *outm,
int *outl);
+ 683 void (*EVP_CIPHER_CTX_free)(EVP_CIPHER_CTX *ctx);
+ 684 const EVP_CIPHER *(*EVP_chacha20)(void);
+ 685 RSA *(*RSA_new)(void);
+ 686 BIGNUM *(*BN_dup)(
const BIGNUM *from);
+ 687 BIGNUM (*BN_bin2bn)(
const unsigned char *s,
int len, BIGNUM *ret);
+ 688 int (*RSA_set0_key)(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
+
+ 690 const void *data,
size_t count,
unsigned char *md,
+ 691 unsigned int *size,
const EVP_MD *type, ENGINE *impl);
+
+
+ 694 const unsigned char *m,
unsigned int m_len,
+ 695 unsigned char *sigret,
unsigned int *siglen, RSA *rsa);
+ 696 int (*BN_bn2bin)(
const BIGNUM *a,
unsigned char *to);
+ 697 void (*RSA_free)(RSA *rsa);
+ 698 void (*BN_free)(BIGNUM *a);
+
+ 700 u64 resolved_imports_count;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 744 PADDING(
sizeof(
void *));
+ 745 void *mm_answer_authpassword_start;
+ 746 void *mm_answer_authpassword_end;
+ 747 void *monitor_req_authpassword;
+ 748 PADDING(
sizeof(
void *));
+ 749 void *mm_answer_keyallowed_start;
+ 750 void *mm_answer_keyallowed_end;
+ 751 void *monitor_req_keyallowed_ptr;
+ 752 PADDING(
sizeof(
void *));
+ 753 void *mm_answer_keyverify_start;
+ 754 void *mm_answer_keyverify_end;
+ 755 void *monitor_req_keyverify_ptr;
+
+
+
+
+
+
+ 762 PADDING(
sizeof(
void *));
+ 763 void *mm_request_send_start;
+ 764 void *mm_request_send_end;
+ 765 PADDING(
sizeof(u32));
+ 766 PADDING(
sizeof(u32));
+
+ 768 int *permit_root_login_ptr;
+
+
+
+
+ 773 assert_offset(
sshd_ctx_t, mm_answer_authpassword_start, 0x28);
+ 774 assert_offset(
sshd_ctx_t, mm_answer_authpassword_end, 0x30);
+ 775 assert_offset(
sshd_ctx_t, monitor_req_authpassword, 0x38);
+ 776 assert_offset(
sshd_ctx_t, mm_answer_keyallowed_start, 0x48);
+ 777 assert_offset(
sshd_ctx_t, mm_answer_keyallowed_end, 0x50);
+ 778 assert_offset(
sshd_ctx_t, monitor_req_keyallowed_ptr, 0x58);
+ 779 assert_offset(
sshd_ctx_t, mm_answer_keyverify_start, 0x68);
+ 780 assert_offset(
sshd_ctx_t, mm_answer_keyverify_end, 0x70);
+ 781 assert_offset(
sshd_ctx_t, monitor_req_keyverify_ptr, 0x78);
+ 782 assert_offset(
sshd_ctx_t, writebuf_size, 0x84);
+
+ 784 assert_offset(
sshd_ctx_t, mm_request_send_start, 0xA8);
+ 785 assert_offset(
sshd_ctx_t, mm_request_send_end, 0xB0);
+
+ 787 assert_offset(
sshd_ctx_t, permit_root_login_ptr, 0xC8);
+ 788 assert_offset(
sshd_ctx_t, STR_password, 0xD0);
+ 789 assert_offset(
sshd_ctx_t, STR_publickey, 0xD8);
+
+
+
+
+
+ 795 char *STR_Connection_closed_by;
+
+ 797 char *STR_authenticating;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 833 void *sshd_host_keys;
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 885 u8 shift_operations[31];
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 911 PADDING(
sizeof(
void*));
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1015 void (*_dl_audit_symbind_alt)(
struct link_map *l,
const ElfW(Sym) *ref,
void **value, lookup_t result);
+
+ 1025 pfn_RSA_public_decrypt_t hook_RSA_public_decrypt;
+ 1031 pfn_RSA_public_decrypt_t hook_EVP_PKEY_set1_RSA;
+ 1036 pfn_RSA_get0_key_t hook_RSA_get0_key;
+
+ 1038 u64 hooks_installed;
+
+
+ 1041 assert_offset(
ldso_ctx_t, libcrypto_auditstate_bindflags_ptr, 0x40);
+ 1042 assert_offset(
ldso_ctx_t, libcrypto_auditstate_bindflags_old_value, 0x48);
+ 1043 assert_offset(
ldso_ctx_t, sshd_auditstate_bindflags_ptr, 0x50);
+ 1044 assert_offset(
ldso_ctx_t, sshd_auditstate_bindflags_old_value, 0x58);
+ 1045 assert_offset(
ldso_ctx_t, sshd_link_map_l_audit_any_plt_addr, 0x60);
+ 1046 assert_offset(
ldso_ctx_t, link_map_l_audit_any_plt_bitmask, 0x68);
+ 1047 assert_offset(
ldso_ctx_t, _dl_audit_ptr, 0x70);
+ 1048 assert_offset(
ldso_ctx_t, _dl_naudit_ptr, 0x78);
+ 1049 assert_offset(
ldso_ctx_t, hooked_audit_ifaces, 0x80);
+
+ 1051 assert_offset(
ldso_ctx_t, libcrypto_l_name, 0xF8);
+ 1052 assert_offset(
ldso_ctx_t, _dl_audit_symbind_alt, 0x100);
+ 1053 assert_offset(
ldso_ctx_t, _dl_audit_symbind_alt__size, 0x108);
+ 1054 assert_offset(
ldso_ctx_t, hook_RSA_public_decrypt, 0x110);
+ 1055 assert_offset(
ldso_ctx_t, hook_EVP_PKEY_set1_RSA, 0x118);
+ 1056 assert_offset(
ldso_ctx_t, hook_RSA_get0_key, 0x120);
+
+ 1058 assert_offset(
ldso_ctx_t, hooks_installed, 0x130);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1081 uintptr_t (*symbind64)(
+ 1082 Elf64_Sym *sym,
unsigned int ndx,
+ 1083 uptr *refcook, uptr *defcook,
+ 1084 unsigned int flags,
const char *symname);
+ 1085 pfn_RSA_public_decrypt_t hook_RSA_public_decrypt;
+ 1086 pfn_RSA_get0_key_t hook_RSA_get0_key;
+
+ 1091 PADDING(
sizeof(
void *));
+ 1092 PADDING(
sizeof(
void *));
+
+
+ 1101 PADDING(
sizeof(
void *));
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1159 Elf64_Ehdr *dynamic_linker_ehdr;
- 1160 void **__libc_stack_end;
-
-
-
- 1164 assert_offset(
main_elf_t, dynamic_linker_ehdr, 0x8);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1154 Elf64_Ehdr *dynamic_linker_ehdr;
+ 1155 void **__libc_stack_end;
+
+
+
+ 1159 assert_offset(
main_elf_t, dynamic_linker_ehdr, 0x8);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
- 1228 struct link_map *liblzma_map;
- 1229 struct link_map *libcrypto_map;
- 1230 struct link_map *libsystemd_map;
- 1231 struct link_map *libc_map;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ 1223 struct link_map *liblzma_map;
+ 1224 struct link_map *libcrypto_map;
+ 1225 struct link_map *libsystemd_map;
+ 1226 struct link_map *libc_map;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1359 typedef union __attribute__((packed)) {
+
+
+
- 1364 typedef union __attribute__((packed)) {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1430 u8 decrypted_secret_data[57];
-
-
-
-
-
-
- 1437 assert_offset(
key_ctx_t, payload, 0x15);
- 1438 static_assert(
sizeof(
key_ctx_t) == 0x2B8);
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1425 u8 decrypted_secret_data[57];
+
+
+
+
+
+
+ 1432 assert_offset(
key_ctx_t, payload, 0x15);
+ 1433 static_assert(
sizeof(
key_ctx_t) == 0x2B8);
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1486 PADDING(
sizeof(u64));
-
- 1493 PADDING(
sizeof(u64));
- 1494 PADDING(
sizeof(u64));
-
- 1501 PADDING(
sizeof(u64));
-
-
+
+
+
+
+
+
+
+
+
+
+ 1481 PADDING(
sizeof(u64));
+
+ 1488 PADDING(
sizeof(u64));
+ 1489 PADDING(
sizeof(u64));
+
+ 1496 PADDING(
sizeof(u64));
+
+
+
+
+
+
+
-
-
-
-
+
+ 1511 PADDING(
sizeof(u64));
+ 1512 lzma_allocator allocator;
+
-
- 1516 PADDING(
sizeof(u64));
- 1517 lzma_allocator allocator;
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- 1547 u8 *output_register;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1644 BOOL is_64bit_operand,
-
-
-
-
-
-
-
- 1667 BOOL is_64bit_operand,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1733 EncodedStringId encoded_string_id,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1787 FuncFindType find_mode);
-
-
-
-
-
-
-
- 1842 extern char *check_argument(
char arg_first_char,
char* arg_name);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1925 EncodedStringId encoded_string_id);
-
-
-
-
-
-
- 1959 StringXrefId xref_id,
- 1960 void **pOutCodeStart,
void **pOutCodeEnd,
-
-
- 1963 BOOL *pCheckPrologue);
-
-
-
- 1979 EncodedStringId *stringId_inOut,
- 1980 void *rodata_start_ptr);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2050 unsigned shift_count, BOOL start_from_call);
-
-
-
- 2064 unsigned operation_index,
- 2065 unsigned shift_count,
- 2066 int flags, u8 *code);
-
-
-
-
- 2081 unsigned shift_count,
unsigned operation_index);
-
-
- 2126 u8 *call_site, u8 *code,
-
- 2128 unsigned shift_count,
unsigned operation_index);
-
-
-
- 2143 unsigned shift_count,
unsigned operation_index,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2255 struct link_map *libc,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2332 extern EncodedStringId
get_string_id(
const char *string_begin,
const char *string_end);
-
- 2373 extern unsigned int _get_cpuid_modified(
unsigned int leaf,
unsigned int *eax,
unsigned int *ebx,
unsigned int *ecx,
unsigned int *edx, u64 *caller_frame);
-
- 2386 extern void _cpuid_gcc(
unsigned int level,
unsigned int *a,
unsigned int *b,
unsigned int *c,
unsigned int *d);
-
-
-
-
-
-
-
-
-
-
- 2443 uptr *refcook, uptr *defcook,
-
- 2445 const char *symname);
-
-
-
-
-
- 2476 ptrdiff_t *libname_offset,
-
-
-
-
-
- 2504 ptrdiff_t *libname_offset,
-
-
-
-
-
-
-
-
-
-
-
- 2551 ptrdiff_t libname_offset,
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2594 void **host_keys_out);
-
-
-
-
-
-
- 2615 void **host_keys_out,
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2684 static_assert(
sizeof(global_ctx) == 0x8);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ptrdiff_t backdoor_init_stage2_got_offset
offset from the symbol backdoor_init_stage2() to the GOT
Definition: xzre.h:1458
-ptrdiff_t cpuid_random_symbol_got_offset
offset from the symbol cpuid_random_symbol to the GOT
Definition: xzre.h:1446
-u64 cpuid_got_index
index in the GOT for _cpuid()
Definition: xzre.h:1452
-data passed to functions that access the backdoor data
Definition: xzre.h:1172
-this structure is used to hold most of the backdoor information. it's used as a local variable in fun...
Definition: xzre.h:1217
-libc_imports_t libc_imports
functions imported from libc
Definition: xzre.h:1262
-string_references_t string_refs
information about resolved string references and the containing functions boundaries
Definition: xzre.h:1267
-struct link_map * main_map
this is for sshd itself
Definition: xzre.h:1222
-elf_info_t libc_info
ELF context for libc.so.
Definition: xzre.h:1252
-elf_info_t libcrypto_info
ELF context for libcrypto.so.
Definition: xzre.h:1257
-elf_info_t dynamic_linker_info
ELF context for ld.so.
Definition: xzre.h:1248
-elf_info_t main_info
this is for sshd itself
Definition: xzre.h:1242
-lzma_allocator * import_resolver
ELF import resolver (fake LZMA allocator)
Definition: xzre.h:1272
-struct link_map * dynamic_linker_map
this is for ld.so
Definition: xzre.h:1227
-
+
+
+
+
+
+
+ 1542 u8 *output_register;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1639 BOOL is_64bit_operand,
+
+
+
+
+
+
+
+ 1662 BOOL is_64bit_operand,
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1728 EncodedStringId encoded_string_id,
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1782 FuncFindType find_mode);
+
+
+
+
+
+
+
+ 1837 extern char *check_argument(
char arg_first_char,
char* arg_name);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1920 EncodedStringId encoded_string_id);
+
+
+
+
+
+
+ 1954 StringXrefId xref_id,
+ 1955 void **pOutCodeStart,
void **pOutCodeEnd,
+
+
+ 1958 BOOL *pCheckPrologue);
+
+
+
+ 1974 EncodedStringId *stringId_inOut,
+ 1975 void *rodata_start_ptr);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 2045 unsigned shift_count, BOOL start_from_call);
+
+
+
+ 2059 unsigned operation_index,
+ 2060 unsigned shift_count,
+ 2061 int flags, u8 *code);
+
+
+
+
+ 2076 unsigned shift_count,
unsigned operation_index);
+
+
+ 2121 u8 *call_site, u8 *code,
+
+ 2123 unsigned shift_count,
unsigned operation_index);
+
+
+
+ 2138 unsigned shift_count,
unsigned operation_index,
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 2250 struct link_map *libc,
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 2327 extern EncodedStringId
get_string_id(
const char *string_begin,
const char *string_end);
+
+ 2368 extern unsigned int _get_cpuid_modified(
unsigned int leaf,
unsigned int *eax,
unsigned int *ebx,
unsigned int *ecx,
unsigned int *edx, u64 *caller_frame);
+
+ 2381 extern void _cpuid_gcc(
unsigned int level,
unsigned int *a,
unsigned int *b,
unsigned int *c,
unsigned int *d);
+
+
+
+
+
+
+
+
+
+
+ 2438 uptr *refcook, uptr *defcook,
+
+ 2440 const char *symname);
+
+
+
+
+
+ 2471 ptrdiff_t *libname_offset,
+
+
+
+
+
+ 2499 ptrdiff_t *libname_offset,
+
+
+
+
+
+
+
+
+
+
+
+ 2546 ptrdiff_t libname_offset,
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 2589 void **host_keys_out);
+
+
+
+
+
+
+ 2610 void **host_keys_out,
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 2679 static_assert(
sizeof(global_ctx) == 0x8);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ptrdiff_t backdoor_init_stage2_got_offset
offset from the symbol backdoor_init_stage2() to the GOT
Definition: xzre.h:1453
+ptrdiff_t cpuid_random_symbol_got_offset
offset from the symbol cpuid_random_symbol to the GOT
Definition: xzre.h:1441
+u64 cpuid_got_index
index in the GOT for _cpuid()
Definition: xzre.h:1447
+data passed to functions that access the backdoor data
Definition: xzre.h:1167
+this structure is used to hold most of the backdoor information. it's used as a local variable in fun...
Definition: xzre.h:1212
+libc_imports_t libc_imports
functions imported from libc
Definition: xzre.h:1257
+string_references_t string_refs
information about resolved string references and the containing functions boundaries
Definition: xzre.h:1262
+struct link_map * main_map
this is for sshd itself
Definition: xzre.h:1217
+elf_info_t libc_info
ELF context for libc.so.
Definition: xzre.h:1247
+elf_info_t libcrypto_info
ELF context for libcrypto.so.
Definition: xzre.h:1252
+elf_info_t dynamic_linker_info
ELF context for ld.so.
Definition: xzre.h:1243
+elf_info_t main_info
this is for sshd itself
Definition: xzre.h:1237
+lzma_allocator * import_resolver
ELF import resolver (fake LZMA allocator)
Definition: xzre.h:1267
+struct link_map * dynamic_linker_map
this is for ld.so
Definition: xzre.h:1222
+
PADDING(sizeof(void *))
set to addess of symbol .Llzma12_mode_map_part_1
-
-
-
+
+
+
-
-void * EVP_PKEY_set1_RSA_plt
address of the PLT for EVP_PKEY_set1_RSA_plt() in sshd
Definition: xzre.h:1304
-void * RSA_get0_key_plt
address of the PLT for RSA_get0_key_plt() in sshd
Definition: xzre.h:1309
-void * RSA_public_decrypt_plt
address of the PLT for RSA_public_decrypt() in sshd
Definition: xzre.h:1299
-
-ptrdiff_t tls_get_addr_plt_offset
offset from the symbol __tls_get_addr() to the PLT
Definition: xzre.h:1472
-ptrdiff_t tls_get_addr_random_symbol_got_offset
offset from the symbol tls_get_addr_random_symbol to the GOT
Definition: xzre.h:1478
-
-
-
-void * symbol_ptr
points to a symbol in memory will be used to find the GOT value
Definition: xzre.h:370
-void * got_ptr
points to the Global Offset Table
Definition: xzre.h:374
-void * return_address
the return address value of the caller obtained from *(u64 *)(caller_locals+24) since the entrypoint ...
Definition: xzre.h:381
-ptrdiff_t got_offset
holds the offset of the symbol relative to the GOT. used to derive the got_ptr
Definition: xzre.h:390
-void * cpuid_fn
points to the real cpuid function
Definition: xzre.h:385
-u64 * frame_address
stores the value of __builtin_frame_address(0)-16
Definition: xzre.h:394
-
-array of ELF handles
Definition: xzre.h:1134
-elf_info_t * dynamic_linker
ELF context for ld.so.
Definition: xzre.h:1145
-elf_info_t * main
this is for sshd
Definition: xzre.h:1139
-
-u64 code_segment_size
page-aligned virtual size of the first executable ELF segment
Definition: xzre.h:528
-u64 first_vaddr
virtual address of the first program header
Definition: xzre.h:457
-u64 gnurelro_memsize
size of the GNU relro segment
Definition: xzre.h:503
-Elf64_Verdef * verdef
pointer to the EFL symbol versioning (from DT_VERDEF)
Definition: xzre.h:507
-u32 gnu_hash_last_bloom
last valid bloom value
Definition: xzre.h:545
-Elf64_Dyn * dyn
pointer to the ELF dynamic segment
Definition: xzre.h:469
-char * strtab
pointer to the ELF string table
Definition: xzre.h:477
-Elf64_Phdr * phdrs
pointer to the ELF program headers array in memory
Definition: xzre.h:461
-u32 gnu_hash_nbuckets
number of GNU hash buckets (from DT_GNU_HASH)
Definition: xzre.h:541
-Elf64_Ehdr * elfbase
pointed to the ELF base address in memory
Definition: xzre.h:453
-u64 e_phnum
copy of the ELF program header count from the ELF header
Definition: xzre.h:465
-Elf64_Rela * plt_relocs
pointer to the ELF PLT relocations table
Definition: xzre.h:485
-BOOL gnurelro_found
whether the loaded ELF contains PT_GNU_RELRO or not which specifies the location and size of a segmen...
Definition: xzre.h:495
-u64 code_segment_start
page-aligned virtual address of the first executable ELF segment
Definition: xzre.h:523
-u64 verdef_num
number of entries in the symbol versioning table
Definition: xzre.h:511
-u64 gnurelro_vaddr
location of the GNU relro segment
Definition: xzre.h:499
-Elf64_Sym * symtab
pointer to the ELF symbol table
Definition: xzre.h:481
-u64 dyn_num_entries
number of entries in the ELF dynamic segment
Definition: xzre.h:473
-u32 plt_relocs_num
number of entries in the PLT relocation table
Definition: xzre.h:489
-
-
-void * lzma_code_end
liblzma code segment end
Definition: xzre.h:879
-libc_imports_t * libc_imports
pointer to the structure containing resolved libc functions
Definition: xzre.h:827
-BOOL disable_backdoor
This flag gets set to TRUE by run_backdoor_commands if any of the validity checks fail,...
Definition: xzre.h:835
-char * rsa_sha2_256_str
location of sshd .rodata string "rsa-sha2-256"
Definition: xzre.h:847
-imported_funcs_t * imported_funcs
pointer to the structure containing resolved OpenSSL functions
Definition: xzre.h:823
-void * sshd_data_start
sshd data segment end
Definition: xzre.h:860
-char * ssh_rsa_cert_v01_openssh_com_str
location of sshd .rodata string "ssh-rsa-cert-v01@openssh.com"
Definition: xzre.h:843
-u32 num_shifted_bits
number of bits copied
Definition: xzre.h:894
-void * sshd_code_start
sshd code segment start
Definition: xzre.h:852
-void * sshd_data_end
sshd data segment start
Definition: xzre.h:864
-void * sshd_code_end
sshd code segment end
Definition: xzre.h:856
-void * lzma_code_start
liblzma code segment start
Definition: xzre.h:872
-
-void * RSA_public_decrypt_plt
address of the PLT for RSA_public_decrypt() in sshd
Definition: xzre.h:644
-void * RSA_get0_key_plt
address of the PLT for RSA_get0_key() in sshd
Definition: xzre.h:654
-void * EVP_PKEY_set1_RSA_plt
address of the PLT for EVP_PKEY_set1_RSA() in sshd
Definition: xzre.h:649
-
-BOOL result
TRUE if the instruction sequence was found, FALSE otherwise.
Definition: xzre.h:1552
-u8 * offset_to_match
offset to match in the instruction displacement
Definition: xzre.h:1541
-u8 * start_addr
start of the code address range to search
Definition: xzre.h:1531
-u8 * end_addr
start of the code address range to search
Definition: xzre.h:1536
-u32 * output_register_to_match
register to match as the instruction output
Definition: xzre.h:1546
-
-
-the payload header. also used as Chacha IV
Definition: xzre.h:1344
-the contents of the RSA 'n' field
Definition: xzre.h:1359
-
-void * sshd_auditstate_bindflags_ptr
the location of sshd's auditstate::bindflags field
Definition: xzre.h:956
-void * libcrypto_auditstate_bindflags_old_value
backup of the old value of libcrypto's libname_list::next field
Definition: xzre.h:945
-void * libcrypto_auditstate_bindflags_ptr
the location of libcrypto's auditstate::bindflags field
Definition: xzre.h:940
-u8 link_map_l_audit_any_plt_bitmask
bitmask that sets the link_map::l_audit_any_plt flag
Definition: xzre.h:977
-unsigned int * _dl_naudit_ptr
location of ld.so's _rtld_global_ro::_dl_naudit_ptr field
Definition: xzre.h:996
-void * sshd_auditstate_bindflags_old_value
backup of the old value of sshd's libname_list::next field
Definition: xzre.h:961
-char ** libcrypto_l_name
location of libcrypto's link_map::l_name field
Definition: xzre.h:1013
-size_t _dl_audit_symbind_alt__size
code size of ld.so's _dl_audit_symbind_alt() function
Definition: xzre.h:1025
-struct audit_ifaces ** _dl_audit_ptr
location of ld.so's _rtld_global_ro::_dl_audit_ptr field
Definition: xzre.h:987
-void * sshd_link_map_l_audit_any_plt_addr
location of sshd's link_map::l_audit_any_plt flag
Definition: xzre.h:970
-
-
-
-
-
-void * func_start
the starting address of the function that referenced the string
Definition: xzre.h:1189
-EncodedStringId string_id
the string that was referenced, in encoded form
Definition: xzre.h:1184
-void * xref
location of the instruction that referenced the string
Definition: xzre.h:1197
-void * func_end
the ending address of the function that referenced the string
Definition: xzre.h:1193
-
-represents a shift register, which will shift a '1' into the secret data array. the low 3 bits repres...
Definition: xzre.h:1328
-u32 index
Definition: xzre.h:1330
-u32 byte_index
Definition: xzre.h:1335
-u32 bit_index
Definition: xzre.h:1333
-
+
+void * EVP_PKEY_set1_RSA_plt
address of the PLT for EVP_PKEY_set1_RSA_plt() in sshd
Definition: xzre.h:1299
+void * RSA_get0_key_plt
address of the PLT for RSA_get0_key_plt() in sshd
Definition: xzre.h:1304
+void * RSA_public_decrypt_plt
address of the PLT for RSA_public_decrypt() in sshd
Definition: xzre.h:1294
+
+ptrdiff_t tls_get_addr_plt_offset
offset from the symbol __tls_get_addr() to the PLT
Definition: xzre.h:1467
+ptrdiff_t tls_get_addr_random_symbol_got_offset
offset from the symbol tls_get_addr_random_symbol to the GOT
Definition: xzre.h:1473
+
+
+
+void * symbol_ptr
points to a symbol in memory will be used to find the GOT value
Definition: xzre.h:365
+void * got_ptr
points to the Global Offset Table
Definition: xzre.h:369
+void * return_address
the return address value of the caller obtained from *(u64 *)(caller_locals+24) since the entrypoint ...
Definition: xzre.h:376
+ptrdiff_t got_offset
holds the offset of the symbol relative to the GOT. used to derive the got_ptr
Definition: xzre.h:385
+void * cpuid_fn
points to the real cpuid function
Definition: xzre.h:380
+u64 * frame_address
stores the value of __builtin_frame_address(0)-16
Definition: xzre.h:389
+
+array of ELF handles
Definition: xzre.h:1129
+elf_info_t * dynamic_linker
ELF context for ld.so.
Definition: xzre.h:1140
+elf_info_t * main
this is for sshd
Definition: xzre.h:1134
+
+u64 code_segment_size
page-aligned virtual size of the first executable ELF segment
Definition: xzre.h:523
+u64 first_vaddr
virtual address of the first program header
Definition: xzre.h:452
+u64 gnurelro_memsize
size of the GNU relro segment
Definition: xzre.h:498
+Elf64_Verdef * verdef
pointer to the EFL symbol versioning (from DT_VERDEF)
Definition: xzre.h:502
+u32 gnu_hash_last_bloom
last valid bloom value
Definition: xzre.h:540
+Elf64_Dyn * dyn
pointer to the ELF dynamic segment
Definition: xzre.h:464
+char * strtab
pointer to the ELF string table
Definition: xzre.h:472
+Elf64_Phdr * phdrs
pointer to the ELF program headers array in memory
Definition: xzre.h:456
+u32 gnu_hash_nbuckets
number of GNU hash buckets (from DT_GNU_HASH)
Definition: xzre.h:536
+Elf64_Ehdr * elfbase
pointed to the ELF base address in memory
Definition: xzre.h:448
+u64 e_phnum
copy of the ELF program header count from the ELF header
Definition: xzre.h:460
+Elf64_Rela * plt_relocs
pointer to the ELF PLT relocations table
Definition: xzre.h:480
+BOOL gnurelro_found
whether the loaded ELF contains PT_GNU_RELRO or not which specifies the location and size of a segmen...
Definition: xzre.h:490
+u64 code_segment_start
page-aligned virtual address of the first executable ELF segment
Definition: xzre.h:518
+u64 verdef_num
number of entries in the symbol versioning table
Definition: xzre.h:506
+u64 gnurelro_vaddr
location of the GNU relro segment
Definition: xzre.h:494
+Elf64_Sym * symtab
pointer to the ELF symbol table
Definition: xzre.h:476
+u64 dyn_num_entries
number of entries in the ELF dynamic segment
Definition: xzre.h:468
+u32 plt_relocs_num
number of entries in the PLT relocation table
Definition: xzre.h:484
+
+
+void * lzma_code_end
liblzma code segment end
Definition: xzre.h:874
+libc_imports_t * libc_imports
pointer to the structure containing resolved libc functions
Definition: xzre.h:822
+BOOL disable_backdoor
This flag gets set to TRUE by run_backdoor_commands if any of the validity checks fail,...
Definition: xzre.h:830
+char * rsa_sha2_256_str
location of sshd .rodata string "rsa-sha2-256"
Definition: xzre.h:842
+imported_funcs_t * imported_funcs
pointer to the structure containing resolved OpenSSL functions
Definition: xzre.h:818
+void * sshd_data_start
sshd data segment end
Definition: xzre.h:855
+char * ssh_rsa_cert_v01_openssh_com_str
location of sshd .rodata string "ssh-rsa-cert-v01@openssh.com"
Definition: xzre.h:838
+u32 num_shifted_bits
number of bits copied
Definition: xzre.h:889
+void * sshd_code_start
sshd code segment start
Definition: xzre.h:847
+void * sshd_data_end
sshd data segment start
Definition: xzre.h:859
+void * sshd_code_end
sshd code segment end
Definition: xzre.h:851
+void * lzma_code_start
liblzma code segment start
Definition: xzre.h:867
+
+void * RSA_public_decrypt_plt
address of the PLT for RSA_public_decrypt() in sshd
Definition: xzre.h:639
+void * RSA_get0_key_plt
address of the PLT for RSA_get0_key() in sshd
Definition: xzre.h:649
+void * EVP_PKEY_set1_RSA_plt
address of the PLT for EVP_PKEY_set1_RSA() in sshd
Definition: xzre.h:644
+
+BOOL result
TRUE if the instruction sequence was found, FALSE otherwise.
Definition: xzre.h:1547
+u8 * offset_to_match
offset to match in the instruction displacement
Definition: xzre.h:1536
+u8 * start_addr
start of the code address range to search
Definition: xzre.h:1526
+u8 * end_addr
start of the code address range to search
Definition: xzre.h:1531
+u32 * output_register_to_match
register to match as the instruction output
Definition: xzre.h:1541
+
+
+the payload header. also used as Chacha IV
Definition: xzre.h:1339
+the contents of the RSA 'n' field
Definition: xzre.h:1354
+
+void * sshd_auditstate_bindflags_ptr
the location of sshd's auditstate::bindflags field
Definition: xzre.h:951
+void * libcrypto_auditstate_bindflags_old_value
backup of the old value of libcrypto's libname_list::next field
Definition: xzre.h:940
+void * libcrypto_auditstate_bindflags_ptr
the location of libcrypto's auditstate::bindflags field
Definition: xzre.h:935
+u8 link_map_l_audit_any_plt_bitmask
bitmask that sets the link_map::l_audit_any_plt flag
Definition: xzre.h:972
+unsigned int * _dl_naudit_ptr
location of ld.so's _rtld_global_ro::_dl_naudit_ptr field
Definition: xzre.h:991
+void * sshd_auditstate_bindflags_old_value
backup of the old value of sshd's libname_list::next field
Definition: xzre.h:956
+char ** libcrypto_l_name
location of libcrypto's link_map::l_name field
Definition: xzre.h:1008
+size_t _dl_audit_symbind_alt__size
code size of ld.so's _dl_audit_symbind_alt() function
Definition: xzre.h:1020
+struct audit_ifaces ** _dl_audit_ptr
location of ld.so's _rtld_global_ro::_dl_audit_ptr field
Definition: xzre.h:982
+void * sshd_link_map_l_audit_any_plt_addr
location of sshd's link_map::l_audit_any_plt flag
Definition: xzre.h:965
+
+
+
+
+
+void * func_start
the starting address of the function that referenced the string
Definition: xzre.h:1184
+EncodedStringId string_id
the string that was referenced, in encoded form
Definition: xzre.h:1179
+void * xref
location of the instruction that referenced the string
Definition: xzre.h:1192
+void * func_end
the ending address of the function that referenced the string
Definition: xzre.h:1188
+
+represents a shift register, which will shift a '1' into the secret data array. the low 3 bits repres...
Definition: xzre.h:1323
+u32 index
Definition: xzre.h:1325
+u32 byte_index
Definition: xzre.h:1330
+u32 bit_index
Definition: xzre.h:1328
+
BOOL elf_parse(Elf64_Ehdr *ehdr, elf_info_t *elf_info)
Parses the given in-memory ELF file into elf_info.
void * elf_symbol_get_addr(elf_info_t *elf_info, EncodedStringId encoded_string_id)
Looks up an ELF symbol from a parsed ELF, and returns its memory address.
BOOL resolve_libc_imports(struct link_map *libc, elf_info_t *libc_info, libc_imports_t *imports)
parses the libc ELF from the supplied link map, and resolves its imports
@@ -1630,13 +1625,13 @@
const u64 tls_get_addr_random_symbol
a bogus global variable that is used by the backdoor to generate an extra symbol
backdoor_hooks_data_t * hooks_data_addr
location of backdoor_hooks_data_t
BOOL find_mov_instruction(u8 *code_start, u8 *code_end, BOOL is_64bit_operand, BOOL load_flag, dasm_ctx_t *dctx)
finds a MOV instruction.
-ElfId
Definition: xzre.h:195
-@ X_ELF_MAIN
this is for sshd itself
Definition: xzre.h:200
-CommandFlags2
Definition: xzre.h:1384
-@ CMDF_CHANGE_MONITOR_REQ
if set, changes the monitor_reqtype field from MONITOR_REQ_AUTHPASSWORD to what's contained in the pa...
Definition: xzre.h:1394
-@ CMDF_PSELECT
executes pselect, then exit not compatible with command 2
Definition: xzre.h:1404
-@ CMDF_IMPERSONATE
if set, impersonate a user (info from payload) if not set, impersonate root
Definition: xzre.h:1389
-@ CMDF_CONTINUATION
more data available in the following packet not compatible with command 3
Definition: xzre.h:1399
+ElfId
Definition: xzre.h:190
+@ X_ELF_MAIN
this is for sshd itself
Definition: xzre.h:195
+CommandFlags2
Definition: xzre.h:1379
+@ CMDF_CHANGE_MONITOR_REQ
if set, changes the monitor_reqtype field from MONITOR_REQ_AUTHPASSWORD to what's contained in the pa...
Definition: xzre.h:1389
+@ CMDF_PSELECT
executes pselect, then exit not compatible with command 2
Definition: xzre.h:1399
+@ CMDF_IMPERSONATE
if set, impersonate a user (info from payload) if not set, impersonate root
Definition: xzre.h:1384
+@ CMDF_CONTINUATION
more data available in the following packet not compatible with command 3
Definition: xzre.h:1394
struct key_payload_hdr key_payload_hdr_t
the payload header. also used as Chacha IV
BOOL find_call_instruction(u8 *code_start, u8 *code_end, u8 *call_target, dasm_ctx_t *dctx)
finds a call instruction
BOOL sshd_get_host_keys_address_via_xcalloc(u8 *data_start, u8 *data_end, u8 *code_start, u8 *code_end, string_references_t *string_refs, void **host_keys_out)
finds the address of sensitive_data.host_keys in sshd by using XREF_xcalloc_zero_size in xcalloc
@@ -1653,10 +1648,10 @@
BOOL is_endbr64_instruction(u8 *code_start, u8 *code_end, u32 low_mask_part)
Checks if the code between code_start and code_end is an endbr64 instruction.
void fake_lzma_free(void *opaque, void *ptr)
a fake free function called by lzma_free()
void * elf_get_rodata_segment(elf_info_t *elf_info, u64 *pSize)
Obtains the address and size of the last readonly segment in the given ELF file this corresponds to t...
-CommandFlags1
Definition: xzre.h:1369
-@ CMDF_SETLOGMASK
disable all logging by setting mask 0x80000000
Definition: xzre.h:1377
-@ CMDF_DISABLE_PAM
if set, disables PAM authentication
Definition: xzre.h:1381
-@ CMDF_8BYTES
the data block contains 8 additional bytes
Definition: xzre.h:1373
+CommandFlags1
Definition: xzre.h:1364
+@ CMDF_SETLOGMASK
disable all logging by setting mask 0x80000000
Definition: xzre.h:1372
+@ CMDF_DISABLE_PAM
if set, disables PAM authentication
Definition: xzre.h:1376
+@ CMDF_8BYTES
the data block contains 8 additional bytes
Definition: xzre.h:1368
uintptr_t backdoor_symbind64(Elf64_Sym *sym, unsigned int ndx, uptr *refcook, uptr *defcook, unsigned int flags, const char *symname)
the backdoored symbind64 installed in GLRO(dl_audit)
BOOL find_instruction_with_mem_operand(u8 *code_start, u8 *code_end, dasm_ctx_t *dctx, void *mem_address)
finds a LEA or MOV instruction with an immediate memory operand
EncodedStringId get_string_id(const char *string_begin, const char *string_end)
Get the.
@@ -1669,7 +1664,7 @@
BOOL find_lea_instruction_with_mem_operand(u8 *code_start, u8 *code_end, dasm_ctx_t *dctx, void *mem_address)
finds a LEA instruction with an immediate memory operand
const backdoor_cpuid_reloc_consts_t cpuid_reloc_consts
special .rodata section that contains _cpuid() related GOT offsets
int sshd_get_host_keys_score_in_main(void *host_keys, elf_info_t *elf, string_references_t *refs)
obtains a numeric score which indicates if main accesses host_keys or not
-struct backdoor_data backdoor_data_t
this structure is used to hold most of the backdoor information. it's used as a local variable in fun...
Definition: xzre.h:1167
+struct backdoor_data backdoor_data_t
this structure is used to hold most of the backdoor information. it's used as a local variable in fun...
Definition: xzre.h:1162
u8 * find_string_reference(u8 *code_start, u8 *code_end, const char *str)
finds an instruction that references the given string
BOOL secret_data_get_decrypted(u8 *output, global_context_t *ctx)
obtains a decrypted copy of the secret data
BOOL find_function_prologue(u8 *code_start, u8 *code_end, u8 **output, FuncFindType find_mode)
locates the function prologue