diff --git a/winPEAS/winPEASexe/winPEAS/Checks/Checks.cs b/winPEAS/winPEASexe/winPEAS/Checks/Checks.cs index 12ce3118..69654d47 100644 --- a/winPEAS/winPEASexe/winPEAS/Checks/Checks.cs +++ b/winPEAS/winPEASexe/winPEAS/Checks/Checks.cs @@ -75,7 +75,6 @@ internal static void Run(string[] args) //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 @@ internal static void Run(string[] args) 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 @@ internal static void Run(string[] args) { _systemCheckSelectedKeysHashSet.Add(argToLower); isAllChecks = false; - - if (searchEnabledChecks.Contains(argToLower)) - { - isFileSearchEnabled = true; - } } }