File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed
documentation/modules/auxiliary/scanner/mqtt Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ Msquitto can be configured to require credentials. To run in this way:
32
32
password_file /mqtt/config/passwd
33
33
allow_anonymous false
34
34
```
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 )
36
36
```
37
- $ touch config/passwd && mosquitto_passwd -b config/passwd test_user test_pass
37
+ $ touch config/passwd && mosquitto_passwd -b config/passwd admin admin
38
38
```
39
39
1. Now run the dockerized mosquitto instance, mounting the configuration files from above for use at runtime:
40
40
```
@@ -66,9 +66,32 @@ Msquitto can be configured to require credentials. To run in this way:
66
66
## Scenarios
67
67
68
68
### Docker MQTT Server Without Credentials
69
+
70
+ Configure MQTT in a Docker container without credentials as described above.
71
+
69
72
```
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)
70
81
```
71
82
72
83
### Docker MQTT Server With Credentials
84
+
85
+ Configure MQTT in a Docker container with credentials as described above.
86
+
73
87
```
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
+
74
97
```
You can’t perform that action at this time.
0 commit comments