Skip to content

Commit b24f70c

Browse files
authored
Update ssh_login.rb
Added credential data type so password is stored in creds.
1 parent 55f56a5 commit b24f70c

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)