File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
documentation/modules/auxiliary/scanner/mqtt Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,21 @@ $ docker run -i -p 1883:1883 toke/mosquitto
27
27
Msquitto can be configured to require credentials. To run in this way:
28
28
29
29
1 . Create a simple configuration file:
30
+
30
31
```
31
32
$ mkdir -p config && cat > config/mosquitto.conf
32
33
password_file /mqtt/config/passwd
33
34
allow_anonymous false
34
35
```
36
+
35
37
2 . Create a password file for mosquitto (this example creates a user admin wtth password admin)
38
+
36
39
```
37
40
$ touch config/passwd && mosquitto_passwd -b config/passwd admin admin
38
41
```
42
+
39
43
3 . Now run the dockerized mosquitto instance, mounting the configuration files from above for use at runtime:
44
+
40
45
```
41
46
$ docker run -ti -p 1883:1883 -v `pwd`/config/:/mqtt/config:ro toke/mosquitto
42
47
1513823564: mosquitto version 1.4.14 (build date Mon, 10 Jul 2017 23:48:43 +0100) starting
@@ -50,9 +55,9 @@ Msquitto can be configured to require credentials. To run in this way:
50
55
51
56
1 . Install the application without credentials
52
57
2 . Start msfconsole
53
- 3 . Do: ``` use auxiliary/scanner/mqtt/connect `` `
54
- 4 . Do: ``` set rhosts [IPs] `` `
55
- 5 . Do: ``` run `` `
58
+ 3 . Do: ` use auxiliary/scanner/mqtt/connect `
59
+ 4 . Do: ` set rhosts [IPs] `
60
+ 5 . Do: ` run `
56
61
6 . Confirm that the default or non-default credentials are discovered as configured
57
62
58
63
## Options
You can’t perform that action at this time.
0 commit comments