mirror of
https://github.com/FuzzySecurity/PowerShell-Suite
synced 2026-06-08 11:07:50 +00:00
+PSv2 Compatibility Fix
This commit is contained in:
+1
-1
@@ -244,7 +244,7 @@ function UAC-TokenMagic {
|
||||
}
|
||||
|
||||
if ($ProcPID){
|
||||
$IsValidProc = ((Get-Process).Id).Contains($ProcPID)
|
||||
$IsValidProc = Get-Process -Id $ProcPID -ErrorAction SilentlyContinue
|
||||
if (!$IsValidProc) {
|
||||
echo "[!] Invalid process specified!`n"
|
||||
Break
|
||||
|
||||
Reference in New Issue
Block a user