# TTY Interactive

TTY Shel&#x6C;**:**

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

ou

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

> &#x20;CRTL+z to background process

```bash
ssty -a

stty raw -echo; fg
```

Configurando o terminal:

```bash
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**

```bash
/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
```
