put calls in right place it helps

bug/bundler_fix
David Maloney 2014-06-10 11:17:19 -05:00
parent 63ec83ea90
commit 15ceb1e826
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 9 additions and 9 deletions

View File

@ -87,20 +87,20 @@ class Metasploit3 < Msf::Auxiliary
create_credential_login(login_data) create_credential_login(login_data)
print_good "#{ip}:#{rport} - LOGIN SUCCESSFUL: #{result.credential}" print_good "#{ip}:#{rport} - LOGIN SUCCESSFUL: #{result.credential}"
else else
invalidate_login(
address: ip,
port: rport,
protocol: 'tcp',
public: result.credential.public,
private: result.credential.private,
realm_key: nil,
realm_value: nil,
status: result.status)
print_status "#{ip}:#{rport} - LOGIN FAILED: #{result.credential} (#{result.status}: #{result.proof})" print_status "#{ip}:#{rport} - LOGIN FAILED: #{result.credential} (#{result.status}: #{result.proof})"
end end
end end
else else
invalidate_login(
address: ip,
port: rport,
protocol: 'tcp',
public: result.credential.public,
private: result.credential.private,
realm_key: nil,
realm_value: nil,
status: result.status)
print_error "#{target} - Unsupported target version of MySQL detected. Skipping." print_error "#{target} - Unsupported target version of MySQL detected. Skipping."
end end
rescue ::Rex::ConnectionError, ::EOFError => e rescue ::Rex::ConnectionError, ::EOFError => e