Skip to content

Commit 478e431

Browse files
committed
Report credentials to database
1 parent 63fca1b commit 478e431

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

modules/auxiliary/scanner/http/joomla_bruteforce_login.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@ def do_login(user, pass)
117117

118118
if result == :success
119119
print_good("#{target_url} - Successful login '#{user}' : '#{pass}'")
120+
report_auth_info(
121+
:host => rhost,
122+
:port => rport,
123+
:sname => (ssl ? 'https' : 'http'),
124+
:user => user,
125+
:pass => pass,
126+
:proof => target_url,
127+
:type => 'passsword',
128+
:source_type => 'cred',
129+
:duplicate_ok => true,
130+
:active => true
131+
)
120132
return :abort if (datastore['STOP_ON_SUCCESS'])
121133
return :next_user
122134
else

0 commit comments

Comments
 (0)