Skip non-existant registry hives

This commit is contained in:
Fierelier 2021-11-13 06:34:53 +01:00
parent 303ede3139
commit a298c3de80

8
run.py
View File

@ -92,8 +92,12 @@ def main():
}
printStatus("\nextracting registry hives (" +str(opusnt.target["index"])+ "/" +str(opusnt.target["maxIndex"])+ ")...")
for reg in regs:
opusnt.readyFile(regs[reg])
for reg in list(regs.keys()):
try:
opusnt.readyFile(regs[reg])
except:
print(colorama.Fore.YELLOW + colorama.Style.BRIGHT + "warning: " +colorama.Style.RESET_ALL+ " extracting " +regs[reg]+ " failed, skipping.")
del regs[reg]
userPath = "Users"
opusnt.readyFile(userPath)