Remove duplicate options, set less suspicious client_id

MS-2855/keylogger-mettle-extension
Jon Hart 2017-12-20 19:09:35 -08:00
parent cf21d13b2e
commit ddb2566f3b
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 2 additions and 4 deletions

View File

@ -10,9 +10,7 @@ module Msf
register_options( register_options(
[ [
Opt::RPORT(Rex::Proto::MQTT::DEFAULT_PORT), Opt::RPORT(Rex::Proto::MQTT::DEFAULT_PORT)
OptString.new('USERNAME', [false, 'The user to authenticate as']),
OptString.new('PASSWORD', [false, 'The password to authenticate with'])
] ]
) )
@ -39,7 +37,7 @@ module Msf
end end
def client_id def client_id
datastore['CLIENT_ID'] || Rex::Text.rand_text_alpha(1 + rand(10)) datastore['CLIENT_ID'] || 'mqtt-' + Rex::Text.rand_text_alpha(1 + rand(10))
end end
# creates a new mqtt client for use against the connected socket # creates a new mqtt client for use against the connected socket