Skip to content

Commit ae17943

Browse files
committed
fix documentation preformat blocks
1 parent 6f1196d commit ae17943

File tree

1 file changed

+8
-3
lines changed
  • documentation/modules/auxiliary/scanner/mqtt

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,21 @@ $ docker run -i -p 1883:1883 toke/mosquitto
2727
Msquitto can be configured to require credentials. To run in this way:
2828

2929
1. Create a simple configuration file:
30+
3031
```
3132
$ mkdir -p config && cat > config/mosquitto.conf
3233
password_file /mqtt/config/passwd
3334
allow_anonymous false
3435
```
36+
3537
2. Create a password file for mosquitto (this example creates a user admin wtth password admin)
38+
3639
```
3740
$ touch config/passwd && mosquitto_passwd -b config/passwd admin admin
3841
```
42+
3943
3. Now run the dockerized mosquitto instance, mounting the configuration files from above for use at runtime:
44+
4045
```
4146
$ docker run -ti -p 1883:1883 -v `pwd`/config/:/mqtt/config:ro toke/mosquitto
4247
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:
5055

5156
1. Install the application without credentials
5257
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`
5661
6. Confirm that the default or non-default credentials are discovered as configured
5762

5863
## Options

0 commit comments

Comments
 (0)