EmpireProject / Empire

Empire is a PowerShell and Python post-exploitation agent.

Home Page:http://www.powershellempire.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stager generation fails, generate_launcher() got an unexpected keyword

barabucken opened this issue · comments

Empire Version

2.5 Main branch

OS Information (Linux flavor, Python version)

WSL Kali Linux ( Linux machinename4 4.4.0-17134-Microsoft #677-Microsoft Wed Mar 13 18:40:00 PST 2019 x86_64 GNU/Linux )
Python 2.7.16

Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.

cd to Empire directory, sudo ./empire
generate listener meterpreter, default inputs + port 4444, execute - Works fine, listener is active
move back to main menu, run "usestager (any stager)", set Listener meterpreter, execute.

Expected behavior is to generate a stager, for example a bat launcher.
Result : [!] Exception: generate_launcher() got an unexpected keyword argument 'scriptLogBypass'

Empire then moves back to the main menu.

Screenshot of error, embedded text output, or Pastebin link to the error

The only error received is "[!] Exception: generate_launcher() got an unexpected keyword argument 'scriptLogBypass'"

Any additional information

I've come across the exact same problem running this in an Ubuntu VM, not sure about version there.
If you need me to take more steps to get more information, let me know.

I have the same issue today. Have you solved it ?

Empire Version

2.5 Main branch

OS Information (Linux flavor, Python version)

WSL Kali Linux ( Linux machinename4 4.4.0-17134-Microsoft #677-Microsoft Wed Mar 13 18:40:00 PST 2019 x86_64 GNU/Linux )
Python 2.7.16

Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.

cd to Empire directory, sudo ./empire
generate listener meterpreter, default inputs + port 4444, execute - Works fine, listener is active
move back to main menu, run "usestager (any stager)", set Listener meterpreter, execute.

Expected behavior is to generate a stager, for example a bat launcher.
Result : [!] Exception: generate_launcher() got an unexpected keyword argument 'scriptLogBypass'

Empire then moves back to the main menu.

Screenshot of error, embedded text output, or Pastebin link to the error

The only error received is "[!] Exception: generate_launcher() got an unexpected keyword argument 'scriptLogBypass'"

Any additional information

I've come across the exact same problem running this in an Ubuntu VM, not sure about version there.
If you need me to take more steps to get more information, let me know.

Hi there, I just worked it out.
My empire environment is running in docker container. Firstly I removed and run a new empire container but the problem remained there. Then I tried below steps and it works now! FYI.

step 1: run the install.sh script
sudo /opt/Empire/setup/install.sh

step 2:pip install pefile if this module exception occurred
pip install pefile

step 3:run the reset.sh script
sudo /opt/Empire/setup/reset.sh

And then run /opt/Empire/empire and create listener again, successfully !
image