aboutsummaryrefslogtreecommitdiff
path: root/Privesc
diff options
context:
space:
mode:
authorHarmj0y <will@harmj0y.net>2016-05-31 23:28:19 -0400
committerHarmj0y <will@harmj0y.net>2016-05-31 23:28:19 -0400
commit5660218b38eaacb95679dde712ecb6857143cfa3 (patch)
tree949c1057c9f403abac0e0052faa483dc59d2ec19 /Privesc
parent5b94a98dbd3e4a20947aa52061da60e8f8061a59 (diff)
downloadPowerSploit-5660218b38eaacb95679dde712ecb6857143cfa3.tar.gz
PowerSploit-5660218b38eaacb95679dde712ecb6857143cfa3.zip
Bug fix for Get-System for when a needed assembly isn't loaded.
Diffstat (limited to 'Privesc')
-rw-r--r--Privesc/Get-System.ps12
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" )