glibc ¤
Perform queries specific to the GNU C Library.
Functions:
-
set_glibc_version– -
type– -
version– -
has_internal_symbols– -
has_debug_info– -
urls– -
verify_libc_candidate– -
verify_ld_candidate– -
libc_same_as_ld– -
check_safe_linking–Arguments:
Attributes:
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,
)
check_safe_linking ¤
Parameters:
-
ver(tuple[int, ...]) –The version tuple. Pass pwndbg.libc.version() here.
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/