From 5660218b38eaacb95679dde712ecb6857143cfa3 Mon Sep 17 00:00:00 2001 From: Harmj0y Date: Tue, 31 May 2016 23:28:19 -0400 Subject: Bug fix for Get-System for when a needed assembly isn't loaded. --- Privesc/Get-System.ps1 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Privesc') 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" ) -- cgit v1.2.3