Skip to content

Commit be4939b

Browse files
authored
Add credential data type
Added credential data type so a successful ftp login stores the password in the database to be accessed later by the creds command.
1 parent e435dce commit be4939b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/auxiliary/scanner/ftp/ftp_login.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def run_host(ip)
9494
workspace_id: myworkspace_id
9595
)
9696
if result.success?
97+
credential_data[:private_type] = :password
9798
credential_core = create_credential(credential_data)
9899
credential_data[:core] = credential_core
99100
create_credential_login(credential_data)

0 commit comments

Comments
 (0)