Skip to content

Commit 508253e

Browse files
committed
More docs
1 parent 0f72ce1 commit 508253e

File tree

1 file changed

+25
-2
lines changed
  • documentation/modules/auxiliary/scanner/mqtt

1 file changed

+25
-2
lines changed

documentation/modules/auxiliary/scanner/mqtt/connect.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Msquitto can be configured to require credentials. To run in this way:
3232
password_file /mqtt/config/passwd
3333
allow_anonymous false
3434
```
35-
2. Create a password file for mosquitto (this example creates a user test_user with password test_pass)
35+
2. Create a password file for mosquitto (this example creates a user admin wtth password admin)
3636
```
37-
$ touch config/passwd && mosquitto_passwd -b config/passwd test_user test_pass
37+
$ touch config/passwd && mosquitto_passwd -b config/passwd admin admin
3838
```
3939
1. Now run the dockerized mosquitto instance, mounting the configuration files from above for use at runtime:
4040
```
@@ -66,9 +66,32 @@ Msquitto can be configured to require credentials. To run in this way:
6666
## Scenarios
6767
6868
### Docker MQTT Server Without Credentials
69+
70+
Configure MQTT in a Docker container without credentials as described above.
71+
6972
```
73+
> use auxiliary/scanner/mqtt/connect
74+
> set VERBOSE false
75+
VERBOSE => false
76+
> set RHOSTS localhost
77+
RHOSTS => localhost
78+
> run
79+
[+] 127.0.0.1:1883 - Does not require authentication
80+
[*] Scanned 1 of 1 hosts (100% complete)
7081
```
7182
7283
### Docker MQTT Server With Credentials
84+
85+
Configure MQTT in a Docker container with credentials as described above.
86+
7387
```
88+
> use auxiliary/scanner/mqtt/connect
89+
> set VERBOSE false
90+
FALSE => false
91+
resource (mqtt.rc)> set RHOSTS localhost
92+
RHOSTS => localhost
93+
resource (mqtt.rc)> run
94+
...
95+
[+] 127.0.0.1:1883 - MQTT Login Successful: admin/admin
96+
7497
```

0 commit comments

Comments
 (0)