Open chrisbvt opened 5 years ago
Duplicate of this ticket only for Invoke-Shellcode, this may be an issue across the board? https://github.com/PowerShellMafia/PowerSploit/issues/293
Fix is to change the following: Please try to change the line: $GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress')
$GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress')
to
$GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress', [reflection.bindingflags] "Public,Static", $null, [System.Reflection.CallingConventions]::Any, @((New-Object System.Runtime.InteropServices.HandleRef).GetType(), [string]), $null);
It is an issue across the board. Just committed to the Exfiltration/Get-Keystrokes.ps1 the same change. Will review all instances for this change.
Duplicate of this ticket only for Invoke-Shellcode, this may be an issue across the board? https://github.com/PowerShellMafia/PowerSploit/issues/293
Fix is to change the following: Please try to change the line:
$GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress')
to
$GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress', [reflection.bindingflags] "Public,Static", $null, [System.Reflection.CallingConventions]::Any, @((New-Object System.Runtime.InteropServices.HandleRef).GetType(), [string]), $null);