Skip to content

Commit 3fe6ddd

Browse files
committed
Change credential status from untried to successful
1 parent 245c763 commit 3fe6ddd

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

modules/auxiliary/scanner/nessus/nessus_xmlrpc_login.rb

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,7 @@ def do_login(user='nessus', pass='nessus')
9999

100100
if res.code == 200
101101
if res.body =~ /<status>OK<\/status>/
102-
print_good("SUCCESSFUL LOGIN. '#{user}' : '#{pass}'")
103-
104-
report_hash = {
105-
:host => datastore['RHOST'],
106-
:port => datastore['RPORT'],
107-
:sname => 'nessus-xmlrpc',
108-
:user => user,
109-
:pass => pass,
110-
:active => true,
111-
:type => 'password'}
112-
102+
print_good("SUCCESSFUL LOGIN. '#{user}':'#{pass}'")
113103
report_cred(
114104
ip: datastore['RHOST'],
115105
port: datastore['RPORT'],
@@ -120,7 +110,7 @@ def do_login(user='nessus', pass='nessus')
120110
return :next_user
121111
end
122112
end
123-
vprint_error("FAILED LOGIN. '#{user}' : '#{pass}'")
113+
vprint_error("FAILED LOGIN. '#{user}':'#{pass}'")
124114
return :skip_pass
125115
end
126116

@@ -143,7 +133,7 @@ def report_cred(opts)
143133

144134
login_data = {
145135
core: create_credential(credential_data),
146-
status: Metasploit::Model::Login::Status::UNTRIED,
136+
status: Metasploit::Model::Login::Status::SUCCESSFUL,
147137
}.merge(service_data)
148138

149139
create_credential_login(login_data)

0 commit comments

Comments
 (0)