Skip to content

Commit 7303e78

Browse files
authored
Merge pull request #20652 from adfoster-r7/fix-ssh-login-crash-for-pro
Fix ssh login crash for pro
2 parents 909d872 + 25772a5 commit 7303e78

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

lib/metasploit/framework/login_scanner/ssh.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def attempt_login(credential)
6868
:key_data => credential.private,
6969
)
7070
end
71-
opt_hash[:passphrase] = cred_details.password
71+
opt_hash[:passphrase] = cred_details.password if cred_details.respond_to?(:password)
7272

7373
result_options = {
7474
credential: credential

0 commit comments

Comments
 (0)