diff options
author | HarmJ0y <HarmJ0y@users.noreply.github.com> | 2016-12-12 11:09:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 11:09:24 -0800 |
commit | c7985c9bc31e92bb6243c177d7d1d7e68b6f1816 (patch) | |
tree | 7deebfe9d11f22861648cceffea1c26a251749fd /CodeExecution | |
parent | 240365441020d9f82194973a34df045b42ee6d1d (diff) | |
parent | 863699d97e55fe375fc67ada9e3d99d462cbe1d0 (diff) | |
download | PowerSploit-c7985c9bc31e92bb6243c177d7d1d7e68b6f1816.tar.gz PowerSploit-c7985c9bc31e92bb6243c177d7d1d7e68b6f1816.zip |
Merge pull request #202 from PowerShellMafia/dev
Dev
Diffstat (limited to 'CodeExecution')
-rw-r--r-- | CodeExecution/Invoke-ReflectivePEInjection.ps1 | 2 |
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 |