Upgrade
TL;DR
Term
Meaning
tty
teletype
pty
pseudoterminal
Why
Ability to CTRL+C, tab completion, clear screen, up and down arrows, text editing, etc.
Process
Socat
An upgraded shell can be spawn right away if socat
is on the target host. Set up a listener from the attack host.
On the target host.
Script/Python
Check if Python3/Script is installed on the target.
Spawn bash with Script or Python3.
Send tty to the backgroup (CTRL+Z
) and check terminal's type and dimensions.
Disable echo, send I/O straight through, and bring process to foreground.
Press enter, reset terminal, and input the terminal type (xterm
/screen
).
Match tty's dimensions to the hosts.
Set the TERM
variable to the terminal's type.
Alternatives
Other ways to spawn a bash/sh shell.
Last updated
Was this helpful?