File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -206,15 +206,6 @@ def try_user_pass(opts)
206
206
# Check if the password needs to be changed.
207
207
if res . headers [ 'location' ] =~ /expiredpassword/
208
208
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
-
218
209
report_cred (
219
210
ip : datastore [ 'RHOST' ] ,
220
211
port : datastore [ 'RPORT' ] ,
@@ -276,16 +267,6 @@ def try_user_pass(opts)
276
267
277
268
if res . body =~ login_check
278
269
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
-
289
270
report_cred (
290
271
ip : datastore [ 'RHOST' ] ,
291
272
port : datastore [ 'RPORT' ] ,
@@ -360,7 +341,7 @@ def report_cred(opts)
360
341
361
342
login_data = {
362
343
core : create_credential ( credential_data ) ,
363
- status : Metasploit ::Model ::Login ::Status ::UNTRIED ,
344
+ status : Metasploit ::Model ::Login ::Status ::SUCCESSFUL ,
364
345
} . merge ( service_data )
365
346
366
347
create_credential_login ( login_data )
You can’t perform that action at this time.
0 commit comments