From ea8cdcceefa215326f704022ec138293e73b77c6 Mon Sep 17 00:00:00 2001 From: XiaoliChan <2209553467@qq.com> Date: Thu, 12 Oct 2023 17:25:32 +0800 Subject: [PATCH] [nanodump] zblurx: review I Signed-off-by: XiaoliChan <2209553467@qq.com> --- nxc/modules/nanodump.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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