From e8fe42cb4a6d4290851830c1acd4a9c90f422961 Mon Sep 17 00:00:00 2001 From: zblurx Date: Thu, 21 Mar 2024 17:09:22 +0100 Subject: [PATCH] fix ruff warning --- nxc/modules/ldap-checker.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nxc/modules/ldap-checker.py b/nxc/modules/ldap-checker.py index 21fc8940..d0bb3bb6 100644 --- a/nxc/modules/ldap-checker.py +++ b/nxc/modules/ldap-checker.py @@ -9,7 +9,7 @@ from asyauth.common.constants import asyauthSecret from asyauth.common.credentials.ntlm import NTLMCredential from asyauth.common.credentials.kerberos import KerberosCredential -from asysocks.unicomm.common.target import UniTarget, UniProto, UniSSL +from asysocks.unicomm.common.target import UniTarget, UniProto import sys @@ -131,12 +131,14 @@ class NXCModule: if err is not None: errstr = str(err).lower() if "stronger" in errstr: - return True #because LDAP server signing requirements ARE enforced + return True + # because LDAP server signing requirements ARE enforced else: context.log.fail(str(err)) else: - #LDAPS bind successful - return False #because LDAP server signing requirements are not enforced + # LDAPS bind successful + return False + # because LDAP server signing requirements are not enforced except Exception as e: context.log.debug(str(e)) return False