Skip to content

Commit

Permalink
f2
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospolop committed Aug 28, 2024
1 parent adc8e16 commit b3bcfa4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions winPEAS/winPEASexe/winPEAS/Checks/Checks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ internal static void Run(string[] args)
//Check parameters
bool isAllChecks = true;
bool isFileSearchEnabled = false;
var searchEnabledChecks = new HashSet<string>() { "fileanalysis, filesinfo" };
bool wait = false;
FileStream fileStream = null;
StreamWriter fileWriter = null;
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -268,11 +273,6 @@ internal static void Run(string[] args)
{
_systemCheckSelectedKeysHashSet.Add(argToLower);
isAllChecks = false;

if (searchEnabledChecks.Contains(argToLower))
{
isFileSearchEnabled = true;
}
}
}

Expand Down

0 comments on commit b3bcfa4

Please sign in to comment.