Skip to content

Commit da8ef0f

Browse files
authored
Merge pull request Pennyw0rth#604 from Pennyw0rth/ntlm
Add information if ntlm disabled
2 parents 91c339e + 87c223e commit da8ef0f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nxc/protocols/smb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ def enum_host_info(self):
316316
def print_host_info(self):
317317
signing = colored(f"signing:{self.signing}", host_info_colors[0], attrs=["bold"]) if self.signing else colored(f"signing:{self.signing}", host_info_colors[1], attrs=["bold"])
318318
smbv1 = colored(f"SMBv1:{self.smbv1}", host_info_colors[2], attrs=["bold"]) if self.smbv1 else colored(f"SMBv1:{self.smbv1}", host_info_colors[3], attrs=["bold"])
319-
self.logger.display(f"{self.server_os}{f' x{self.os_arch}' if self.os_arch else ''} (name:{self.hostname}) (domain:{self.targetDomain}) ({signing}) ({smbv1})")
319+
ntlm = colored(f"(NTLM:{not self.no_ntlm})", host_info_colors[2], attrs=["bold"]) if self.no_ntlm else ""
320+
self.logger.display(f"{self.server_os}{f' x{self.os_arch}' if self.os_arch else ''} (name:{self.hostname}) (domain:{self.targetDomain}) ({signing}) ({smbv1}) {ntlm}")
320321

321322
if self.args.generate_hosts_file or self.args.generate_krb5_file:
322323
from impacket.dcerpc.v5 import nrpc, epm

0 commit comments

Comments
 (0)