Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcdb print redundant information #2414

Closed
the-soloist opened this issue May 26, 2024 · 0 comments · Fixed by #2483
Closed

libcdb print redundant information #2414

the-soloist opened this issue May 26, 2024 · 0 comments · Fixed by #2483

Comments

@the-soloist
Copy link
Contributor

When provider_local_system executes local_libc = ELF(shell_path, checksec=False).libc, it does not pass the checksec=False parameter to libc. This results in libcdb printing redundant libc information that is unrelated to the actual search results.

https://github.com/Gallopsled/pwntools/blob/dev/pwnlib/libcdb.py#L122

I'm testing on latest commit.

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
from pwn import *


context.log_level = "info"
context.local_libcdb = "/path/to/libc-database"


log.waitfor("searching build_id")
os.system("rm -rf ~/.cache/.pwntools-cache-*")
time_start = time.time()
path = libcdb.search_by_md5("c4474f5b616fddc87aec1c70ea665c8f", offline_only=True, unstrip=False)
libc = ELF(path, checksec=False)
print(f"cost {time.time() - time_start}s", libc)
image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant