mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
#147 Bugfix: Invoke-Mimikatz
Invoke-Mimikatz was not not handling functions exported by ordinal. Thank you @gentilkiwi for the suggested fix!
This commit is contained in:
@@ -1687,7 +1687,14 @@ $RemoteScriptBlock = {
|
||||
}
|
||||
else
|
||||
{
|
||||
[IntPtr]$NewThunkRef = $Win32Functions.GetProcAddress.Invoke($ImportDllHandle, $ProcedureName)
|
||||
if($ProcedureName -is [string])
|
||||
{
|
||||
[IntPtr]$NewThunkRef = $Win32Functions.GetProcAddress.Invoke($ImportDllHandle, $ProcedureName)
|
||||
}
|
||||
else
|
||||
{
|
||||
[IntPtr]$NewThunkRef = $Win32Functions.GetProcAddressOrdinal.Invoke($ImportDllHandle, $ProcedureName)
|
||||
}
|
||||
}
|
||||
|
||||
if ($NewThunkRef -eq $null -or $NewThunkRef -eq [IntPtr]::Zero)
|
||||
|
||||
Reference in New Issue
Block a user