-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for regular expressions in collection list file #33
Comments
Just a thought on a possible way to tackle this: Use PowerForensics.Ntfs.FileRecord from github.com/Invoke-IR/PowerForensics (or something similar for rapidly parsing the MFT) to get a list of file entries, and then process the list against the file collection list. |
Do you mean running PowerForensics as separate tool and then piping the output of that into CyLR? That sounds like a good approach. |
The more I think about it, the more I agree with you. Implementing robust regular expression support may be outside of the scope of the project, and one of the things I appreciate about the tool is its simplicity and the fact that it is extremely quick. The more functionality you add, the more time it takes to process. What I currently do is dynamically build a collections list in PowerShell, write it to a file, and pass it to CyLR. This approach works well. |
Does #36 get closer to what you'd like to have? |
That should work for the use case of collecting a single file. |
So, to do a full regex search: This would grab any ".log" files underneath the current directory. |
The Unix equivalent being (when I finally manage to get mkbundle to work properly): |
Ahh yes, I actually just downloaded your fork and tried it. That works very well. The only concern I see with it though is that it appears "Console.IsInputRedirected" only exists in .NET 4.5 and up. Any way to make it compatible with .NET 4.0 as well? |
Possibly solved with this code snippet from SO? Includes a cross-platform snippet for using with Mono as well. http://stackoverflow.com/questions/3453220/how-to-detect-if-console-in-stdin-has-been-redirected |
Oh, good catch. We're trying to target mono, which makes that a touch more difficult. I'll see what I can do. |
That's the most sad code I've had to write in a long while, but it works now. |
Not at all related to this issue but Happy New Year, and really appreciate this project and your efforts. |
Thanks! It's been a fun project to work on. |
I'm going to close this issue for now. I'm still open to discussion on this point, but at the moment I think searching for artefacts is best handled by other, better tools, and if it isn't, lets write those tools!. |
This would also ideally allow for recursively selecting/finding files based on the specified regular expression.
The text was updated successfully, but these errors were encountered: