EmpireProject / Empire

Empire is a PowerShell and Python post-exploitation agent.
http://www.powershellempire.com/
BSD 3-Clause "New" or "Revised" License
7.39k stars 2.81k forks source link

ImportError: No module named pydispatch #1310

Closed mesnuuu closed 5 years ago

mesnuuu commented 5 years ago

Empire Version

2.3.0

OS Information (Linux flavor, Python version)

kali linux 2018.4

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 "/opt/Empire/lib/common/empire.py", line 14, in from pydispatch import dispatcher ImportError: No module named pydispatch

mesnuuu commented 5 years ago

now this error :

Traceback (most recent call last): File "./empire", line 1422, in <module> main = empire.MainMenu(args=args) File "/opt/Empire/lib/common/empire.py", line 92, 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

mesnuuu commented 5 years ago

after ./reset.sh

Traceback (most recent call last): File "./empire", line 1422, in <module> main = empire.MainMenu(args=args) File "/opt/Empire/lib/common/empire.py", line 107, in __init__ self.stagers = stagers.Stagers(self, args=args) File "/opt/Empire/lib/common/stagers.py", line 43, in __init__ self.load_stagers() File "/opt/Empire/lib/common/stagers.py", line 68, in load_stagers self.stagers[stagerName] = imp.load_source(stagerName, filePath).Stager(self.mainMenu, []) File "/opt/Empire//lib/stagers/windows/backdoorLnkMacro.py", line 2, in <module> from xlutils.copy import copy ImportError: No module named xlutils.copy

baegmon commented 5 years ago

Had the same problem, "ImportError: No module named pydispatch" is due to an issue with the latest version of pip and pyinstaller.

Clone the dev branch and do the usual setup: git clone -b dev https://github.com/EmpireProject/Empire

Tested on Kali 2018.4

mesnuuu commented 5 years ago

Had the same problem, "ImportError: No module named pydispatch" is due to an issue with the latest version of pip and pyinstaller.

Clone the dev branch and do the usual setup: git clone -b dev https://github.com/EmpireProject/Empire

Tested on Kali 2018.4 thanks for your reply . should i delete previous folder of Empire or i have to uninstall first ? and what is correct procedure of doing so ?

kazoo123 commented 5 years ago

I'm having same issue.. Do you get to fix your own. I have tried the above command mentioned above but still same error. Please enlighten me on how you do it

baegmon commented 5 years ago

I just removed the previous installation and cloned the dev branch.

Maybe try removing all installations, downgrading pip to 18.1, install all modules via pip (pyinstaller, pydispatch etc) and then run the setup command again.

mesnuuu commented 5 years ago

I just removed the previous installation and cloned the dev branch.

Maybe try removing all installations, downgrading pip to 18.1, install all modules via pip (pyinstaller, pydispatch etc) and then run the setup command again.

1- i removed previous installation ( deleted empire folder ) . is it correct ? 2- when i cloned dev bracnh , i did not see any setup.sh or install.sh file in it . so unable to proceed further .

antonytuff commented 5 years ago

i have been having this error any help?? traceback (most recent call last): File "./empire", line 13, in from lib.common import empire, helpers File "/root/Empire/lib/common/init.py", line 8, in import helpers File "/root/Empire/lib/common/helpers.py", line 50, in import iptools ImportError: No module named iptools

christophetd commented 5 years ago

Same issue here. Will use the Docker image for now

qwertyMu commented 5 years ago

I solved it by cloning the dev branch as described above, then cd into setup and running ./install.sh

mr64bit commented 5 years ago

@mesnuuu, clone Empire like normal, then do git checkout dev. Run setup/install.sh, and you should be good. (may need to downgrade pip to 18.1)

mesnuuu commented 5 years ago

@mesnuuu, clone Empire like normal, then do git checkout dev. Run setup/install.sh, and you should be good. (may need to downgrade pip to 18.1)

thanks a lot . it worked

Allevon412 commented 5 years ago

@mesnuuu, clone Empire like normal, then do git checkout dev. Run setup/install.sh, and you should be good. (may need to downgrade pip to 18.1)

This did not work for me... anyone else have a suggestion? Also how do yo uninstall empire? Do you just delete all the files or is there an actual uninstall command?

MMquant commented 5 years ago

On Linux kali 4.19.0-kali5-amd64 fully upgraded on 16-07-2019 following works:

# pip install --user --upgrade pip==18.1
# git clone -b dev https://github.com/EmpireProject/Empire.git
# cd Empire/setup && ./install.sh
Kruxinator commented 4 years ago

Use

apt install python3-pydispatch

instead of pip3 install pydispatch. Worked for me!