- This topic has 6 replies, 2 voices, and was last updated 2 years, 2 months ago by Diego Pérez.
- AuthorPosts
- September 26, 2022 at 1:20 am #66710hmbabuParticipant
Hi, I am trying to install Empire based an article “https://zsecurity.org/forums/topic/error-installing-empire/” But I got bellow error, during installation, it throws python 2.7
dpkg: error: cannot access archive ‘libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb’: No such file or directory
E: Package ‘python-dev’ has no installation candidate
E: Package ‘python-m2crypto’ has no installation candidate
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (20.3.4)
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.Getting requirements to build wheel … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python /usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp5y7pE4
cwd: /tmp/pip-install-X6vK0R/pyinstaller
Complete output (4 lines):
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py”, line 16, in <module>
from importlib import import_module
ImportError: No module named importlib
—————————————-
ERROR: Command errored out with exit status 1: /usr/bin/python /usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp5y7pE4 Check the logs for full command output.src/lsbom.cpp:70:10: error: reference to ‘data’ is ambiguous
70 | return data + addr;File “./setup_database.py”, line 120, in <module>
)”’)
sqlite3.OperationalError: table “agents” already exists[*] Certificate written to ../data/empire-chain.pem
[*] Private key written to ../data/empire-priv.key[*] Setup complete!
root@kali:/opt/Empire/setup# cd ..
root@kali:/opt/Empire# ./empire
Traceback (most recent call last):
File “./empire”, line 5, in <module>
from flask import Flask, request, jsonify, make_response, abort, url_for
ImportError: No module named flask
root@kali:/opt/Empire#May I know is it related to Python version, if yes can I upgrade python and how to do that. I am not sure what I am missing? I followed ,
Also I tried one of your answers,
==========================================
Hi!
The easiest would be to try this solution in a fresh custom kali:cd /opt
git clone https://github.com/BC-SECURITY/Empire.git
cd Empire
./setup/install.sh
./empireHope it helps!
Diego
============================================
Still gettingE: Failed to fetch http://http.kali.org/kali/pool/main/p/python3-stdlib-extensions/python3-distutils_3.10.5-2_all.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/p/python3-stdlib-extensions/python3-lib2to3_3.10.5-2_all.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/samba/samba-vfs-modules_4.16.4%2bdfsg-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/samba/samba-dsdb-modules_4.16.4%2bdfsg-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/samba/samba_4.16.4%2bdfsg-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/samba/python3-samba_4.16.4%2bdfsg-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/samba/libsmbclient_4.16.4%2bdfsg-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/samba/samba-common-bin_4.16.4%2bdfsg-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/samba/smbclient_4.16.4%2bdfsg-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/samba/samba-common_4.16.4%2bdfsg-2_all.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/samba/libwbclient0_4.16.4%2bdfsg-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/s/samba/samba-libs_4.16.4%2bdfsg-2_amd64.deb 404 Not Found [IP: 192.99.200.113 80]
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
root@kali:/opt/Empire#September 26, 2022 at 5:34 pm #66719Diego PérezModeratorHi!
Which exact command did you use to install empire?
Also it seems there is some network issue as well, you kali can’t reach the needed repositories, this can be caused by the firewall or antivirus in your host machine, so disable both of them first.Greetings!
DiegoOctober 21, 2022 at 3:33 pm #67934hmbabuParticipantHi Diego,
I tried the below command,
cd /opt
git clone https://github.com/BC-SECURITY/Empire.git
cd Empire
./setup/install.sh
./empire
But no luck.October 21, 2022 at 5:18 pm #67937Diego PérezModeratorHi!
Yeah, that won’t work as expected. It will be better to follow the instructions as in the course, then empire will be installed successfully.Greetings!
DiegoOctober 21, 2022 at 5:22 pm #67940hmbabuParticipantIf I follow the course instructions I am ending with below error,
oot@kali:/opt# apt-get update
Hit:1 http://mirror.aktkn.sg/kali kali-rolling InRelease
Hit:2 http://mirror.aktkn.sg/kali kali-last-snapshot InRelease
Reading package lists… Done
root@kali:/opt# apt-get install powershell-empire
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:The following packages have unmet dependencies:
libc6-dev : Breaks: libglib2.0-dev (<= 2.72.3-1) but 2.70.4-1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@kali:/opt#October 22, 2022 at 2:45 am #67957hmbabuParticipantHi Diego,
The powershell-empire installation successful after newer version, v1.0.11 installed.Thanks
BabuOctober 22, 2022 at 4:38 pm #67967Diego PérezModeratorHi!
Glad you got it!
Diego - AuthorPosts
- You must be logged in to reply to this topic.