Skip to content

Commit 07465d3

Browse files
committed
Stealthshell and Injectorshell docs
1 parent ff3755a commit 07465d3

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

docs/injectorshell.rst

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1-
Injectorshell
1+
injectorshell
22
===============
33

4+
Included in the original `ssh-mitm <http://ssh-mitm.at/>`_ suit this is a detailed documentation
5+
by its creator.
46

7+
The injectorshell ssh interface allows the operator of the ssh-mitm server to serve out shell access over
8+
the network that correspond to a hijacked ssh session. Within these injected shells one is able to
9+
execute commands on the remote host using the ssh session created by the original client. Contrary to the
10+
mirrorshell there can be multiple injected shells per ssh session. All these shells - including the client itself -
11+
share their environment but are served answers individually.
12+
13+
Using the ``--ssh-injector-enable-mirror`` option injected shells can print the input of the user to their screen.
14+
This differs from the mirrorshell which always displays every keystroke on both terminals. The injectorshell
15+
tries its best to not leak any unwanted output to the users session so that they can operate normally.
16+
17+
By default injector shell access is limited to the local maschine ``localhost`` but can be opened up to any
18+
network using the ``--ssh-injector-net NET/IF`` parameter. Due to the fact that access to the injector shells is
19+
not authenticated doing this should be thoroughly thought through.
20+
21+
For ease of use a private key can be used for a more consistent integrity check. It can be set with the
22+
``--ssh-injector-key ID`` parameter. If this is not done a new one will be generated each time the server is spun up.
523

624
.. note::
725
It should also be noted that shell environment can be affected by any injector shell and is not accounted for when
@@ -12,4 +30,4 @@ Injectorshell
1230
It is also important to mention that when multiple injector shells are inserting commands into the same hijacked ssh
1331
session at the same time discrepancies are not accounted for. Keystrokes are collectively merged at the server and the
1432
responses are served accordingly. This is also true for the clients interactive ssh session. A advanced edition of the
15-
injectorshell fixes both these problems.
33+
injectorshell - the :ref:`stealthshell` - fixes both these problems.

docs/scriptedshell.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
Scriptedshell
1+
scriptedshell
22
===============
33

4+
When working through a security audit gathering information is one of the most important steps.
5+
6+
The scriptedshell ssh interface is first and foremost an information gathering tool but due to its
7+
functionality it can also be used for different use cases.

docs/stealthshell.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Stealthshell
1+
stealthshell
22
=================
33

44
As an upgrade to the :ref:`injectorshell` (implementation in `ssh-mitm <http://ssh-mitm.at/>`_ done by me) the stealthshell
@@ -18,6 +18,8 @@ work correctly.
1818
Environment considerations of the :ref:`injectorshell` are still uphold by the stealthshell. Discrepancy problems
1919
described by the :ref:`injectorshell` are solved by this newer edition (client cannot be interrupted by injected keystrokes BUT
2020
unfinished injected strokes will be seen by the server). Only with the ``--ssh-injector-super-stealth`` option the
21-
discrepancy between the user and all injector shells will not occur.
22-
21+
discrepancy between the user and all injector shells will not occur. It is recommended that the ``--ssh-injector-super-stealth``
22+
option is used in combination with the ``--ssh-injector-enable-mirror`` option to see more clearly when commands
23+
can be executed.
2324

25+
For a more detailed look at the plugins operation refer to the :ref:`injectorshell` documentation.

0 commit comments

Comments
 (0)