Skip to main content

Stabilization

:: In Linux we can use rlwrap before Connecting to the Target Machine
rlwrap nc -nvlp <PORT>
:: Import using one of the Methods
:: Python[3]
python3 -c 'import pty; pty.spawn("/bin/bash")'

:: Python[2]
python -c 'import pty; pty.spawn("/bin/bash")'

:: Script
script -qc /bin/bash /dev/null
:: Background the SHELL
CTRL+Z
:: Change the Terminal Mode
stty raw -echo; fg
reset
:: Set the Terminal Type
xterm

Interface

# Set Terminal [Type - Size - User Colors]
export SHELL=bash; export TERM=xterm; stty rows 42 columns 220; export PS1="\e[1;35m\u@\h \W\$ \e[m "
# Find Terminal [Size]
tput cols; tput lines;

# Set Terminal [Size]
export SHELL=bash; export TERM=xterm; stty rows 42 columns 220

Socat

socat file:`tty`,raw,echo=0 tcp-listen:8000