Skip to content

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)

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

get_version()

set_glibc_version()