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.
0 commit comments