Skip to content

Commit 5de09d3

Browse files
committed
Check username & password options
1 parent d7f43a2 commit 5de09d3

File tree

1 file changed

+5
-1
lines changed
  • lib/metasploit/framework/login_scanner

1 file changed

+5
-1
lines changed

lib/metasploit/framework/login_scanner/base.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,11 @@ def validate_cred_details
292292
errors.add(:cred_details, "must respond to :each")
293293
end
294294

295-
if cred_details.prepended_creds.empty? && cred_details.additional_publics.empty? && cred_details.additional_privates.empty?
295+
if cred_details.prepended_creds.empty? &&
296+
cred_details.additional_publics.empty? &&
297+
cred_details.additional_privates.empty? &&
298+
!cred_details.username.present? &&
299+
!cred_details.password.present?
296300
errors.add(:cred_details, "can't be blank")
297301
end
298302
end

0 commit comments

Comments
 (0)