1
mirror of https://github.com/carlospolop/PEASS-ng synced 2024-11-20 12:39:21 +01:00

Update winPEAS.ps1

Remove extra code in search for files.
This commit is contained in:
StevenLtheThird 2023-10-13 17:46:43 -04:00
parent 9f75cc824c
commit 11d93c42e7

View File

@ -1515,9 +1515,6 @@ $Drives.Root | ForEach-Object {
Search-Excel -Source $Path.FullName -SearchText "user"
Search-Excel -Source $Path.FullName -SearchText "pass"
}
else{
$Path.FullName | Select-String ".*\.xls",".*\.xlsm",".*\.xlsx"
}
}
else {
if ($path.Length -gt 0) {