Skip to content

Commit

Permalink
Fix path checking in ssh_process.corefile for edge cases (#1058)
Browse files Browse the repository at this point in the history
Fixes #1047
  • Loading branch information
zachriggle authored Oct 23, 2017
1 parent 9102540 commit 9d6b488
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pwnlib/tubes/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ def elf(self):
libs = self.parent.libs(self.executable)

for lib in libs:
if self.executable in lib:
# Cannot just check "executable in lib", see issue #1047
if lib.endswith(self.executable):
return pwnlib.elf.elf.ELF(lib)


Expand Down

0 comments on commit 9d6b488

Please sign in to comment.