diff --git a/nxc/modules/nanodump.py b/nxc/modules/nanodump.py index 1629d2bc..ca2e6b9f 100644 --- a/nxc/modules/nanodump.py +++ b/nxc/modules/nanodump.py @@ -4,6 +4,7 @@ # author of the module : github.com/mpgn # nanodump: https://github.com/helpsystems/nanodump +import os import base64 import sys import pypykatz @@ -55,11 +56,10 @@ class NXCModule: self.useembeded = True if "NANO_PATH" in module_options: - self.nano_path = module_options["NANO_PATH"] - self.nano_path = f"{module_options['NANO_PATH']}/" if not module_options["NANO_PATH"].endswith("/") else module_options["NANO_PATH"] + self.nano_path = os.path.join(module_options["NANO_PATH"], "") self.useembeded = False else: - self.nano_path = f"{tempfile.gettempdir()}/" + self.nano_path = os.path.join(tempfile.gettempdir(),"") self.dir_result = self.nano_path