diff --git a/pwnlib/tubes/ssh.py b/pwnlib/tubes/ssh.py index b39026f0f..572b6a0f0 100644 --- a/pwnlib/tubes/ssh.py +++ b/pwnlib/tubes/ssh.py @@ -464,8 +464,10 @@ def __init__(self, parent, host, port, *a, **kw): ncat = 'nc' elif parent.which('ncat'): ncat = 'ncat' + elif parent.which('netcat'): + ncat = 'netcat' else: - self.exception('Could not find ncat or nc on remote. Cannot connect to remote port.') + self.exception('Could not find ncat, nc or netcat on remote. Cannot connect to remote port.') raise self.tunnel = parent.process([ncat, host, str(port)]) self.sock = self.tunnel.sock