Skip to content

Add libcdb commandline tool #1975

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

Merged
merged 5 commits into from
Apr 20, 2022
Merged

Conversation

peace-maker
Copy link
Member

Add a new commandline tool libcdb which allows to dump information about a local libc binary or lookup matching libc versions based on a build hash or symbol offsets (querying https://libc.rip).

It's possible to download and unstrip a matching libc binary from the command line.
libcdb_cmd1
libcdb_cmd2

The main_arena address heuristic came in handy frequently while using this tool, so I've kept it in. It could be removed or moved into the ELF class like ELF.libc_start_main_return if there are concerns.

@peace-maker
Copy link
Member Author

Related #1819

Allows to dump information about a local libc binary or lookup matching libc versions based on a build hash or symbol offsets (querying https://libc.rip).

It's possible to download and unstrip a matching libc binary from the command line.
@peace-maker
Copy link
Member Author

I've removed the main_arena lookup heuristic, since the commandline tool wasn't the right place for such a thing and I'd rather add more tests beforehand.

@Arusekk Arusekk merged commit 4b067d2 into Gallopsled:dev Apr 20, 2022
@peace-maker peace-maker deleted the libcdb_command branch April 20, 2022 14:48
@Arusekk Arusekk mentioned this pull request Dec 29, 2022
gogo2464 pushed a commit to gogo2464/pwntools that referenced this pull request Sep 10, 2023
* Add libcdb commandline tool

Allows to dump information about a local libc binary or lookup matching libc versions based on a build hash or symbol offsets (querying https://libc.rip).

It's possible to download and unstrip a matching libc binary from the command line.

* Fix Python 2 compatibility

* Remove main_arena heuristic

* Update CHANGELOG

Co-authored-by: Arusekk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants