Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Stager generation fails, generate_launcher() got an unexpected keyword #1345

Open
barabucken opened this issue Apr 6, 2019 · 2 comments
Open

Comments

@barabucken
Copy link

barabucken commented Apr 6, 2019

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.

@kkkimiko
Copy link

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

@kkkimiko
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants