Fix glitch with mounting users from online system
This commit is contained in:
parent
4077ba1bf3
commit
693bf97255
5
run.py
5
run.py
|
@ -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...")
|
||||
|
|
Loading…
Reference in New Issue