From f796a5f2f20747b892936a809692a4d3ee2582cf Mon Sep 17 00:00:00 2001 From: mpgn Date: Sun, 23 Oct 2022 07:08:39 -0400 Subject: [PATCH] add port 636 if gmsa --- cme/protocols/ldap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cme/protocols/ldap.py b/cme/protocols/ldap.py index 50770b10..8168688d 100644 --- a/cme/protocols/ldap.py +++ b/cme/protocols/ldap.py @@ -259,7 +259,7 @@ class ldap(connection): highlight('({})'.format(self.config.get('CME', 'pwn3d_label')) if self.admin_privs else '')) self.logger.extra['protocol'] = "LDAP" - self.logger.extra['port'] = "389" + self.logger.extra['port'] = "389" if not self.args.gmsa else "636" self.logger.success(out) if not self.args.local_auth: @@ -327,7 +327,7 @@ class ldap(connection): self.password if not self.config.get('CME', 'audit_mode') else self.config.get('CME', 'audit_mode')*8, highlight('({})'.format(self.config.get('CME', 'pwn3d_label')) if self.admin_privs else '')) self.logger.extra['protocol'] = "LDAP" - self.logger.extra['port'] = "389" + self.logger.extra['port'] = "389" if not self.args.gmsa else "636" self.logger.success(out) if not self.args.local_auth: @@ -420,7 +420,7 @@ class ldap(connection): self.nthash if not self.config.get('CME', 'audit_mode') else self.config.get('CME', 'audit_mode')*8, highlight('({})'.format(self.config.get('CME', 'pwn3d_label')) if self.admin_privs else '')) self.logger.extra['protocol'] = "LDAP" - self.logger.extra['port'] = "389" + self.logger.extra['port'] = "389" if not self.args.gmsa else "636" self.logger.success(out) if not self.args.local_auth: