Do reporting more accurate

bug/bundler_fix
jvazquez-r7 2015-06-19 10:48:12 -05:00
parent 9b5770c966
commit dfae4bbbf0
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 10 additions and 3 deletions

View File

@ -125,9 +125,13 @@ class Metasploit3 < Msf::Auxiliary
login_data = {
core: create_credential(credential_data),
status: Metasploit::Model::Login::Status::SUCCESSFUL,
status: opts[:status]
}.merge(service_data)
if opts[:attempt_time]
login_data.merge!(last_attempted_at: opts[:attempt_time])
end
create_credential_login(login_data)
end
@ -142,7 +146,8 @@ class Metasploit3 < Msf::Auxiliary
report_cred(
ip: rhost,
port: rport,
user: user
user: user,
status: Metasploit::Model::Login::Status::UNTRIED
)
@users_found[user] = :reported
@ -166,7 +171,9 @@ class Metasploit3 < Msf::Auxiliary
ip: rhost,
port: rport,
user: user,
password: pass
password: pass,
status: Metasploit::Model::Login::Status::SUCCESSFUL,
attempt_time: DateTime.now
)
return :next_user