glibc ¤
Get information about the GLibc
Functions:
-
set_glibc_version
– -
get_version
– -
get_libc_filename_from_info_sharedlibrary
–Get the filename of the libc by parsing the output of
info sharedlibrary
. -
dump_elf_data_section
–Dump .data section of libc ELF file
-
dump_relocations_by_section_name
–Dump relocations of a section by section name of libc ELF file
-
get_section_address_by_name
–Find section address of libc by section name
-
OnlyWhenGlibcLoaded
– -
check_safe_linking
–Safe-linking is a glibc 2.32 mitigation; see:
Attributes:
-
P
– -
T
– -
safe_lnk
– -
glibc_version
–
safe_lnk module-attribute
¤
safe_lnk = add_param(
"safe-linking",
None,
"whether glibc uses safe-linking",
param_class=PARAM_AUTO_BOOLEAN,
)
glibc_version module-attribute
¤
glibc_version = add_param(
"glibc",
"",
"glibc version for heap heuristics resolution (e.g. 2.31)",
scope=heap,
)
get_libc_filename_from_info_sharedlibrary ¤
Get the filename of the libc by parsing the output of info sharedlibrary
.
dump_elf_data_section ¤
Dump .data section of libc ELF file
dump_relocations_by_section_name ¤
Dump relocations of a section by section name of libc ELF file
get_section_address_by_name ¤
Find section address of libc by section name
check_safe_linking ¤
Safe-linking is a glibc 2.32 mitigation; see: - https://lanph3re.blogspot.com/2020/08/blog-post.html - https://research.checkpoint.com/2020/safe-linking-eliminating-a-20-year-old-malloc-exploit-primitive/