We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e18e69e commit abf9b34Copy full SHA for abf9b34
1 file changed
nxc/modules/ntdsutil.py
@@ -143,14 +143,7 @@ def add_ntds_hash(ntds_hash, host_id):
143
add_ntds_hash.ntds_hashes = 0
144
add_ntds_hash.added_to_db = 0
145
146
- if not connection.output_filename:
147
- timestamp = time.strftime("%Y-%m-%d_%H-%M-%S")
148
- hostname = connection.hostname
149
- ip = connection.host
150
- filename = f"{hostname}_{ip}_{timestamp}.ntds"
151
- output_dir = os.path.join(NXC_PATH, "logs", "ntds")
152
- os.makedirs(output_dir, exist_ok=True)
153
- connection.output_filename = os.path.join(output_dir, filename).rstrip(".ntds")
+ connection.output_filename = connection.output_file_template.format(output_folder="ntds")
154
155
NTDS = NTDSHashes(
156
f"{self.dir_result}/Active Directory/ntds.dit",
0 commit comments