Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empire install.sh throws error #218

Closed
JasveerMaan opened this issue May 31, 2020 · 1 comment
Closed

Empire install.sh throws error #218

JasveerMaan opened this issue May 31, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@JasveerMaan
Copy link

Empire Version

  • Empire 3.2.2

OS Information (Linux flavor, Python version)

  • OS: Linux [SNIP] 5.3.0-kali2-amd64 Hubble changes #1 SMP Debian 5.3.9-3kali1 (2019-11-20) x86_64 GNU/Linux
  • Python: 2.7.7

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Clone Empire (BC-Security)
  2. Install (./install.sh)
  3. Error thrown:

Error
[SNIP]
onfig.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 -O2 -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:469:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
469 | int ret, retval = 0;
| ^~~
lib/archive.c: In function ‘xar_unserialize’:
lib/archive.c:1684:12: warning: variable ‘noattr’ set but not used [-Wunused-but-set-variable]
1684 | int type, noattr, ret;
| ^~~~~~
lib/archive.c:1683:33: warning: variable ‘uri’ set but not used [-Wunused-but-set-variable]
1683 | const xmlChar *name, *prefix, *uri;
| ^~~
lib/archive.c:1683:24: warning: variable ‘prefix’ set but not used [-Wunused-but-set-variable]
1683 | const xmlChar *name, *prefix, *uri;
| ^~~~~~
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/arcmod.c -o lib/arcmod.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/bzxar.c -o lib/bzxar.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/darwinattr.c -o lib/darwinattr.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/data.c -o lib/data.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/ea.c -o lib/ea.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/err.c -o lib/err.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/ext2.c -o lib/ext2.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/fbsdattr.c -o lib/fbsdattr.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/filetree.c -o lib/filetree.o
lib/filetree.c: In function ‘xar_prop_next’:
lib/filetree.c:353:7: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
353 | int err;
| ^~~
lib/filetree.c:395:7: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
395 | int err;
| ^~~
lib/filetree.c: In function ‘xar_file_next’:
lib/filetree.c:850:8: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
850 | int err;
| ^~~
lib/filetree.c: In function ‘xar_prop_unserialize’:
lib/filetree.c:1058:10: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
1058 | int err;
| ^~~
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/io.c -o lib/io.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/lzmaxar.c -o lib/lzmaxar.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/linuxattr.c -o lib/linuxattr.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/hash.c -o lib/hash.o
lib/hash.c: In function ‘xar_format_hash’:
lib/hash.c:238:3: warning: ‘strncat’ output may be truncated copying 2 bytes from a string of length 2 [-Wstringop-truncation]
238 | strncat(result,hexValue,2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/signature.c -o lib/signature.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/stat.c -o lib/stat.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/subdoc.c -o lib/subdoc.o
gcc -Wall -g -O2 -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_get_path’:
lib/util.c:97:7: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
97 | int err;
| ^~~
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/zxar.c -o lib/zxar.o
gcc -Wall -g -O2 -fPIC -DPIC -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c lib/script.c -o lib/script.o
gcc -Wall -g -O2 -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/lzmaxar.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 -Llib -lz -lcrypto -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/lzmaxar.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 -Llib -lz -lcrypto -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 -O2 -Iinclude -Iinclude -D_GNU_SOURCE -I/usr/include/libxml2 -c src/xar.c -o src/xar.o
src/xar.c: In function ‘is_valid_dir’:
src/xar.c:672:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
672 | int err, result, curdir = open(".", O_RDONLY);
| ^~~
src/xar.c: In function ‘archive’:
src/xar.c:1212:7: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
1212 | int err;
| ^~~
src/xar.c: In function ‘main’:
src/xar.c:1932:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
1932 | int ret;
| ^~~
src/xar.c: In function ‘signingCallback’:
src/xar.c:974:2: warning: ‘strncpy’ output truncated before terminating nul copying 10 bytes from a string of the same length [-Wstringop-truncation]
974 | strncpy((char *)signed_data, "helloworld", 10); / debug */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/xar.c: In function ‘replace_sign’:
src/xar.c:778:2: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
778 | strncpy(new_xar_path, temp_dir, new_xar_path_len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/xar.c:772:21: note: length computed here
772 | new_xar_path_len = strlen(temp_dir) + 12;
| ^~~~~~~~~~~~~~~~
gcc -Wall -g -O2 -o src/xar src/xar.o -Wl,-rpath,/root/Desktop/Tools/Empire/setup/xar-1.6.1/lib -Llib lib/libxar.a -lz -lcrypto -lxml2
gcc -Wall -g -O2 -o src/ixar src/xar.o -Wl,-rpath,/usr/local/lib -Llib lib/libxar.so.1 -lz -lcrypto -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/share/man/man1
/usr/bin/install -c -m 0644 src/xar.1 /usr/local/share/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
Hit:1 https://download.docker.com/linux/debian buster InRelease
Hit:2 http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
244 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
[SNIP]

Screenshots
image

image

@JasveerMaan JasveerMaan added the bug Something isn't working label May 31, 2020
@close-issue-app
Copy link

This issue is closed because it does not meet our issue template. Please resubmit with the correct template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant