Skip to content

Commit

Permalink
fix: follow symlink for libs() on ssh connection (#2338)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddav authored Jan 22, 2024
1 parent 4e11ee7 commit cb3fda4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pwnlib/tubes/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def libs(self):

for lib in maps:
remote_path = lib.split(self.parent.host)[-1]
remote_path = self.parent.readlink('-f', remote_path).decode()
for line in maps_raw.splitlines():
if line.endswith(remote_path):
address = line.split('-')[0]
Expand Down

0 comments on commit cb3fda4

Please sign in to comment.