From d20ef7a08baaec9dcc1ab6491a4e54c2a7e626c7 Mon Sep 17 00:00:00 2001 From: Jeffrey Martin Date: Tue, 23 Jan 2024 13:52:35 -0600 Subject: [PATCH] add `LDAP` to capture plugin --- data/capture_config.yaml | 2 ++ plugins/capture.rb | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/data/capture_config.yaml b/data/capture_config.yaml index 90e8d36776..c79cc065ca 100644 --- a/data/capture_config.yaml +++ b/data/capture_config.yaml @@ -16,6 +16,8 @@ services: enabled: yes - type: IMAP enabled: yes + - type: LDAP + enabled: yes - type: MSSQL enabled: yes - type: MySQL diff --git a/plugins/capture.rb b/plugins/capture.rb index 710d41c404..3b42cc191f 100644 --- a/plugins/capture.rb +++ b/plugins/capture.rb @@ -198,6 +198,7 @@ module Msf 'DRDA' => 'auxiliary/server/capture/drda', 'FTP' => 'auxiliary/server/capture/ftp', 'IMAP' => 'auxiliary/server/capture/imap', + 'LDAP' => 'auxiliary/server/capture/ldap', 'MSSQL' => 'auxiliary/server/capture/mssql', 'MySQL' => 'auxiliary/server/capture/mysql', 'POP3' => 'auxiliary/server/capture/pop3', @@ -578,6 +579,11 @@ module Msf datastore['CHALLENGE'] = config[:ntlm_challenge] end + def configure_ldap(datastore, config) + datastore['DOMAIN'] = config[:ntlm_domain] + datastore['CHALLENGE'] = config[:ntlm_challenge] + end + def configure_mssql(datastore, config) datastore['DOMAIN_NAME'] = config[:ntlm_domain] datastore['CHALLENGE'] = config[:ntlm_challenge]