From b3cd9417f87efef35c68b43aeafdbca06bf7be05 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Wed, 28 Aug 2024 00:06:09 +0200 Subject: [PATCH] fic --- winPEAS/winPEASexe/winPEAS/Checks/FileAnalysis.cs | 1 + 1 file changed, 1 insertion(+) 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)