Skip to content

Commit e87e80a

Browse files
committed
Fix file path on windows, Pennyw0rth#746
1 parent d317d49 commit e87e80a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nxc/protocols/ldap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ def enum_host_info(self):
323323
self.kdcHost = result["host"] if result else None
324324
self.logger.info(f"Resolved domain: {self.domain} with dns, kdcHost: {self.kdcHost}")
325325

326-
self.output_filename = os.path.expanduser(f"{NXC_PATH}/logs/{self.hostname}_{self.host}".replace(":", "-"))
326+
filename = f"{self.hostname}_{self.host}".replace(":", "-")
327+
self.output_filename = os.path.expanduser(os.path.join(NXC_PATH, "logs", filename))
327328

328329
try:
329330
self.db.add_host(

0 commit comments

Comments
 (0)