diff --git a/winPEAS/winPEASexe/winPEAS/Checks/FileAnalysis.cs b/winPEAS/winPEASexe/winPEAS/Checks/FileAnalysis.cs index b0a406b..ffc48d7 100644 --- a/winPEAS/winPEASexe/winPEAS/Checks/FileAnalysis.cs +++ b/winPEAS/winPEASexe/winPEAS/Checks/FileAnalysis.cs @@ -180,6 +180,7 @@ namespace winPEAS.Checks { // Escape backslashes in the regex string - I don't think this is needed anymore //string escapedRegex = regex_str.Trim().Replace(@"\", @"\\"); + string escapedRegex = regex_str.Trim(); // Use "IsMatch" because it supports timeout, if exception is thrown exit the func to avoid ReDoS in "rgx.Matches" if (caseinsensitive)