Gallopsled / pwntools

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

fix: follow symlink for libs on ssh connection #2338

Closed teddav closed 6 months ago

teddav commented 6 months ago

Pwntools Pull Request

When running a process over SSH, if the lib used is a symlink, then the addresses returned are wrong. This is because we get the address from /proc/PID/maps but we use the symlink lib name, and not the "real" lib name.
I corrected it by using readlink -f which return the actual lib used.

Changelog

Since it's a really small change, should I still push a change to the Changelog?

peace-maker commented 6 months ago

Thank you!