aboutsummaryrefslogtreecommitdiff
path: root/CodeExecution/Invoke-ReflectivePEInjection.ps1
diff options
context:
space:
mode:
authorHarmJ0y <HarmJ0y@users.noreply.github.com>2016-12-12 11:09:24 -0800
committerGitHub <noreply@github.com>2016-12-12 11:09:24 -0800
commitc7985c9bc31e92bb6243c177d7d1d7e68b6f1816 (patch)
tree7deebfe9d11f22861648cceffea1c26a251749fd /CodeExecution/Invoke-ReflectivePEInjection.ps1
parent240365441020d9f82194973a34df045b42ee6d1d (diff)
parent863699d97e55fe375fc67ada9e3d99d462cbe1d0 (diff)
downloadPowerSploit-c7985c9bc31e92bb6243c177d7d1d7e68b6f1816.tar.gz
PowerSploit-c7985c9bc31e92bb6243c177d7d1d7e68b6f1816.zip
Merge pull request #202 from PowerShellMafia/dev
Dev
Diffstat (limited to 'CodeExecution/Invoke-ReflectivePEInjection.ps1')
-rw-r--r--CodeExecution/Invoke-ReflectivePEInjection.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/CodeExecution/Invoke-ReflectivePEInjection.ps1 b/CodeExecution/Invoke-ReflectivePEInjection.ps1
index 990c4b1..42900fb 100644
--- a/CodeExecution/Invoke-ReflectivePEInjection.ps1
+++ b/CodeExecution/Invoke-ReflectivePEInjection.ps1
@@ -648,7 +648,7 @@ $RemoteScriptBlock = {
$Win32Functions | Add-Member NoteProperty -Name GetModuleHandle -Value $GetModuleHandle
$FreeLibraryAddr = Get-ProcAddress kernel32.dll FreeLibrary
- $FreeLibraryDelegate = Get-DelegateType @([Bool]) ([IntPtr])
+ $FreeLibraryDelegate = Get-DelegateType @([IntPtr]) ([Bool])
$FreeLibrary = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer($FreeLibraryAddr, $FreeLibraryDelegate)
$Win32Functions | Add-Member -MemberType NoteProperty -Name FreeLibrary -Value $FreeLibrary