Skip to content

Commit 78a6e1b

Browse files
committed
Change credential status from untried to successful
1 parent 3ec6d9b commit 78a6e1b

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

modules/auxiliary/scanner/http/owa_login.rb

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,6 @@ def try_user_pass(opts)
206206
# Check if the password needs to be changed.
207207
if res.headers['location'] =~ /expiredpassword/
208208
print_good("#{msg} SUCCESSFUL LOGIN. #{elapsed_time} '#{user}' : '#{pass}': NOTE password change required")
209-
report_hash = {
210-
:host => datastore['RHOST'],
211-
:port => datastore['RPORT'],
212-
:sname => 'owa',
213-
:user => user,
214-
:pass => pass,
215-
:active => true,
216-
:type => 'password'}
217-
218209
report_cred(
219210
ip: datastore['RHOST'],
220211
port: datastore['RPORT'],
@@ -276,16 +267,6 @@ def try_user_pass(opts)
276267

277268
if res.body =~ login_check
278269
print_good("#{msg} SUCCESSFUL LOGIN. #{elapsed_time} '#{user}' : '#{pass}'")
279-
280-
report_hash = {
281-
:host => datastore['RHOST'],
282-
:port => datastore['RPORT'],
283-
:sname => 'owa',
284-
:user => user,
285-
:pass => pass,
286-
:active => true,
287-
:type => 'password'}
288-
289270
report_cred(
290271
ip: datastore['RHOST'],
291272
port: datastore['RPORT'],
@@ -360,7 +341,7 @@ def report_cred(opts)
360341

361342
login_data = {
362343
core: create_credential(credential_data),
363-
status: Metasploit::Model::Login::Status::UNTRIED,
344+
status: Metasploit::Model::Login::Status::SUCCESSFUL,
364345
}.merge(service_data)
365346

366347
create_credential_login(login_data)

0 commit comments

Comments
 (0)