ERROR during opening EMPIRE

Traceback (most recent call last):
File “./empire”, line 5, in
from flask import Flask, request, jsonify, make_response, abort, url_for
ImportError: No module named flask

ANY SOLUTION

As per the error, Flask is not installed. To install flask, just do pip install Flask

Now showing this

h

Any help???

I think no dependencies are installed. Do you see any requirements.txt file with the tool you are running? I am sure the dependencies thing was told for running this tool. Also, which exact lecture and course are you on?

I have installed the requirements.txt also, still this problem persists

sudo ./install.sh
Unknown distro - Debian/Ubuntu Fallback
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'python-dev-is-python2' instead of 'python-dev'
Package libssl1.0.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python-m2crypto is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python3-pip

E: Package 'python-m2crypto' has no installation candidate
E: Package 'python-pip' has no installation candidate
E: Package 'libssl1.0.0' has no installation candidate
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (21.2.4)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 1)) (1.22)
Requirement already satisfied: requests==2.18.4 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 2)) (2.18.4)
Requirement already satisfied: setuptools in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 3)) (58.1.0)
Requirement already satisfied: iptools in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 4)) (0.7.0)
Requirement already satisfied: pydispatcher in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 5)) (2.0.5)
Requirement already satisfied: flask in /usr/lib/python3/dist-packages (from -r requirements.txt (line 6)) (1.1.2)
Requirement already satisfied: macholib in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 7)) (1.15.2)
Requirement already satisfied: dropbox in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 8)) (11.20.0)
Requirement already satisfied: pyOpenSSL==17.2.0 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 9)) (17.2.0)
Requirement already satisfied: pyinstaller in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 10)) (4.5.1)
Requirement already satisfied: zlib_wrapper in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 11)) (0.1.3)
Requirement already satisfied: netifaces in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 12)) (0.11.0)
Requirement already satisfied: M2Crypto in /usr/lib/python3/dist-packages (from -r requirements.txt (line 13)) (0.37.1)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 14)) (3.0.1)
Requirement already satisfied: cryptography in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 15)) (3.4.8)
Requirement already satisfied: pyminifier==2.1 in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 16)) (2.1)
Requirement already satisfied: xlutils in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 17)) (2.0.0)
Requirement already satisfied: pycrypto in /usr/local/lib/python3.9/dist-packages (from -r requirements.txt (line 18)) (2.6.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests==2.18.4->-r requirements.txt (line 2)) (2020.6.20)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.9/dist-packages (from requests==2.18.4->-r requirements.txt (line 2)) (3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.9/dist-packages (from requests==2.18.4->-r requirements.txt (line 2)) (2.6)
Requirement already satisfied: six>=1.5.2 in /usr/lib/python3/dist-packages (from pyOpenSSL==17.2.0->-r requirements.txt (line 9)) (1.15.0)
Requirement already satisfied: altgraph>=0.15 in /usr/local/lib/python3.9/dist-packages (from macholib->-r requirements.txt (line 7)) (0.17.2)
Requirement already satisfied: stone>=2.* in /usr/local/lib/python3.9/dist-packages (from dropbox->-r requirements.txt (line 8)) (3.2.1)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in /usr/local/lib/python3.9/dist-packages (from pyinstaller->-r requirements.txt (line 10)) (2021.3)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-packages (from jinja2->-r requirements.txt (line 14)) (2.0.1)
Requirement already satisfied: cffi>=1.12 in /usr/lib/python3/dist-packages (from cryptography->-r requirements.txt (line 15)) (1.14.5)
Requirement already satisfied: xlwt>=0.7.4 in /usr/local/lib/python3.9/dist-packages (from xlutils->-r requirements.txt (line 17)) (1.3.0)
Requirement already satisfied: xlrd>=0.7.2 in /usr/local/lib/python3.9/dist-packages (from xlutils->-r requirements.txt (line 17)) (2.0.1)
Requirement already satisfied: ply>=3.4 in /usr/lib/python3/dist-packages (from stone>=2.*->dropbox->-r requirements.txt (line 8)) (3.11)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
ls: cannot access '/opt/microsoft/powershell/*/DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY': No such file or directory
xar-1.5.2/
xar-1.5.2/lib/
xar-1.5.2/lib/fbsdattr.c
xar-1.5.2/lib/filetree.h
xar-1.5.2/lib/stat.c
xar-1.5.2/lib/hash.c
xar-1.5.2/lib/ext2.h
xar-1.5.2/lib/darwinattr.h
xar-1.5.2/lib/libxar.la.in.in
xar-1.5.2/lib/archive.c
xar-1.5.2/lib/subdoc.c
xar-1.5.2/lib/script.c
xar-1.5.2/lib/script.h
xar-1.5.2/lib/arcmod.c
xar-1.5.2/lib/arcmod.h
xar-1.5.2/lib/b64.c
xar-1.5.2/lib/subdoc.h
xar-1.5.2/lib/filetree.c
xar-1.5.2/lib/bzxar.c
xar-1.5.2/lib/ext2.c
xar-1.5.2/lib/fbsdattr.h
xar-1.5.2/lib/linuxattr.c
xar-1.5.2/lib/macho.c
xar-1.5.2/lib/ea.h
xar-1.5.2/lib/appledouble.h
xar-1.5.2/lib/darwinattr.c
xar-1.5.2/lib/util.h
xar-1.5.2/lib/util.c
xar-1.5.2/lib/hash.h
xar-1.5.2/lib/zxar.c
xar-1.5.2/lib/data.h
xar-1.5.2/lib/zxar.h
xar-1.5.2/lib/signature.h
xar-1.5.2/lib/bzxar.h
xar-1.5.2/lib/macho.h
xar-1.5.2/lib/signature.c
xar-1.5.2/lib/b64.h
xar-1.5.2/lib/err.c
xar-1.5.2/lib/asprintf.h
xar-1.5.2/lib/stat.h
xar-1.5.2/lib/io.h
xar-1.5.2/lib/linuxattr.h
xar-1.5.2/lib/io.c
xar-1.5.2/lib/ea.c
xar-1.5.2/lib/archive.h
xar-1.5.2/lib/data.c
xar-1.5.2/lib/Makefile.inc.in
xar-1.5.2/cfgoutputs.stamp.in
xar-1.5.2/cfghdrs.stamp.in
xar-1.5.2/config.guess
xar-1.5.2/INSTALL
xar-1.5.2/include/
xar-1.5.2/include/config.h.in
xar-1.5.2/include/xar.h.in
xar-1.5.2/configure
xar-1.5.2/test/
xar-1.5.2/test/checksums
xar-1.5.2/test/functions
xar-1.5.2/test/attr
xar-1.5.2/test/data.xsl
xar-1.5.2/test/buffer.c
xar-1.5.2/test/compression
xar-1.5.2/test/heap1.xsl
xar-1.5.2/test/data
xar-1.5.2/test/heap
xar-1.5.2/test/hardlink
xar-1.5.2/test/validate.c
xar-1.5.2/LICENSE
xar-1.5.2/Makefile.in
xar-1.5.2/src/
xar-1.5.2/src/xar.1
xar-1.5.2/src/xar.c
xar-1.5.2/src/Makefile.inc.in
xar-1.5.2/TODO
xar-1.5.2/configure.ac
xar-1.5.2/xar.spec.in
xar-1.5.2/Mk/
xar-1.5.2/config.sub
xar-1.5.2/install-sh
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ld... /usr/bin/ld
checking for ar... /usr/bin/ar
checking for ranlib... /usr/bin/ranlib
checking for autoconf... /usr/bin/autoconf
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ext2fs/ext2_fs.h usability... no
checking ext2fs/ext2_fs.h presence... no
checking for ext2fs/ext2_fs.h... no
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/xattr.h usability... yes
checking sys/xattr.h presence... yes
checking for sys/xattr.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/extattr.h usability... no
checking sys/extattr.h presence... no
checking for sys/extattr.h... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking for lgetxattr... yes
checking for lsetxattr... yes
checking for getxattr... yes
checking for setxattr... yes
checking for getattrlist... no
checking for setattrlist... no
checking for lchmod... no
checking for lchown... yes
checking for chflags... no
checking for statvfs... yes
checking for statfs... yes
checking for strmode... no
checking for struct statfs.f_fstypename... no
checking for struct statvfs.f_fstypename... no
checking for struct stat.st_flags... no
checking for uid_t... yes
checking size of uid_t... 4
checking for gid_t... yes
checking size of gid_t... 4
checking for ino_t... yes
checking size of ino_t... 8
checking for dev_t... yes
checking size of dev_t... 8
checking for acl_get_file in -lacl... no
checking for asprintf... yes
checking for xml2-config... no
configure: error: Cannot configure without xml2-config
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
fatal: destination path 'bomutils' already exists and is not an empty directory.
make: Nothing to be done for 'all'.
install -d /usr/bin
install -d /usr/share/man/man1
install -m 0755 build/bin/mkbom build/bin/dumpbom build/bin/lsbom build/bin/ls4mkbom /usr/bin
install -m 0644 build/man/mkbom.1.gz build/man/dumpbom.1.gz build/man/lsbom.1.gz build/man/ls4mkbom.1.gz /usr/share/man/man1
install -d /usr/bin
install -d /usr/share/man/man1
install -m 0755 build/bin/mkbom build/bin/dumpbom build/bin/lsbom build/bin/ls4mkbom /usr/bin
install -m 0644 build/man/mkbom.1.gz build/man/dumpbom.1.gz build/man/lsbom.1.gz build/man/ls4mkbom.1.gz /usr/share/man/man1

 [>] Enter server negotiation password, enter for random generation: *******

 [*] Database setup completed!


 [*] Certificate written to ../data/empire-chain.pem
 [*] Private key written to ../data/empire-priv.key


 [*] Setup complete!

This is after running setup.sh
also ran

sudo apt install python3-m2crypto
sudo apt install python3-pip
sudo apt install ssllib1.1

Help needed!!

Try running pip without sudo. From the errors, it looks like pip and python versions are conflicting. If nothing works, you may have to uninstall python from your system and install it fresh. To completely remove python, just google removing python from Parrot OS.