diff --git a/pwncat/platform/linux.py b/pwncat/platform/linux.py index 72ae26a..30c9ca6 100644 --- a/pwncat/platform/linux.py +++ b/pwncat/platform/linux.py @@ -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(