Skip to content

Commit 2c6db84

Browse files
committed
MQTT and Modbus
1 parent 312fe95 commit 2c6db84

File tree

2 files changed

+31
-20
lines changed

2 files changed

+31
-20
lines changed

docs/protocols/modbus.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Modbus
22

3-
### Discovery
3+
## Discovery
44

5-
**Modbus Client:**
5+
**Modbus Client:**
66

7-
- [QModBus](https://sourceforge.net/projects/qmodbus/)
8-
- [pymodbus](https://github.com/riptideio/pymodbus)
9-
- [Modbus Tools](https://www.modbustools.com/)
7+
- [QModBus](https://sourceforge.net/projects/qmodbus/)
8+
- [pymodbus](https://github.com/riptideio/pymodbus)
9+
- [Modbus Tools](https://www.modbustools.com/)
1010

1111
**Modbus Discover Nmap Script:**
1212

@@ -29,13 +29,15 @@ client.close()
2929

3030
**Modbus Pentesting:**
3131

32-
- [smod](https://github.com/0x0mar/smod)
32+
- [smod](https://github.com/0x0mar/smod)
3333

34-
**Modbus Slave Simulator**
34+
## Modbus Simulators
3535

36-
- [Diagslave](https://www.modbusdriver.com/diagslave.html)
37-
- [ModbusPal](https://modbuspal.sourceforge.net/)
36+
**Modbus Slave Simulator**:
3837

39-
**Modbus Master Simulator**
38+
- [Diagslave](https://www.modbusdriver.com/diagslave.html)
39+
- [ModbusPal](https://modbuspal.sourceforge.net/)
4040

41-
- [modpoll](https://www.modbusdriver.com/modpoll.html)
41+
**Modbus Master Simulator**:
42+
43+
- [modpoll](https://www.modbusdriver.com/modpoll.html)

docs/protocols/mqtt.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# MQTT
22

3-
### Discovery
3+
## Discovery
4+
5+
MQTT is a lightweight messaging protocol often used in IoT (Internet of Things) applications.
6+
7+
* 1883: Default port for MQTT.
8+
* 8883: Default port for MQTT over TLS/SSL.
49

510
MQTT client:
611

@@ -10,15 +15,19 @@ MQTT client:
1015
* MQTT.fx
1116
* mosquitto_tools
1217

13-
Scan an MQTT with nmap : `nmap -p 1883 -vvv --script=mqtt-subscribe -d sensors.domain.com`
18+
```powershell
19+
mosquitto_sub -h sensors.domain.com -t '#'
20+
mosquitto_sub -h sensors.domain.com -t '+'
21+
mosquitto_sub -h sensors.domain.com -t "/sensor/"
22+
```
23+
24+
Scan an MQTT with nmap :
1425

15-
```powershell
16-
mosquitto_sub -h sensors.domain.com -t '#'
17-
mosquitto_sub -h sensors.domain.com -t '+'
18-
mosquitto_sub -h sensors.domain.com -t "/sensor/"
26+
```ps1
27+
nmap -p 1883 -vvv --script=mqtt-subscribe -d sensors.domain.com
1928
```
2029

21-
### Explore MQTT
30+
## Explore MQTT
2231

2332
Connect and subscribe to every topics using the `#` keyword.
2433

@@ -49,6 +58,6 @@ client.connect('IP SERVER HERE', 1883, 60)
4958
client.publish('smarthouse/garage/door', "{'open':'true'}")
5059
```
5160

52-
### MQTT Fuzzing
61+
## MQTT Fuzzing
5362

54-
* [MQTT-Fuzz](https://github.com/F-Secure/mqtt_fuzz)
63+
* [MQTT-Fuzz](https://github.com/F-Secure/mqtt_fuzz)

0 commit comments

Comments
 (0)