From 623fa338de562a0bb9df31e75fb13767f0ffe352 Mon Sep 17 00:00:00 2001 From: Asim Aziz <41350723+45im@users.noreply.github.com> Date: Sun, 22 May 2022 02:26:55 +0100 Subject: [PATCH] Update ldap-search.py Hi Tib3rius ldapsearch has updated syntax. -h and -p have been Deprecated in favor of -H New syntax is -H ldap://: --- autorecon/default-plugins/ldap-search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorecon/default-plugins/ldap-search.py b/autorecon/default-plugins/ldap-search.py index 79d29c7..527d1d8 100644 --- a/autorecon/default-plugins/ldap-search.py +++ b/autorecon/default-plugins/ldap-search.py @@ -12,5 +12,5 @@ class LDAPSearch(ServiceScan): def manual(self, service, plugin_was_run): service.add_manual_command('ldapsearch command (modify before running):', [ - 'ldapsearch -x -D "" -w "" -p {port} -h {address} -b "dc=example,dc=com" -s sub "(objectclass=*)" 2>&1 | tee > "{scandir}/{protocol}_{port}_ldap_all-entries.txt"' + 'ldapsearch -x -D "" -w "" -H ldap://{address}:{port} -b "dc=example,dc=com" -s sub "(objectclass=*)" 2>&1 | tee > "{scandir}/{protocol}_{port}_ldap_all-entries.txt"' ])