Skip to content

Commit deacebc

Browse files
committed
Land rapid7#9264, Add private type when storing SSH password
Land rapid7#9264
2 parents cfec0f4 + b24f70c commit deacebc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/auxiliary/scanner/ssh/ssh_login.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def run_host(ip)
132132
case result.status
133133
when Metasploit::Model::Login::Status::SUCCESSFUL
134134
print_brute :level => :good, :ip => ip, :msg => "Success: '#{result.credential}' '#{result.proof.to_s.gsub(/[\r\n\e\b\a]/, ' ')}'"
135+
credential_data[:private_type] = :password
135136
credential_core = create_credential(credential_data)
136137
credential_data[:core] = credential_core
137138
create_credential_login(credential_data)

0 commit comments

Comments
 (0)