Closed kokjo closed 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'
.
Zach providing live support during ctf, really like this project! :D
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.
Why not just change libc to libc.so in dynelf.py?
I'll open a feature request for that. This issue got closed because dynelf is working :stuck_out_tongue_winking_eye:
lib = "libc" does not only match "libc.so.6" but also "libc++.so.1"