Glibc
Get information about the GLibc
P = ParamSpec('P')
module-attribute
¶
T = TypeVar('T')
module-attribute
¶
glibc_version = pwndbg.config.add_param('glibc', '', 'GLIBC version for heap heuristics resolution (e.g. 2.31)', scope='heap')
module-attribute
¶
safe_lnk = pwndbg.config.add_param('safe-linking', None, 'whether glibc use safe-linking (on/off/auto)', param_class=pwndbg.lib.config.PARAM_AUTO_BOOLEAN)
module-attribute
¶
OnlyWhenGlibcLoaded(function)
¶
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/
dump_elf_data_section()
¶
Dump .data section of libc ELF file
dump_relocations_by_section_name(section_name)
¶
Dump relocations of a section by section name of libc ELF file
get_libc_filename_from_info_sharedlibrary()
¶
Get the filename of the libc by parsing the output of info sharedlibrary
.
get_section_address_by_name(section_name)
¶
Find section address of libc by section name