The connection module attempts to connect to the specified MQTT broker as a client and records the return_code value. According to this value (e.g. "4" if an authentication mechanism is present) and the options and parameters specified by the user when running MQTTSA (e.g. a username and a wordlist of passwords via "-u" and "-w" parameters), other modules are invoked or disabled.
The data parsing and exfiltration ..