Gallopsled / pwntools

CTF framework and exploit development library
http://pwntools.com
Other
12.1k stars 1.71k forks source link

DYNELF NOT WORKING!!! #175

Closed kokjo closed 9 years ago

kokjo commented 9 years ago

lib = "libc" does not only match "libc.so.6" but also "libc++.so.1"

zachriggle commented 9 years ago

The implementation of this functionality is to accept the first substring match: https://github.com/Gallopsled/pwntools/blob/master/pwnlib/dynelf.py#L257-L258

A simple workaround is to specify 'libc.so' instead of 'libc'.

kokjo commented 9 years ago

Zach providing live support during ctf, really like this project! :D

zachriggle commented 9 years ago

I can't think of a good way to resolve this without having a 'special case' for 'libc'. I think the genuine proper solution in this case is the above solution -- to use 'libc.so' instead. I'll update the documentation and pwntools-writeups to reflect this usage pattern.

TethysSvensson commented 9 years ago

Why not just change libc to libc.so in dynelf.py?

zachriggle commented 9 years ago

I'll open a feature request for that. This issue got closed because dynelf is working :stuck_out_tongue_winking_eye: