You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When getting the target process' ELF using the ssh_process.elf property, a wrong ELF is returned, when the path of the target binary on the remote system is included in the path of the local cache:
I'm not sure how to resolve this perfectly, since it's also possible for a binary to rely on another ELF with the same basename. In the meantime, using basename is probably as good as we can do -- would you mind submitting a pull request? ❤️
When getting the target process' ELF using the
ssh_process.elf
property, a wrong ELF is returned, when the path of the target binary on the remote system is included in the path of the local cache:Example:
target.libs()
returns:while
target.executable
is/target/target1
.So
/target/target1
is included in the cache path.Therefore the condition evaluates to true (just checks whether the string is contained):
pwntools/pwnlib/tubes/ssh.py
Lines 343 to 345 in df7c1fe
Maybe the condition should check
instead. However I am not 100% sure, whether this covers all cases.
The text was updated successfully, but these errors were encountered: