Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 488 Bytes

shell-interactive.md

File metadata and controls

45 lines (33 loc) · 488 Bytes

Como Obterner una Shell Interactiva

Con Python

python -c 'import pty; pty.spawn("/bin/bash")'
python3 -c 'import pty; pty.spawn("/bin/bash")'
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/
export TERM=xterm-256color
alias ll='ls -lsaht --color=auto'

Pasos a seguir:

script /dev/null -c bash
CTRL + Z
stty raw -echo ; fg
export TERM=xterm
export SHELL=bash