A set of scripts to provide a stub terminal based on reverse connection using socat
.
Reference: https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys
revterm_client
: A stub terminal which runs a given command line inside a pseudoterminal and forwards streams to therevterm_server
.revterm_server
: A server that listens on a port forever, through which we can control therevterm_client
in a fully interactive TTY session.revterm_killserver
: A utility script to terminate therevterm_server
(as it cannot be terminated by pressing Ctrl-C).revconn_server
: A server that listens on a port forever, through which we can interact with the socket stream (like an infinitenc -vvlp
).
Clone this repository and install with install.sh
(make sure you have socat
installed).
Uninstall with uninstall.sh
.