MQTT Pentesting
MQTT is a publish-subscribeb network protocol for the Internet of Things (IoT). Default ports are 1883, 8883 (TLS).
Enumeration
Interaction
mosquitto is a MQTT utilities that include a broker and publish/subscribe clients. We use the mosquitto to interact with MQTT.
If you don’t have mosquitto in Linux, install packages.
Subscribe to a Topic
To get the mosquitto’s version, run the following.
Publish to a Topic
Analyze with Wireshark
Wireshark sniffers traffics of the MQTT interactions. Enter “mqtt” in the filter field to focus on the MQTT packets.
Last updated