Cleaner client_id handling

MS-2855/keylogger-mettle-extension
Jon Hart 2017-12-21 06:57:33 -08:00
parent 82bdce683b
commit becc05b4f1
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 3 additions and 2 deletions

View File

@ -26,9 +26,10 @@ module Msf
def setup
fail_with(Failure::BadConfig, 'READ_TIMEOUT must be > 0') if read_timeout <= 0
client_id_arg = datastore['CLIENT_ID']
if client_id_arg
fail_with(Failure::BadConfig, 'CLIENT_ID must be a non-empty string') if client_id_arg.blank?
if client_id_arg && client_id_arg.blank?
fail_with(Failure::BadConfig, 'CLIENT_ID must be a non-empty string')
end
end