Skip to content

Commit c0fda81

Browse files
Removed options DB_ADD_ALL. Added options DB_ALL_PASS and DB_ALL_USERS
to add already known user and passwords to the lists.
1 parent dcae55e commit c0fda81

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/msf/core/auxiliary/auth_brute.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def initialize(info = {})
2323
OptBool.new('BLANK_PASSWORDS', [ false, "Try blank passwords for all users", true]),
2424
OptBool.new('USER_AS_PASS', [ false, "Try the username as the password for all users", true]),
2525
OptBool.new('DB_USERPASS', [false,"Try each user/password couple stored in the current database",true]),
26-
OptBool.new('DB_ADD_ALL', [false,"Add all user and passwords in the current database to the lists (This will try every user with every password)",false]),
26+
OptBool.new('DB_ALL_USERS', [false,"Add all users in the current database to the list",false]),
27+
OptBool.new('DB_ALL_PASS', [false,"Add all passwords in the current database to the list",false]),
2728
OptBool.new('STOP_ON_SUCCESS', [ true, "Stop guessing when a credential works for a host", false]),
2829
], Auxiliary::AuthBrute)
2930

@@ -180,9 +181,13 @@ def build_credentials_array
180181
users = load_user_vars(credentials)
181182
passwords = load_password_vars(credentials)
182183

183-
if datastore['DB_ADD_ALL']
184+
if datastore['DB_ALL_USERS']
184185
myworkspace.creds.each do |o|
185186
users << o.user
187+
end
188+
end
189+
if datastore['DB_ALL_PASS']
190+
myworkspace.creds.each do |o|
186191
passwords << o.pass unless o.ptype =~ /hash/
187192
end
188193
end

0 commit comments

Comments
 (0)