From be4939b56a74b67ee2fc57b5e150df608727ae60 Mon Sep 17 00:00:00 2001 From: nromsdahl Date: Thu, 14 Dec 2017 08:05:57 -0600 Subject: [PATCH 1/2] 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. --- modules/auxiliary/scanner/ftp/ftp_login.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/auxiliary/scanner/ftp/ftp_login.rb b/modules/auxiliary/scanner/ftp/ftp_login.rb index 1aa1f1fc1b..ae2c3106fe 100644 --- a/modules/auxiliary/scanner/ftp/ftp_login.rb +++ b/modules/auxiliary/scanner/ftp/ftp_login.rb @@ -94,6 +94,7 @@ class MetasploitModule < Msf::Auxiliary workspace_id: myworkspace_id ) if result.success? + credential_data[:private_type] = :password credential_core = create_credential(credential_data) credential_data[:core] = credential_core create_credential_login(credential_data) From 384b250659cee5ec0fb99a64bab4accbd8955bdf Mon Sep 17 00:00:00 2001 From: nromsdahl Date: Thu, 14 Dec 2017 08:07:59 -0600 Subject: [PATCH 2/2] Add credential data type Added credential data type so that successful passwords are stored in the database and accessible via the creds command. --- modules/auxiliary/scanner/telnet/telnet_login.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/auxiliary/scanner/telnet/telnet_login.rb b/modules/auxiliary/scanner/telnet/telnet_login.rb index c57ca7e49c..82c1452813 100644 --- a/modules/auxiliary/scanner/telnet/telnet_login.rb +++ b/modules/auxiliary/scanner/telnet/telnet_login.rb @@ -85,6 +85,7 @@ class MetasploitModule < Msf::Auxiliary workspace_id: myworkspace_id ) if result.success? + credential_data[:private_type] = :password credential_core = create_credential(credential_data) credential_data[:core] = credential_core create_credential_login(credential_data)