Skip to content

Commit cb3fda4

Browse files
authored
fix: follow symlink for libs() on ssh connection (#2338)
1 parent 4e11ee7 commit cb3fda4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pwnlib/tubes/ssh.py

+1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ def libs(self):
324324

325325
for lib in maps:
326326
remote_path = lib.split(self.parent.host)[-1]
327+
remote_path = self.parent.readlink('-f', remote_path).decode()
327328
for line in maps_raw.splitlines():
328329
if line.endswith(remote_path):
329330
address = line.split('-')[0]

0 commit comments

Comments
 (0)