TTY Interactive

TTY Shell:

python3 -c ‘import pty;pty.spawn("/bin/bash")’

ou

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

CRTL+z to background process

ssty -a

stty raw -echo; fg

Configurando o terminal:

stty rows 29 cols 237

export TERM=xterm-256color

alias ll='ls -lsaht --color=auto'

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/tmp

TTY SHELL

/usr/bin/script -qc /bin/bash /dev/null

perl —e 'exec "/bin/sh";'

perl: exec "/bin/sh";

echo os.system('/bin/bash')

/bin/sh -i

ruby: exec "/bin/sh"

lua: os.execute('/bin/sh')

find / -name nameoffile -exec /bin/awk 'BEGIN {system("/bin/sh")}' \;

find . -exec /bin/sh \; -quit

Atualizado