Skip to content

Commit

Permalink
[ssh] Apparently this is broken? (#1842)
Browse files Browse the repository at this point in the history
/bin/sh seems to be sending the cd command to the background, instead of
changing directories and then running the selected command.

This has worked forever, not sure why it's failing in CI now
  • Loading branch information
heapcrash committed Mar 5, 2021
1 parent e8c03ed commit 2114708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/tubes/ssh.py
Expand Up @@ -80,7 +80,7 @@ def __init__(self, parent, process = None, tty = False, wd = None, env = None, r
process = context._encode(process)

if process and wd:
process = b'cd ' + sh_string(wd) + b' &>/dev/null;' + process
process = b'cd ' + sh_string(wd) + b' >/dev/null 2>&1; ' + process

if process and env:
for name, value in env.items():
Expand Down

0 comments on commit 2114708

Please sign in to comment.