[nanodump] zblurx: review I

Signed-off-by: XiaoliChan <2209553467@qq.com>
This commit is contained in:
XiaoliChan
2023-10-12 17:25:32 +08:00
parent 784c42b674
commit ea8cdcceef
+3 -3
View File
@@ -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