TTYs

Full TTY

1. python -c 'import pty;pty.spawn("/bin/bash")'
2. export TERM=xterm
3. CTRL + Z
4. stty raw -echo; fg

- echo os.system('/bin/bash')
- perl -e 'exec "/bin/sh";'
- /bin/sh -i

# Breaking out
- :!bash
- !sh
- nmap --interactive

Python Env

apt update && apt install python3-venv
python3 -m venv myenv
source myenv/bin/activate
deactivate

Docker

Last updated