We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf21d13 commit ddb2566Copy full SHA for ddb2566
lib/msf/core/auxiliary/mqtt.rb
@@ -10,9 +10,7 @@ def initialize(info = {})
10
11
register_options(
12
[
13
- Opt::RPORT(Rex::Proto::MQTT::DEFAULT_PORT),
14
- OptString.new('USERNAME', [false, 'The user to authenticate as']),
15
- OptString.new('PASSWORD', [false, 'The password to authenticate with'])
+ Opt::RPORT(Rex::Proto::MQTT::DEFAULT_PORT)
16
]
17
)
18
@@ -39,7 +37,7 @@ def read_timeout
39
37
end
40
38
41
def client_id
42
- datastore['CLIENT_ID'] || Rex::Text.rand_text_alpha(1 + rand(10))
+ datastore['CLIENT_ID'] || 'mqtt-' + Rex::Text.rand_text_alpha(1 + rand(10))
43
44
45
# creates a new mqtt client for use against the connected socket
0 commit comments