mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
[nanodump] zblurx: review I
Signed-off-by: XiaoliChan <2209553467@qq.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user