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 --interactivePython Env
apt update && apt install python3-venv
python3 -m venv myenv
source myenv/bin/activate
deactivateDocker
Last updated