mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
+ PSv2 Compatibility
Fix for unable to index into object of type System.Diagnostic.Process on PSv2.
This commit is contained in:
@@ -3346,7 +3346,7 @@ function Invoke-CredentialInjection
|
||||
}
|
||||
elseif ($PsCmdlet.ParameterSetName -ieq "ExistingWinLogon")
|
||||
{
|
||||
$WinLogonProcessId = (Get-Process -Name "winlogon")[0].Id
|
||||
$WinLogonProcessId = (Get-Process -Name "winlogon"| Select-Object -first 1).Id
|
||||
}
|
||||
|
||||
#Get a ushort representing the logontype
|
||||
|
||||
Reference in New Issue
Block a user