https://github.com/gousaiyang/revterm
A set of scripts to provide a stub terminal based on reverse connection using socat.
https://github.com/gousaiyang/revterm
reverse-shell socat terminal tty
Last synced: about 1 month ago
JSON representation
A set of scripts to provide a stub terminal based on reverse connection using socat.
- Host: GitHub
- URL: https://github.com/gousaiyang/revterm
- Owner: gousaiyang
- Created: 2018-11-15T13:39:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-10T02:11:27.000Z (over 5 years ago)
- Last Synced: 2025-02-15T06:41:30.019Z (3 months ago)
- Topics: reverse-shell, socat, terminal, tty
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# revterm
A set of scripts to provide a stub terminal based on reverse connection using [`socat`](http://www.dest-unreach.org/socat/).
Reference: https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys
## Components
- `revterm_client`: A stub terminal which runs a given command line inside a [pseudoterminal](https://en.wikipedia.org/wiki/Pseudoterminal) and forwards streams to the `revterm_server`.
- `revterm_server`: A server that listens on a port forever, through which we can control the `revterm_client` in a fully interactive TTY session.
- `revterm_killserver`: A utility script to terminate the `revterm_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 infinite `nc -vvlp`).## Installation
Clone this repository and install with `install.sh` (make sure you have `socat` installed).
Uninstall with `uninstall.sh`.