Skip to content

Commit eb42f7b

Browse files
committed
Prompt fail message if no files could be extracted
1 parent 75e4656 commit eb42f7b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

nxc/modules/ntds-dump-raw.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,11 @@ def main(self):
176176
if self.number_of_file_to_extract != 0:
177177
self.logger.fail("Unable to find all needed files, trying to work with what we have")
178178

179-
self.logger.success("Heads up, hashes on the way...")
180-
self.dump_hashes()
179+
if "SYSTEM" in self.extracted_files_location_local and self.extracted_files_location_local["SYSTEM"] != "":
180+
self.logger.success("Heads up, hashes on the way...")
181+
self.dump_hashes()
182+
else:
183+
self.logger.fail("SYSTEM file not found, unable to proceed with hash extraction")
181184

182185
def dump_hashes(self):
183186
"""Dumping NTDS and SAM hashes locally from the extracted files"""

0 commit comments

Comments
 (0)