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:
parent
89ad889977
commit
b8f53001d2
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user