Skip to content

Commit ea0a42a

Browse files
committed
Fix path in user-desc module
1 parent e2351ba commit ea0a42a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nxc/modules/user-desc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from impacket.ldap import ldap, ldapasn1
44
from impacket.ldap.ldap import LDAPSearchError
55

6+
from nxc.paths import NXC_PATH
7+
68

79
class NXCModule:
810
"""
@@ -91,7 +93,7 @@ def on_login(self, context, connection):
9193
def create_log_file(self, host, time):
9294
"""Create a log file for dumping user descriptions."""
9395
logfile = f"UserDesc-{host}-{time}.log"
94-
logfile = Path.home().joinpath(".nxc").joinpath("logs").joinpath(logfile)
96+
logfile = Path(NXC_PATH).joinpath(logfile)
9597

9698
self.context.log.info(f"Creating log file '{logfile}'")
9799
self.log_file = open(logfile, "w") # noqa: SIM115

0 commit comments

Comments
 (0)