Skip to content

Commit f36c53f

Browse files
committed
Formatting
1 parent dd2a053 commit f36c53f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nxc/protocols/ldap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def get_ldap_username(self):
233233
value = response_value.asOctets().decode(response_value.encoding)[2:]
234234
return value.split("\\")[1]
235235
return ""
236-
236+
237237
def check_ldap_signing(self):
238238
self.signing_required = False
239239
ldap_url = f"ldap://{self.target}"
@@ -280,7 +280,6 @@ def check_ldaps_cbt(self):
280280
else:
281281
raise
282282

283-
284283
def enum_host_info(self):
285284
self.hostname = self.target.split(".")[0].upper() if "." in self.target else self.target
286285
self.remoteName = self.target
@@ -339,6 +338,7 @@ def print_host_info(self):
339338
signing = colored("signing:Enforced", host_info_colors[0], attrs=["bold"]) if self.signing_required else colored("signing:None", host_info_colors[1], attrs=["bold"])
340339
cbt_status = colored(f"channel binding:{self.cbt_status}", host_info_colors[3], attrs=["bold"]) if self.cbt_status == "Always" else colored(f"channel binding:{self.cbt_status}", host_info_colors[2], attrs=["bold"])
341340
ntlm = colored(f"(NTLM:{not self.no_ntlm})", host_info_colors[2], attrs=["bold"]) if self.no_ntlm else ""
341+
342342
self.logger.extra["protocol"] = "LDAP" if str(self.port) == "389" else "LDAPS"
343343
self.logger.extra["port"] = self.port
344344
self.logger.extra["hostname"] = self.hostname
@@ -1286,7 +1286,7 @@ def bloodhound(self):
12861286
self.logger.fail("Your configuration has BloodHound-CE enabled, but the regular BloodHound package is installed. Modify your ~/.nxc/nxc.conf config file or follow the instructions:")
12871287
self.logger.fail("Please run the following commands to fix this:")
12881288
self.logger.fail("poetry remove bloodhound-ce # poetry falsely recognizes bloodhound-ce as a the old bloodhound package")
1289-
self.logger.fail("poetry add bloodhound-ce")
1289+
self.logger.fail("poetry add bloodhound-ce")
12901290
self.logger.fail("")
12911291

12921292
# If using pipx

0 commit comments

Comments
 (0)