Closed BeanBagKing closed 3 years ago
dont mount it with file system bypass and try it again?
granted you cant get $I30 via that way, but that would at least eliminate the e01 as being problematic.
SOMETHING is presenting as a reparse point, but when it tries to resolve it, its failing. this could be a bug in the way either aim or discutils is presenting data. hard to say.
i should look into adding $I30 support to kape or something else i suppose
why would you use VSS here? its not a physical disk?
you can also adjust your tsource to something more specific, such as the users profile, or firefox dir, to see if it can see the $I30s from there
dont mount it with file system bypass and try it again?
"Doctor, it hurts when I do this." "Then don't do that!” :P
The .EO1 file mounted with the standard "Read Only Disk Device" does seem to work fine.
For the VSS, sorry, habit. However, it doesn't seem to have an effect on the issue here.
As far as adjusting the source, AIM presents these files in the [METADATA] folder. Trying to adjust the tsource results in a failure of a different kind. I can open a seperate issue for this if you want, but if its the way discutils is presenting data, it may all be the same root cause.
Deferring <everything> due to IOException...
<snip>
Could not copy file 'D:\[METADATA]\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\WebResources\Resource0\static\js\plugins\tracked-send\js\plugins\tracked-send\js\nls\zh-tw\$I30..$INDEX_ROOT' to 'C:\Users\<snip>\Desktop\test\D\[METADATA]\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\WebResources\Resource0\static\js\plugins\tracked-send\js\plugins\tracked-send\js\nls\zh-tw\$I30..$INDEX_ROOT'. Error: Incorrect function.
WARNING: THERE WERE 130,628 FILE COPY FAILURES! See the console log for details!!!
Copied 0 out of 130,628 files in 272.9556 seconds. File copy errors: 130,628. See console log for details! See '*_CopyLog.csv' in the VHD(X)/Zip located in 'C:\Users\<snip>\Desktop\test' for copy details
Initializing VHDX creation. This may take a while...
No files were copied. Cannot create VHD(x) file!
Total execution time: 273.4090 seconds
Press any key to exit
My tkape file
Description: File Attributes (e.g $I30)
Author: Mike Peterson
Version: 1.0
Id: 054f8990-d877-4d84-98d6-23dc6cceaf2b
RecreateDirectories: True
Targets:
-
Name: $I30
Category: File Attributes
Path: C:\[METADATA]
Recursive: True
FileMask: "*$I30*"
And my command line
.\kape.exe --tsource D: --tdest C:\Users\<snip>\Desktop\test --tflush --target FileAttributes2 --vhdx test --zv false --gui
yea no idea on that one. will have to see if i can replicate it
I seem to have confirmed that nothing gets copied out, so as you said, there's probably some underlying problem with diskutils
tkape
Description: Just a test
Author: Mike Peterson
Version: 1.0
Id: 1828de2a-d81e-47a8-a0d2-87ad96e33035
RecreateDirectories: True
Targets:
-
Name: test
Category: test
Path: C:\
Recursive: False
FileMask: "swapfile.sys"
Results
KAPE version 0.9.6.0 Author: Eric Zimmerman (kape@kroll.com)
KAPE directory: C:\Tools\KAPE
Command line: --tsource D: --tdest C:\Users\<snip>\Desktop\test --tflush --target test --vhdx test --zv false --gui
System info: Machine name: DESKTOP-<snip>, 64-bit: True, User: <snip> OS: Windows10 (10.0.19041)
Using Target operations
Flushing target destination directory 'C:\Users\<snip>\Desktop\test'
Creating target destination directory 'C:\Users\<snip>\Desktop\test'
Found 1 targets. Expanding targets to file list...
Found 1 file in 0.051 seconds. Beginning copy...
Deferring 'D:\swapfile.sys' due to IOException...
Deferred file count: 1. Copying locked files...
Could not copy file 'D:\swapfile.sys' to 'C:\Users\<snip>\Desktop\test\D\swapfile.sys'. Error: Incorrect function.
WARNING: THERE WERE 1 FILE COPY FAILURES! See the console log for details!!!
Copied 0 out of 1 files in 0.2931 seconds. File copy errors: 1. See console log for details! See '*_CopyLog.csv' in the VHD(X)/Zip located in 'C:\Users\<snip>\Desktop\test' for copy details
Initializing VHDX creation. This may take a while...
No files were copied. Cannot create VHD(x) file!
Total execution time: 0.6077 seconds
Press any key to exit
my guess is the CD file system emulation the bypass mode is using
Thanks, if this isn't an issue on the KAPE side, I understand if you close it. It would be nice to have interoperability between tools though. Arsenal was really good about giving me a trial license to try to get this working with if you need to replicate, and if there is anything else I can test, let me know.
spent some time digging into this. its not a simple fix. its more related to the fact that bypassmode uses CD file system vs NTFS, so none of the functions work the same.
cant do anything with this for now, at least in the short term. i will look into adding $I30 extraction to KAPE too
KAPE version
0.9.6.0
Describe the bug
While trying to run KAPE against a disk image mounted with Arsenal Image Mounter's "Windows file system driver bypass", an unhanded exception dealing with (not a) reparse points.
Command line: .\kape.exe --tsource D: --tdest C:\Users\\Desktop\test --tflush --target Firefox --vss --vhdx test --zv false --gui
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No crash, and no issues enumerating anything in the mounted image. This should include the [DELETED] and [METADATA] "folders" exposed by AIM (not sure if that's an issue yet, haven't made it that far).
Screenshots
Additional context
There are two console logs below. Both appear to deal with different not reparse points (same issue, different targets/locations).
I'm not sure if it's relevant or helpful, but here is what AIM's readme says about the file system driver bypass: