aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-02-14 21:12:09 -0500
committerMitch Riedstra <mitch@riedstra.us>2019-02-14 21:12:09 -0500
commit9bd432b5de3592f89d885deaff953418822acaa9 (patch)
tree2dabf2f58dae9e79a4abced904d1734b4ae1d6b6 /readme.md
parentbd13ba3f12da9721ae9e0a81af788a3f9d9bb8f8 (diff)
downloadrshsh-9bd432b5de3592f89d885deaff953418822acaa9.tar.gz
rshsh-9bd432b5de3592f89d885deaff953418822acaa9.tar.xz
Add a readme and allocate a pty for the reverse shell
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md51
1 files changed, 51 insertions, 0 deletions
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..7312a11
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,51 @@
+# rshsh A set of reverse shell shell scripts
+
+`rshsh` is an acronym Reverse Shell SHell scripts
+
+A little bit of messing around with `socat`, and scraping Google for some
+examples and I've put together a set of small scripts that will setup a server
+that will accept multiple clients and toss them into their own `tmux` windows
+
+It also generates client scripts that verify the server with the embedded
+TLS certificate, so it's a secure reverse shell haha.
+
+
+## Setup
+
+It's pretty simple, clone the repository to a server with a public IP.
+
+Open up `vars` and adjust the relevant variables. Ones of interest are likely
+to be `port` and `hostname` which are used to specify the local port to listen
+on as well as the hostname the client will connect to respectively.
+
+Then run `./server.sh` I recommend running it under `tmux` or `runsvdir` so
+the server is persistently running in the background. Neither `tmux` or
+`runsvdir` are covered in depth here.
+
+From There you can generate the client script with:
+
+```
+$ ./genclient.sh > /tmp/client.sh
+```
+
+And you can `scp` it off to your other boxes or whatever. Even copy and
+paste works.
+
+
+## Attaching to a connected reverse shell
+
+Should be as simple as:
+````
+tmux att -t rshsh
+```
+
+From the user account that the server is running under. Each connection
+will be placed in their own `tmux` windows.
+
+
+## Other configuration options
+
+### Disabling auto re-connect
+
+If for some reason you don't want to have the reverse shells attempt to
+re-connect every 5 seconds after a disconnect set `loop=0` in `vars`