mirror of
https://github.com/carlospolop/PEASS-ng
synced 2025-03-25 05:46:23 +01:00
Update winPEAS.ps1
Remove extra code in search for files.
This commit is contained in:
parent
9f75cc824c
commit
11d93c42e7
@ -1515,9 +1515,6 @@ $Drives.Root | ForEach-Object {
|
|||||||
Search-Excel -Source $Path.FullName -SearchText "user"
|
Search-Excel -Source $Path.FullName -SearchText "user"
|
||||||
Search-Excel -Source $Path.FullName -SearchText "pass"
|
Search-Excel -Source $Path.FullName -SearchText "pass"
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
$Path.FullName | Select-String ".*\.xls",".*\.xlsm",".*\.xlsx"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($path.Length -gt 0) {
|
if ($path.Length -gt 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user