Closed usmarine2141 closed 6 years ago
Version of OpenSSL that was installed i assume when things got broke
openssl is already the newest version (1.1.0g-2).
this is what is in File "/usr/local/lib/python2.7/dist-packages/OpenSSL/init.py",
""" pyOpenSSL - A simple wrapper around the OpenSSL library """
from OpenSSL import rand, crypto, SSL from OpenSSL.version import version
all = [ 'rand', 'crypto', 'SSL', 'tsafe', 'version']
this is what is in my ssl.py line 118
SSL_ST_INIT = _lib.SSL_ST_INIT
I suspect this is the cause for a number of things breaking.
When i try to just re-install
└──╼ $sudo ./install.sh --2017-12-09 09:46:32-- https://bootstrap.pypa.io/get-pip.py Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.112.175 Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.112.175|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1595408 (1.5M) [text/x-python] get-pip.py: Permission denied
Cannot write to ‘get-pip.py’ (Permission denied).
python: can't open file 'get-pip.py': [Errno 2] No such file or directory
Unknown distro - Debian/Ubuntu Fallback
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
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
Hit:3 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 https://download.sublimetext.com apt/stable/ InRelease
Hit:5 https://packages.microsoft.com/ubuntu/14.04/prod trusty InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
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:
powershell : Depends: libssl1.0.0 but it is not installable
Depends: libicu52 but it is not installable
E: Unable to correct problems, you have held broken packages.
rm: cannot remove '/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... yes
checking for asprintf... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml >= 2.6.11... 2.9.4
checking libxml/xmlwriter.h usability... yes
checking libxml/xmlwriter.h presence... yes
checking for libxml/xmlwriter.h... yes
checking openssl/evp.h usability... yes
checking openssl/evp.h presence... yes
checking for openssl/evp.h... yes
checking for OpenSSL_add_all_ciphers in -lcrypto... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for deflate in -lz... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for BZ2_bzCompress in -lbz2... yes
configure: creating ./config.status
config.status: creating cfgoutputs.stamp
config.status: creating Makefile
config.status: creating include/xar.h
config.status: creating lib/Makefile.inc
config.status: creating lib/libxar.la.in
config.status: creating src/Makefile.inc
config.status: creating xar.spec
config.status: creating cfghdrs.stamp
config.status: cfghdrs.stamp is unchanged
config.status: creating include/config.h
config.status: include/config.h is unchanged
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/archive.c -o lib/archive.o
lib/archive.c: In function ‘xar_close’:
lib/archive.c:310:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
int ret, retval = 0;
^~~
lib/archive.c: In function ‘xar_unserialize’:
lib/archive.c:1312:12: warning: variable ‘noattr’ set but not used [-Wunused-but-set-variable]
int type, noattr, ret;
^~
lib/archive.c:1311:33: warning: variable ‘uri’ set but not used [-Wunused-but-set-variable]
const xmlChar name, prefix, uri;
^~~
lib/archive.c:1311:24: warning: variable ‘prefix’ set but not used [-Wunused-but-set-variable]
const xmlChar name, prefix, *uri;
^~
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/arcmod.c -o lib/arcmod.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/bzxar.c -o lib/bzxar.o
lib/bzxar.c: In function ‘xar_bzip_toheap_in’:
lib/bzxar.c:172:6: warning: variable ‘r’ set but not used [-Wunused-but-set-variable]
int r;
^
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/darwinattr.c -o lib/darwinattr.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/data.c -o lib/data.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/ea.c -o lib/ea.o
lib/ea.c: In function ‘xar_ea_new’:
lib/ea.c:42:78: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
((char **)&XAR_ATTR(XAR_PROP(XAR_EA(ret)->prop)->attrs)->value, "%lld", XAR_FILE(f)->nexteaid++);
%ld
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/err.c -o lib/err.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/ext2.c -o lib/ext2.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/fbsdattr.c -o lib/fbsdattr.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/filetree.c -o lib/filetree.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/io.c -o lib/io.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/linuxattr.c -o lib/linuxattr.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/hash.c -o lib/hash.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/signature.c -o lib/signature.o
lib/signature.c: In function ‘xar_signature_serialize’:
lib/signature.c:384:44: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int32_t {aka int}’ [-Wformat=]
xmlTextWriterWriteFormatString(writer, "%ld", (XAR_SIGNATURE(sig)->len));
~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~
%d
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/stat.c -o lib/stat.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/subdoc.c -o lib/subdoc.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/util.c -o lib/util.o
lib/util.c: In function ‘xar_makedev’:
lib/util.c:151:13: warning: In the GNU C Library, "makedev" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "makedev", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"makedev", you should undefine it after including <sys/types.h>.
return makedev(major, minor);
^~~~~~~~~~~~~~~~~~
lib/util.c: In function ‘xar_devmake’:
lib/util.c:160:13: warning: In the GNU C Library, "major" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "major", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"major", you should undefine it after including <sys/types.h>.
*out_major = major(dev);
^~~~~~~~~~~~~
lib/util.c:165:13: warning: In the GNU C Library, "minor" is defined
by <sys/sysmacros.h>. For historical compatibility, it is
currently defined by <sys/types.h> as well, but we plan to
remove this soon. To use "minor", include <sys/sysmacros.h>
directly. If you did not intend to use a system-defined macro
"minor", you should undefine it after including <sys/types.h>.
*out_minor = minor(dev);
^~~~~~~~~~~~~
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/zxar.c -o lib/zxar.o
lib/zxar.c: In function ‘xar_gzip_toheap_in’:
lib/zxar.c:161:6: warning: variable ‘r’ set but not used [-Wunused-but-set-variable]
int r;
^
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/script.c -o lib/script.o
gcc -Wall -g -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/macho.c -o lib/macho.o
gcc -shared -Wl,-soname,libxar.so.1 -o lib/librxar.so.1 lib/archive.o lib/arcmod.o lib/b64.o lib/bzxar.o lib/darwinattr.o lib/data.o lib/ea.o lib/err.o lib/ext2.o lib/fbsdattr.o lib/filetree.o lib/io.o lib/linuxattr.o lib/hash.o lib/signature.o lib/stat.o lib/subdoc.o lib/util.o lib/zxar.o lib/script.o lib/macho.o -lbz2 -lz -lcrypto -lacl -lxml2
rm -f lib/librxar.so
ln -s librxar.so.1 lib/librxar.so
gcc -shared -Wl,-soname,libxar.so.1 -o lib/libxar.so.1 lib/archive.o lib/arcmod.o lib/b64.o lib/bzxar.o lib/darwinattr.o lib/data.o lib/ea.o lib/err.o lib/ext2.o lib/fbsdattr.o lib/filetree.o lib/io.o lib/linuxattr.o lib/hash.o lib/signature.o lib/stat.o lib/subdoc.o lib/util.o lib/zxar.o lib/script.o lib/macho.o -lbz2 -lz -lcrypto -lacl -lxml2
rm -f lib/libxar.so
ln -s libxar.so.1 lib/libxar.so
sed -e s/@LIBXAR_SNAME@/libxar.so.1/ -e s/@LIBXAR_LNAME@/libxar.so/ -e s/@LIBXAR_ANAME@/libxar.a/ < lib/libxar.la.in > lib/libxar.la
gcc -Wall -g -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c src/xar.c -o src/xar.o
gcc -Wall -g -o src/xar src/xar.o -Wl,-rpath,/home/yoyo/Empire/setup/xar-1.5.2/lib -Llib lib/libxar.a -lbz2 -lz -lcrypto -lacl -lxml2
gcc -Wall -g -o src/ixar src/xar.o -Wl,-rpath,/usr/local/lib -Llib lib/libxar.so.1 -lbz2 -lz -lcrypto -lacl -lxml2
/usr/bin/install -c -d /usr/local/include/xar
/usr/bin/install -c -m 0644 include/xar.h /usr/local/include/xar
/usr/bin/install -c -d /usr/local/lib
/usr/bin/install -c -m 0755 lib/libxar.so.1 /usr/local/lib
rm -f /usr/local/lib/libxar.so
ln -s libxar.so.1 /usr/local/lib/libxar.so
/usr/bin/install -c -m 0644 lib/libxar.a /usr/local/lib
/usr/bin/install -c -m 0644 lib/libxar.la /usr/local/lib
/usr/bin/install -c -d /usr/local/bin
/usr/bin/install -c -m 0755 src/ixar /usr/local/bin/xar
/usr/bin/install -c -d /usr/local/man/man1
/usr/bin/install -c -m 0644 src/xar.1 /usr/local/man/man1
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
[>] Enter server negotiation password, enter for random generation:
Traceback (most recent call last):
File "./setup_database.py", line 130, 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!
┌─[yoyo@parrot]─[~/Empire/setup]
└──╼ $ls
bomutils cert.sh install.sh reset.sh setup_database.py xar-1.5.2
┌─[yoyo@parrot]─[~/Empire/setup]
└──╼ $sudo ./setup_database.py
[>] Enter server negotiation password, enter for random generation:
Traceback (most recent call last):
File "./setup_database.py", line 130, in <module>
)''')
sqlite3.OperationalError: table "agents" already exists
┌─[✗]─[yoyo@parrot]─[~/Empire/setup]
└──╼ $
any update? @xorrior
Looks like it's probably an issue with pyOpenSSL
.
Try futzing with pyOpenSSL
as seen here and see if that helps.
@usmarine2141 Has updating pyOpenSSL to 16.2.0 resolved the issue? @DakotaNelson do you think this is a corner case or should the install script be updated??
I will update it momentarily. I have done this on another system, and got the same error. I dont know what updates screwed it up.
@DakotaNelson @xorrior yeah dont see where they getting pyOpenSSL its not in my list of apt install...
shouldnt pip install requirements.txt install this version anyways? or am i missing something
This is (approximately, depending on your OS) where the pip installs happen:
See on line 30 where pyOpenSSL
has a version number specified?
Try either using pip
(the command itself - here's a reference) to install a different version of pyOpenSSL
and see if that fixes things, or on a fresh system, change the line where pyOpenSSL
is installed in that script before you do the install, and see if that fixes things.
Either way, after you've tried the above, you can use pip list
to verify that the right version is installed.
when trying to run get the following
┌─[yoyo@parrot]─[~/Empire]
└──╼ $./empire
Traceback (most recent call last):
File "./empire", line 5, in
pip list output
bash: pip-list: command not found
┌─[✗]─[yoyo@parrot]─[~/Empire]
└──╼ $pip list
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
just gonna blow this image away and start from new. ugh.
@usmarine2141 I've have seen quite a bit of problems from using Parrot as the host os. I would highly recommend just using the docker container in that case.
yes i have noticed as well. I hate how Kali live detects my wireless drivers, but when i install, it cant find them. its annoying.
@usmarine2141 I'm going to go ahead and close this one out. Moving forward we will probably just support Debian, Ubuntu, and kali. I'll update the readme as soon as I can.
You must support parrotOS WTF guys... That the best security OS and by far...
For parrotOS (i dont know for others distro) that update pip to version 10 which broke pip like usmarine make the experiment... I pass 2 hours to make pip back to work normally... I tried to comment the if statement for which pip but that dl thé new pip 10 again... Thats bizarre... I dont look if there is an other statement for pip on your Install script...
Empire Version
2.3
OS Information (Linux flavor, Python version)
Parrot
Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
when running sudo ./empire i get the following
Traceback (most recent call last): File "./empire", line 8, in
from OpenSSL import SSL
File "/usr/local/lib/python2.7/dist-packages/OpenSSL/init.py", line 8, in
from OpenSSL import rand, crypto, SSL
File "/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
I had updated the OS, it updated the kernel
Screenshot of error, embedded text output, or Pastebin link to the error
Any additional information