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

cant start empire recieve errors #883

Closed
dan7ez opened this issue Dec 24, 2017 · 8 comments
Closed

cant start empire recieve errors #883

dan7ez opened this issue Dec 24, 2017 · 8 comments

Comments

@dan7ez
Copy link

dan7ez commented Dec 24, 2017

Empire Version

2.3

OS Information (Linux flavor, Python version)

Kali

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

Traceback (most recent call last):
File "./empire", line 13, in
from lib.common import empire, helpers
File "/pentest/powershell/empire-ps/lib/common/empire.py", line 31, in
import agents
File "/pentest/powershell/empire-ps/lib/common/agents.py", line 68, in
import encryption
File "/pentest/powershell/empire-ps/lib/common/encryption.py", line 62, in
random_function = OpenSSL.rand.bytes
AttributeError: 'module' object has no attribute 'rand'

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

Traceback (most recent call last):
File "./empire", line 13, in
from lib.common import empire, helpers
File "/pentest/powershell/empire-ps/lib/common/empire.py", line 31, in
import agents
File "/pentest/powershell/empire-ps/lib/common/agents.py", line 68, in
import encryption
File "/pentest/powershell/empire-ps/lib/common/encryption.py", line 62, in
random_function = OpenSSL.rand.bytes
AttributeError: 'module' object has no attribute 'rand'

Any additional information

I installed empire via the pentest framework

@CryptomaticSquirrel
Copy link

In my opinion the question might be better asked from the pentest framework guys. Nevertheless
image
Not totally sure that the installation gets executed from the correct path. For me the install works about 50 % of time. But the error is different.
Best of luck.

@ThePirateWhoSmellsOfSunflowers
Copy link
Contributor

Maybe your issue is duplicated with #882. It seems to be a known bug.

@dan7ez
Copy link
Author

dan7ez commented Dec 26, 2017

Many thanks for the support!

I did an update through the pentest framework and now get the following error when trying to run empire.

Traceback (most recent call last):
File "./empire", line 1381, in
main = empire.MainMenu(args=args)
File "/pentest/powershell/empire-ps/lib/common/empire.py", line 79, in init
(self.isroot, self.installPath, self.ipWhiteList, self.ipBlackList, self.obfuscate, self.obfuscateCommand) = helpers.get_config('rootuser, install_path,ip_whitelist,ip_blacklist,obfuscate,obfuscate_command')
TypeError: 'NoneType' object is not iterable

@ThePirateWhoSmellsOfSunflowers
Copy link
Contributor

try ./setup/reset.sh

@CryptomaticSquirrel
Copy link

Still quite sure it is due to the unusual path. It didn't reach dependencies before. Now it isn't getting one of the main variables.
Empire seems quite sensitive about it. But I'll give it a go and let you know what happens.

@CryptomaticSquirrel
Copy link

CryptomaticSquirrel commented Dec 26, 2017

https://github.com/trustedsec/ptf
use modules/install_update_all
yes
...
Four hours later
out of disk space
Uuups. I make big mistake :)

This took a lot longer then expected.
Got the same error as you. Like @ThePirateWhoSmellsOfSunflowers mention ./setup/reset.sh FIXED IT. Run ./install.sh and it breaks again and helpers.get_config won't get its variables.

@CryptomaticSquirrel
Copy link

OK... got this on my main branch as well.
It seems this happens consistently if you run ./install.sh twice. After a clean git clone. The first time install works nice. Second time it gives the before-mentioned error. ./reset.sh will fix it.

I'm guessing the pentest framework installed it before and you installed it a second time which caused the error.

@xorrior
Copy link
Contributor

xorrior commented Dec 26, 2017

@dan7ez @CryptomaticSquirrel @ThePirateWhoSmellsOfSunflowers there is an update in the dev branch to catch changes in the database after an upgrade. Probably won't catch all corner cases, but should catch most of them.
659b15f

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

4 participants