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

Run error empire #920

Closed
dan7ez opened this issue Jan 12, 2018 · 15 comments
Closed

Run error empire #920

dan7ez opened this issue Jan 12, 2018 · 15 comments

Comments

@dan7ez
Copy link

dan7ez commented Jan 12, 2018

Empire Version

Latest version

OS Information (Linux flavor, Python version)

kali rolling on nexus 9 tablet

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

Using the pwn pad from pwnie express, has kali rolling on it.

Note: i have tried already runnin ./reset.sh still get the same error

I git clone installed empire and run as root get the following error:

root@pwnpad:/home/pwnie/Empire# ./empire
Traceback (most recent call last):
File "./empire", line 13, in
from lib.common import empire, helpers
File "/home/pwnie/Empire/lib/common/empire.py", line 29, in
import helpers
File "/home/pwnie/Empire/lib/common/helpers.py", line 53, in
import netifaces
ImportError: No module named netifaces
root@pwnpad:/home/pwnie/Empire#

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

Any additional informationroot@pwnpad:/home/pwnie/Empire# ./empire

Traceback (most recent call last):
File "./empire", line 13, in
from lib.common import empire, helpers
File "/home/pwnie/Empire/lib/common/empire.py", line 29, in
import helpers
File "/home/pwnie/Empire/lib/common/helpers.py", line 53, in
import netifaces
ImportError: No module named netifaces
root@pwnpad:/home/pwnie/Empire#

@xorrior
Copy link
Contributor

xorrior commented Jan 12, 2018

@dan7ez Have you tried to install the netifaces python module????? If so, are there any errors????

@dan7ez
Copy link
Author

dan7ez commented Jan 12, 2018

Tried to reinstall again, by re-running ./install.sh and get these errors occuring during install:

root@localhost:/home/pwnie/Empire# ls
changelog Dockerfile lib/ plugins/ setup/
data/ empire* LICENSE README.md VERSION
root@localhost:/home/pwnie/Empire# ./empire
Traceback (most recent call last):
File "./empire", line 13, in
from lib.common import empire, helpers
File "/home/pwnie/Empire/lib/common/empire.py", line 29, in
import helpers
File "/home/pwnie/Empire/lib/common/helpers.py", line 53, in
import netifaces
ImportError: No module named netifaces
root@localhost:/home/pwnie/Empire# cd setup/
root@localhost:/home/pwnie/Empire/setup# ls
bomutils/ get-pip.py requirements.txt setup_database.py*
cert.sh* install.sh* reset.sh* xar-1.5.2/
root@localhost:/home/pwnie/Empire/setup# ./install.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
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

E: Package 'libssl1.0.0' has no installation candidate
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: urllib3 in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 1))
Requirement already satisfied: setuptools in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 2))
Requirement already satisfied: iptools in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 3))
Requirement already satisfied: pydispatcher in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 4))
Requirement already satisfied: flask in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 5))
Requirement already satisfied: macholib in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 6))
Requirement already satisfied: dropbox in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 7))
Requirement already satisfied: pyOpenSSL==17.2.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 8))
Requirement already satisfied: pyinstaller in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 9))
Requirement already satisfied: zlib_wrapper in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 10))
Collecting netifaces (from -r requirements.txt (line 11))
Using cached netifaces-0.10.6.tar.gz
Collecting M2Crypto (from -r requirements.txt (line 12))
Using cached M2Crypto-0.27.0.tar.gz
Requirement already satisfied: jinja2 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 13))
Requirement already satisfied: cryptography in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 14))
Collecting pyminifier==2.1 (from -r requirements.txt (line 15))
Requirement already satisfied: itsdangerous>=0.21 in /usr/local/lib/python2.7/dist-packages (from flask->-r requirements.txt (line 5))
Requirement already satisfied: Werkzeug>=0.7 in /usr/local/lib/python2.7/dist-packages (from flask->-r requirements.txt (line 5))
Requirement already satisfied: click>=2.0 in /usr/lib/python2.7/dist-packages (from flask->-r requirements.txt (line 5))
Requirement already satisfied: altgraph>=0.15 in /usr/local/lib/python2.7/dist-packages (from macholib->-r requirements.txt (line 6))
Requirement already satisfied: six>=1.3.0 in /usr/lib/python2.7/dist-packages (from dropbox->-r requirements.txt (line 7))
Requirement already satisfied: requests>=2.16.2 in /usr/lib/python2.7/dist-packages (from dropbox->-r requirements.txt (line 7))
Requirement already satisfied: dis3 in /usr/local/lib/python2.7/dist-packages (from pyinstaller->-r requirements.txt (line 9))
Requirement already satisfied: pefile>=2017.8.1 in /usr/lib/python2.7/dist-packages (from pyinstaller->-r requirements.txt (line 9))
Collecting typing (from M2Crypto->-r requirements.txt (line 12))
Using cached typing-3.6.2-py2-none-any.whl
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python2.7/dist-packages (from jinja2->-r requirements.txt (line 13))
Building wheels for collected packages: netifaces, M2Crypto
Running setup.py bdist_wheel for netifaces ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-MHj1fX/netifaces/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp_h9xMCpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_ext
checking for getifaddrs...found.
checking for getnameinfo...found.
checking for IPv6 socket IOCTLs...not found.
checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h netrose/rose.h linux/irda.h linux/atm.h linux/llc.h linux/tipc.h linux/dn.h.
checking whether struct sockaddr has a length field...no.
checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un rose ash ec ll atmpvc atmsvc dn irda llc.
checking for routing socket support...no.
checking for sysctl(CTL_NET...) support...no.
checking for netlink support...yes.
will use netlink to read routing table
building 'netifaces' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-XPdusH/python2.7-2.7.14=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DNETIFACES_VERSION=0.10.6 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_NETROSE_ROSE_H=1 -DHAVE_LINUX_IRDA_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_LINUX_DN_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ROSE=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_DN=1 -DHAVE_SOCKADDR_IRDA=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/usr/include/python2.7 -c netifaces.c -o build/temp.linux-aarch64-2.7/netifaces.o
netifaces.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


Failed building wheel for netifaces
Running setup.py clean for netifaces
Running setup.py bdist_wheel for M2Crypto ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-MHj1fX/M2Crypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmp4rOGyKpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
copying M2Crypto/ASN1.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/AuthCookie.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/BIO.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/BN.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/DH.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/DSA.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/EC.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/EVP.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/Engine.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/Err.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/RC4.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/RSA.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/Rand.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/SMIME.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/X509.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/init.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/callback.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/ftpslib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/httpslib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2crypto.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2urllib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2urllib2.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2xmlrpclib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/six.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/threading.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/util.py -> build/lib.linux-aarch64-2.7/M2Crypto
creating build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/PublicKey.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/RSA.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/init.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/constants.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/packet.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
creating build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Checker.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Cipher.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Connection.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Context.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/SSLServer.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Session.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/init.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/cb.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/timeout.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
running build_ext
building 'M2Crypto._m2crypto' extension
creating build/temp.linux-aarch64-2.7
creating build/temp.linux-aarch64-2.7/SWIG
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-XPdusH/python2.7-2.7.14=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -I/usr/lib/gcc/arm-linux-gnueabihf/7/include -I/usr/local/include -I/usr/lib/gcc/arm-linux-gnueabihf/7/include-fixed -I/usr/include/arm-linux-gnueabihf -I/usr/include -I/usr/include/openssl -I/tmp/pip-build-MHj1fX/M2Crypto/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-aarch64-2.7/SWIG/_m2crypto_wrap.o -Wno-deprecated-declarations -DTHREADING
SWIG/_m2crypto_wrap.c:134:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


Failed building wheel for M2Crypto
Running setup.py clean for M2Crypto
Failed to build netifaces M2Crypto
Installing collected packages: netifaces, typing, M2Crypto, pyminifier
Running setup.py install for netifaces ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-MHj1fX/netifaces/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-DuW_Bi-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
checking for getifaddrs...found.
checking for getnameinfo...found.
checking for IPv6 socket IOCTLs...not found.
checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h netrose/rose.h linux/irda.h linux/atm.h linux/llc.h linux/tipc.h linux/dn.h.
checking whether struct sockaddr has a length field...no.
checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un rose ash ec ll atmpvc atmsvc dn irda llc.
checking for routing socket support...no.
checking for sysctl(CTL_NET...) support...no.
checking for netlink support...yes.
will use netlink to read routing table
building 'netifaces' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-XPdusH/python2.7-2.7.14=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DNETIFACES_VERSION=0.10.6 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_NETROSE_ROSE_H=1 -DHAVE_LINUX_IRDA_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_LINUX_DN_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ROSE=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_DN=1 -DHAVE_SOCKADDR_IRDA=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/usr/include/python2.7 -c netifaces.c -o build/temp.linux-aarch64-2.7/netifaces.o
netifaces.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-MHj1fX/netifaces/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-DuW_Bi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-MHj1fX/netifaces/
DISTRIB_ID=Kali
DISTRIB_RELEASE=kali-rolling
DISTRIB_CODENAME=kali-rolling
DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libicu55
--2018-01-12 01:04:06-- http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb
Resolving security.debian.org (security.debian.org)... 150.203.164.61
Connecting to security.debian.org (security.debian.org)|150.203.164.61|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-12 01:04:06 ERROR 404: Not Found.

dpkg: error: cannot access archive 'libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb': No such file or directory
dpkg: error: cannot access archive 'powershell_6.0.0-rc.2-1.ubuntu.16.04_amd64.deb': No such file or directory
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... 64
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... no
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2005-08-03, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
and
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to config-patches@gnu.org in order to provide the needed
information to handle your system.

config.guess timestamp = 2005-08-03

uname -m = aarch64
uname -r = 3.10.40-gb058c3b-dirty
uname -s = Linux
uname -v = #1 SMP PREEMPT Wed Jun 29 11:01:31 EDT 2016

/usr/bin/uname -p =
/bin/uname -X =

hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =

UNAME_MACHINE = aarch64
UNAME_RELEASE = 3.10.40-gb058c3b-dirty
UNAME_SYSTEM = Linux
UNAME_VERSION = #1 SMP PREEMPT Wed Jun 29 11:01:31 EDT 2016
configure: error: cannot guess build type; you must specify one
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:
Traceback (most recent call last):
File "./setup_database.py", line 120, in
)''')
sqlite3.OperationalError: table "agents" already exists

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

[*] Setup complete!

root@localhost:/home/pwnie/Empire/setup# cd ..
root@localhost:/home/pwnie/Empire#

@DakotaNelson
Copy link
Contributor

DakotaNelson commented Jan 13, 2018

pip install netifaces will install the netifaces package and make it available for use (you might need sudo)

@dan7ez
Copy link
Author

dan7ez commented Jan 13, 2018

tried to pip install netifaces

But get this error?

root@localhost:/home/pwnie# pip install netifaces
Collecting netifaces
Using cached netifaces-0.10.6.tar.gz
Building wheels for collected packages: netifaces
Running setup.py bdist_wheel for netifaces ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-VV_ij_/netifaces/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpFPz5klpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_ext
checking for getifaddrs...found.
checking for getnameinfo...found.
checking for IPv6 socket IOCTLs...not found.
checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h netrose/rose.h linux/irda.h linux/atm.h linux/llc.h linux/tipc.h linux/dn.h.
checking whether struct sockaddr has a length field...no.
checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un rose ash ec ll atmpvc atmsvc dn irda llc.
checking for routing socket support...no.
checking for sysctl(CTL_NET...) support...no.
checking for netlink support...yes.
will use netlink to read routing table
building 'netifaces' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-XPdusH/python2.7-2.7.14=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DNETIFACES_VERSION=0.10.6 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_NETROSE_ROSE_H=1 -DHAVE_LINUX_IRDA_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_LINUX_DN_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ROSE=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_DN=1 -DHAVE_SOCKADDR_IRDA=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/usr/include/python2.7 -c netifaces.c -o build/temp.linux-aarch64-2.7/netifaces.o
netifaces.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


Failed building wheel for netifaces
Running setup.py clean for netifaces
Failed to build netifaces
Installing collected packages: netifaces
Running setup.py install for netifaces ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-VV_ij_/netifaces/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-pl9lqT-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
checking for getifaddrs...found.
checking for getnameinfo...found.
checking for IPv6 socket IOCTLs...not found.
checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h netrose/rose.h linux/irda.h linux/atm.h linux/llc.h linux/tipc.h linux/dn.h.
checking whether struct sockaddr has a length field...no.
checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un rose ash ec ll atmpvc atmsvc dn irda llc.
checking for routing socket support...no.
checking for sysctl(CTL_NET...) support...no.
checking for netlink support...yes.
will use netlink to read routing table
building 'netifaces' extension
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-XPdusH/python2.7-2.7.14=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DNETIFACES_VERSION=0.10.6 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_NETROSE_ROSE_H=1 -DHAVE_LINUX_IRDA_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_LINUX_DN_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ROSE=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_DN=1 -DHAVE_SOCKADDR_IRDA=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/usr/include/python2.7 -c netifaces.c -o build/temp.linux-aarch64-2.7/netifaces.o
netifaces.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-VV_ij_/netifaces/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-pl9lqT-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-VV_ij_/netifaces/

@DakotaNelson
Copy link
Contributor

You'll want to install python-dev (I think) using apt. See here for the full answer: https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory

@dan7ez
Copy link
Author

dan7ez commented Jan 13, 2018

@DakotaNelson ok that seems to have helped i think! thank you!

I installed python-dev and netifaces successfully

Now i only get this error

root@localhost:/home/pwnie/Empire# ./empire
Traceback (most recent call last):
File "./empire", line 13, in
from lib.common import empire, helpers
File "/home/pwnie/Empire/lib/common/empire.py", line 31, in
import agents
File "/home/pwnie/Empire/lib/common/agents.py", line 68, in
import encryption
File "/home/pwnie/Empire/lib/common/encryption.py", line 27, in
import M2Crypto
ImportError: No module named M2Crypto

@DakotaNelson
Copy link
Contributor

Repeat the process of installing netifaces with m2crypto... and probably all the other dependencies too.

When you tried to run install.sh, you didn't have python-dev installed, so it failed, You're probably going to need to re-run it.

@dan7ez
Copy link
Author

dan7ez commented Jan 14, 2018

I tried to install m2crypto

But get this error

root@localhost:/opt/pwnix/captures# pip install m2crypto
Collecting m2crypto
Using cached M2Crypto-0.27.0.tar.gz
Requirement already satisfied: typing in /usr/local/lib/python2.7/dist-packages (from m2crypto)
Building wheels for collected packages: m2crypto
Running setup.py bdist_wheel for m2crypto ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-64po9J/m2crypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmplMkJzFpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
copying M2Crypto/ASN1.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/AuthCookie.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/BIO.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/BN.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/DH.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/DSA.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/EC.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/EVP.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/Engine.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/Err.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/RC4.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/RSA.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/Rand.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/SMIME.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/X509.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/init.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/callback.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/ftpslib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/httpslib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2crypto.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2urllib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2urllib2.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2xmlrpclib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/six.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/threading.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/util.py -> build/lib.linux-aarch64-2.7/M2Crypto
creating build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/PublicKey.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/RSA.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/init.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/constants.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/packet.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
creating build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Checker.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Cipher.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Connection.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Context.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/SSLServer.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Session.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/init.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/cb.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/timeout.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
running build_ext
building 'M2Crypto._m2crypto' extension
creating build/temp.linux-aarch64-2.7
creating build/temp.linux-aarch64-2.7/SWIG
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-XPdusH/python2.7-2.7.14=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -I/usr/lib/gcc/arm-linux-gnueabihf/7/include -I/usr/local/include -I/usr/lib/gcc/arm-linux-gnueabihf/7/include-fixed -I/usr/include/arm-linux-gnueabihf -I/usr/include -I/usr/include/openssl -I/tmp/pip-build-64po9J/m2crypto/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-aarch64-2.7/SWIG/_m2crypto_wrap.o -Wno-deprecated-declarations -DTHREADING
SWIG/_m2crypto_wrap.c:3554:10: fatal error: openssl/err.h: No such file or directory
#include <openssl/err.h>
^~~~~~~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


Failed building wheel for m2crypto
Running setup.py clean for m2crypto
Failed to build m2crypto
Installing collected packages: m2crypto
Running setup.py install for m2crypto ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-64po9J/m2crypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-56C9Yy-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-2.7
creating build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/ASN1.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/AuthCookie.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/BIO.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/BN.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/DH.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/DSA.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/EC.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/EVP.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/Engine.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/Err.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/RC4.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/RSA.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/Rand.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/SMIME.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/X509.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/init.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/callback.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/ftpslib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/httpslib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2crypto.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2urllib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2urllib2.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/m2xmlrpclib.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/six.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/threading.py -> build/lib.linux-aarch64-2.7/M2Crypto
copying M2Crypto/util.py -> build/lib.linux-aarch64-2.7/M2Crypto
creating build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/PublicKey.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/RSA.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/init.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/constants.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
copying M2Crypto/PGP/packet.py -> build/lib.linux-aarch64-2.7/M2Crypto/PGP
creating build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Checker.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Cipher.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Connection.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Context.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/SSLServer.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/Session.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/init.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/cb.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
copying M2Crypto/SSL/timeout.py -> build/lib.linux-aarch64-2.7/M2Crypto/SSL
running build_ext
building 'M2Crypto._m2crypto' extension
creating build/temp.linux-aarch64-2.7
creating build/temp.linux-aarch64-2.7/SWIG
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-XPdusH/python2.7-2.7.14=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -I/usr/lib/gcc/arm-linux-gnueabihf/7/include -I/usr/local/include -I/usr/lib/gcc/arm-linux-gnueabihf/7/include-fixed -I/usr/include/arm-linux-gnueabihf -I/usr/include -I/usr/include/openssl -I/tmp/pip-build-64po9J/m2crypto/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-aarch64-2.7/SWIG/_m2crypto_wrap.o -Wno-deprecated-declarations -DTHREADING
SWIG/_m2crypto_wrap.c:3554:10: fatal error: openssl/err.h: No such file or directory
#include <openssl/err.h>
^~~~~~~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-64po9J/m2crypto/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-56C9Yy-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-64po9J/m2crypto/

@dan7ez
Copy link
Author

dan7ez commented Jan 15, 2018

@LIZySARA tried the steps, now get this error

root@localhost:/home/pwnie/Empire# ./empire
[] Loading stagers from: /home/pwnie/Empire//lib/stagers/
[
] Loading modules from: /home/pwnie/Empire//lib/modules/
[*] Loading listeners from: /home/pwnie/Empire//lib/listeners/
Traceback (most recent call last):
File "./empire", line 1393, in
main = empire.MainMenu(args=args)
File "/home/pwnie/Empire/lib/common/empire.py", line 103, in init
self.listeners = listeners.Listeners(self, args=args)
File "/home/pwnie/Empire/lib/common/listeners.py", line 35, in init
self.load_listeners()
File "/home/pwnie/Empire/lib/common/listeners.py", line 60, in load_listeners
self.loadedListeners[listenerName] = imp.load_source(listenerName, filePath).Listener(self.mainMenu, [])
File "/home/pwnie/Empire//lib/listeners/dbx.py", line 18, in
from lib.common import obfuscation
File "/home/pwnie/Empire/lib/common/obfuscation.py", line 10, in
from pyminifier import token_utils as py_tokenizer
ImportError: No module named pyminifier
root@localhost:/home/pwnie/Empire#

@DakotaNelson
Copy link
Contributor

Same problem, the python package pyminfier didn't install because the dependencies failed. You need to pip install pyminifier or, better yet, install all the dependencies by re-running install.sh. This is the same problem as before but with a different package.

@dan7ez
Copy link
Author

dan7ez commented Jan 15, 2018

yep i re-ran the install.sh

And now i get this error?

root@localhost:/home/pwnie/Empire# ./empire
Traceback (most recent call last):
File "./empire", line 1393, in
main = empire.MainMenu(args=args)
File "/home/pwnie/Empire/lib/common/empire.py", line 84, 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
root@localhost:/home/pwnie/Empire#

@dan7ez
Copy link
Author

dan7ez commented Jan 15, 2018

@LIZySARA That ./reset.sh worked perfect! Excellent! all fixed. Thank you!
@DakotaNelson thank you also!

@DakotaNelson
Copy link
Contributor

DakotaNelson commented Jan 15, 2018 via email

@xorrior xorrior closed this as completed Jan 16, 2018
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
@DakotaNelson @xorrior @dan7ez and others