We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d46d02 commit fee3b4cCopy full SHA for fee3b4c
Exfiltration/Invoke-Mimikatz.ps1
@@ -1687,7 +1687,14 @@ $RemoteScriptBlock = {
1687
}
1688
else
1689
{
1690
- [IntPtr]$NewThunkRef = $Win32Functions.GetProcAddress.Invoke($ImportDllHandle, $ProcedureName)
+ if($ProcedureName -is [string])
1691
+ {
1692
+ [IntPtr]$NewThunkRef = $Win32Functions.GetProcAddress.Invoke($ImportDllHandle, $ProcedureName)
1693
+ }
1694
+ else
1695
1696
+ [IntPtr]$NewThunkRef = $Win32Functions.GetProcAddressOrdinal.Invoke($ImportDllHandle, $ProcedureName)
1697
1698
1699
1700
if ($NewThunkRef -eq $null -or $NewThunkRef -eq [IntPtr]::Zero)
0 commit comments