aboutsummaryrefslogtreecommitdiff
path: root/Exfiltration/Invoke-CredentialInjection.ps1
diff options
context:
space:
mode:
authorMatt Graeber <matt@exploit-monday.com>2016-05-29 07:54:50 -0700
committerMatt Graeber <matt@exploit-monday.com>2016-05-29 07:54:50 -0700
commit6b0ada999a9d2be8c6c9267da57b898494d13219 (patch)
treeee5826ccbb410afc29279062d9551efa325e0823 /Exfiltration/Invoke-CredentialInjection.ps1
parent83305c5243ab6b793dda89866b34cb96396b61ec (diff)
downloadPowerSploit-6b0ada999a9d2be8c6c9267da57b898494d13219.tar.gz
PowerSploit-6b0ada999a9d2be8c6c9267da57b898494d13219.zip
Fixed FreeLibrary function signature #146
The parameter type and return types were accidentally transposed. Thanks @rojaster for pointing this out.
Diffstat (limited to 'Exfiltration/Invoke-CredentialInjection.ps1')
-rw-r--r--Exfiltration/Invoke-CredentialInjection.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/Exfiltration/Invoke-CredentialInjection.ps1 b/Exfiltration/Invoke-CredentialInjection.ps1
index a7b312d..d6f3c4c 100644
--- a/Exfiltration/Invoke-CredentialInjection.ps1
+++ b/Exfiltration/Invoke-CredentialInjection.ps1
@@ -771,7 +771,7 @@ function Invoke-CredentialInjection
$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