Closed FabiFaust closed 4 years ago
Hi Fabian, Thank you for your interest in dfir-orc and AmCache is for sure a good source of information! ;-)
Could you share your xml configuration files here so we can better understand what you are trying to achieve?
By default GetThis creates a 7z archive containing all the collected files, the csv and the log files. All I am trying to do is to have it create a normal folder instead, thats all.
Using the config file I have uploaded, GetThis attempts to do this, only to exit mid-way once it is trying to add the collected files into the folder.
Thank you for sharing the configuration files. I think you found a bug in dfir-orc. The current implementation does not support creating subdirectories under the output directory (i.e. Artifacts1\AmCache in your case). Creating directly the files under Artifacts1 is the advised workaround until we fix this bug. This implies removing the name="AmCache" attribute in your getthis config file. Also, the correct syntax to collect a directory's content is (in your dfir-orc config):
(I am not 100% sure the filematch is mandatory though)
I am attaching here the files I used to successfully test the workaround.
Please let us know if this works for you. (at least until we fix the underlying bug :-) )
<output name="Artifacts1" source="Directory" filematch="*" argument="/out={FileName}"/>
Sorry, that part got lost
Saving for later: The faulty code is probably in "Main::CollectMatchingSamples(const std::wstring& outputdir, ITableOutput& output, SampleSet& MatchingSamples)" (in src\OrcCommand\GetThis_Run.cpp, line 782):
fs::path sampleFile = output_dir / fs::path(sample_ref.SampleName);
We made sure that output_dir was created but, in this context, SampleName is AmCache\TheActualSampleName.whatever.
It works now, thanks!
I am trying to output a folder using GetThis for all the collected files, instead of a zip archive. The documentation page mentions that the included output options are not working for GetThis so I have not been able to get it to work.
I have tried using
<output name="Artifacts" source="File" argument="/out=Artifacts"/>
in the XML config file (using source="Folder" does not work either) It always fails with: (console)When I try adding
/out=Artifacts
in arguments of the XML config file instead, it always fails with a similar error: (log file)The folder is always created in the right place for both versions and the csv and log file stored inside, but never one of the collected files.