Filename regex is applied to the path and not only to the filename
See original GitHub issueAs usual thanks so much for your awesome work on GRR!
When using list process flow, the option filename regex
is also applied to the path and not only to the filename. Analysts aren’t aware of that and the documentation on the field is hiding that important information 😃
See ListProcessesArgs
in the flows.proto file
The check is made against the “exe”-property of the process as seen in the processes flow implementation (_FilenameMatch
).
Question: Would it be possible to extend the description that the regex is applied to the whole path?
Thanks in advance for your feedback.
While going through the code, I saw that you only use your match function once in IterateProcesses
.
When using fetch binaries
vs the match for only listing processes
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Regex for extracting filename from path - Stack Overflow
This question is vague as it only contains one example of path and filename structure. Regex is used to match and/or capture different ......
Read more >Regex for filename - Studio - UiPath Community Forum
I am trying to use regex in order to get the filename. the filename is Supplier Creation Details - Clarisity Solutions 2.
Read more >Path.GetFileName Method (System.IO) - Microsoft Learn
Returns the file name and extension of a file path that is represented by a read-only character span.
Read more >File Names - Duplicate File Detective
During the duplicate file search process, every file's name is examined and compared against the settings defined in the File names section of...
Read more >Searching Files and Filenames - Computing from the ...
You can use -regex and -iregex (case-insensitive) to match filenames based on regular expressions. In this case, the pattern will match the entire...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FTR Fixed in https://github.com/google/grr/commit/768686c220a3c4173495e79a42d1a8915ab93caa. Thanks!
Thanks for raising the issue, Karneades. Much appreciated 👍
I have fixed the description in our internal version control system. The change will be pushed to GitHub in the next days.
As for your second note: It’s right that the match function should be reused. The whole logic in ListProcesses is somewhat convoluted, so that’s a bigger refactoring effort.