From b3bcfa446691f7a358c9cf0de96e0697b1238b10 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Wed, 28 Aug 2024 21:57:32 +0200 Subject: [PATCH] f2 --- winPEAS/winPEASexe/winPEAS/Checks/Checks.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/winPEAS/winPEASexe/winPEAS/Checks/Checks.cs b/winPEAS/winPEASexe/winPEAS/Checks/Checks.cs index 12ce311..69654d4 100644 --- a/winPEAS/winPEASexe/winPEAS/Checks/Checks.cs +++ b/winPEAS/winPEASexe/winPEAS/Checks/Checks.cs @@ -75,7 +75,6 @@ namespace winPEAS.Checks //Check parameters bool isAllChecks = true; bool isFileSearchEnabled = false; - var searchEnabledChecks = new HashSet() { "fileanalysis, filesinfo" }; bool wait = false; FileStream fileStream = null; StreamWriter fileWriter = null; @@ -114,6 +113,12 @@ namespace winPEAS.Checks if (string.Equals(arg, "fileanalysis", StringComparison.CurrentCultureIgnoreCase)) { print_fileanalysis_warn = false; + isFileSearchEnabled = true; + } + + if (string.Equals(arg, "filesinfo", StringComparison.CurrentCultureIgnoreCase)) + { + isFileSearchEnabled = true; } if (string.Equals(arg, "all", StringComparison.CurrentCultureIgnoreCase)) @@ -268,11 +273,6 @@ namespace winPEAS.Checks { _systemCheckSelectedKeysHashSet.Add(argToLower); isAllChecks = false; - - if (searchEnabledChecks.Contains(argToLower)) - { - isFileSearchEnabled = true; - } } }