Skip to content

Commit ff3755a

Browse files
committed
Doc structure
1 parent c86ce86 commit ff3755a

File tree

6 files changed

+32
-21
lines changed

6 files changed

+32
-21
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# Add any Sphinx extension module names here, as strings. They can be
2828
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2929
# ones.
30-
extensions = ['recommonmark', 'sphinx_rtd_theme']
30+
extensions = ['recommonmark', 'sphinx_rtd_theme', 'sphinx.ext.autosectionlabel']
3131

3232
# Add any paths that contain templates here, relative to this directory.
3333
templates_path = ['_templates']

docs/index.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
SSH-MITM Plugins Documentation
77
============================================
88

9+
Home
10+
======
11+
912
.. toctree::
1013
:maxdepth: 2
11-
:caption: Contents:
1214

1315
start
14-
injectorshell
15-
stealthshell
16-
scriptedshell
16+
ssh-interfaces
17+

docs/injectorshell.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ Injectorshell
33

44

55

6-
.. info::
7-
It should also be noted that shell environment can be affected by any injector shell and is not accounted for when
8-
considering stealth. This means environment variables or the working directory for example can be changed by any
9-
injector shell and will alert the original shells owner of faulty operation.
6+
.. note::
7+
It should also be noted that shell environment can be affected by any injector shell and is not accounted for when
8+
considering stealth. This means environment variables or the working directory for example can be changed by any
9+
injector shell and will alert the original shells owner of faulty operation.
1010

1111
.. important::
12-
It is also important to mention that when multiple injector shells are inserting commands into the same hijacked ssh
13-
session at the same time discrepancies are not accounted for. Keystrokes are collectively merged at the server and the
14-
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.
12+
It is also important to mention that when multiple injector shells are inserting commands into the same hijacked ssh
13+
session at the same time discrepancies are not accounted for. Keystrokes are collectively merged at the server and the
14+
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.

docs/ssh-interfaces.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
SSH Interfaces
2+
============================================
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
7+
injectorshell
8+
stealthshell
9+
scriptedshell

docs/start.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Start
2-
=================
2+
======
33

4+
This is the documentation for ssh-mitm plugins.

docs/stealthshell.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
Stealthshell
22
=================
33

4-
As an upgrade to the `injectorshell`_ (implementation in `ssh-mitm <http://ssh-mitm.at/>`_ done by me) the stealthshell
4+
As an upgrade to the :ref:`injectorshell` (implementation in `ssh-mitm <http://ssh-mitm.at/>`_ done by me) the stealthshell
55
provides a way to workaround the problem of interfering with the clients interactive session.
66
It only executes injected commands when the shell of the user wont be affected. As long as the interactive shell of the
77
client is not typing or executing a command input from the injector shells is halted and put in a waiting queue.
88

99
Using the ``--ssh-injector-super-stealth`` option the injector shells will only send whole commands instead of
1010
every keystroke. This further eliminates unwanted behavior. Unfinished commands from the injector shells are not seen
1111
by the server and the user of the interactive shell will never be surprised by input they never typed. This, however,
12-
will limit the terminal functionality of the injector shell. Because the server only responds to the whole command
12+
will limit the terminal functionality of the injector shell. Because the server only responds to the whole command,
1313
terminal features like command auto-completion when pressing tab or command history with the up and down keys will not
1414
work correctly.
1515

1616

17-
.. info::
18-
Environment considerations of the `injectorshell`_ are still uphold by the stealthshell. Discrepancy problems
19-
described by the `injectorshell`_ are solved by this newer edition (client cannot be interrupted by injected keystrokes BUT
20-
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 can be eliminated.
17+
.. note::
18+
Environment considerations of the :ref:`injectorshell` are still uphold by the stealthshell. Discrepancy problems
19+
described by the :ref:`injectorshell` are solved by this newer edition (client cannot be interrupted by injected keystrokes BUT
20+
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.
2222

2323

0 commit comments

Comments
 (0)