1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-27 19:04:15 +01:00

Fixed exception handler in get_host_hash

This commit is contained in:
Caleb Stewart 2021-06-18 14:31:45 -04:00
parent 89ad889977
commit b8f53001d2

View File

@ -710,7 +710,7 @@ class Linux(Platform):
)
hostname = result.stdout.strip()
except CalledProcessError:
hostname = self.channel.getpeername()[0]
hostname = self.channel.host
try:
self.session.update_task(