Skip to content

Commit 6f25755

Browse files
Lookup netcat command too
Co-authored-by: Xeonacid <[email protected]>
1 parent 306a859 commit 6f25755

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pwnlib/tubes/ssh.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,10 @@ def __init__(self, parent, host, port, *a, **kw):
464464
ncat = 'nc'
465465
elif parent.which('ncat'):
466466
ncat = 'ncat'
467+
elif parent.which('netcat'):
468+
ncat = 'netcat'
467469
else:
468-
self.exception('Could not find ncat or nc on remote. Cannot connect to remote port.')
470+
self.exception('Could not find ncat, nc or netcat on remote. Cannot connect to remote port.')
469471
raise
470472
self.tunnel = parent.process([ncat, host, str(port)])
471473
self.sock = self.tunnel.sock

0 commit comments

Comments
 (0)