Fix glitch with mounting users from online system

This commit is contained in:
Fierelier 2022-06-28 08:09:58 +02:00
parent 4077ba1bf3
commit 693bf97255
1 changed files with 4 additions and 1 deletions

5
run.py
View File

@ -173,9 +173,12 @@ def main():
for root,dirs,files in os.walk(userPath):
for file in dirs:
ffile = p(userPath,file)
tfile = ffile.replace(opusnt.tmpPath + os.path.sep,"",1)
if opusnt.target["type"] == "online":
tfile = tfile.replace(opusnt.target["path"] + os.path.sep,"",1)
user = ffile.replace(userPath + os.path.sep,"",1)
if os.path.isfile(p(ffile,"ntuser.dat")):
regs["user-" +user] = p(ffile,"ntuser.dat")
regs["user-" +user] = p(tfile,"ntuser.dat")
break
printStatus("mounting registry hives...")