Big linpeas update

This commit is contained in:
Carlos Polop
2024-08-27 23:56:21 +02:00
parent 463154aa05
commit 0ed01d58d3
281 changed files with 9138 additions and 5090 deletions

View File

@@ -178,8 +178,8 @@ namespace winPEAS.Checks
bool is_re_match = false;
try
{
// Escape backslashes in the regex string
string escapedRegex = regex_str.Trim().Replace(@"\", @"\\");
// Escape backslashes in the regex string - I don't think this is needed anymore
//string escapedRegex = regex_str.Trim().Replace(@"\", @"\\");
// Use "IsMatch" because it supports timeout, if exception is thrown exit the func to avoid ReDoS in "rgx.Matches"
if (caseinsensitive)