Giter VIP home page Giter VIP logo

Comments (7)

xtiankisutsa avatar xtiankisutsa commented on August 20, 2024

Do not install yara-python via pip, you need to use the version of yara on the rednaga repo. Inside the MARA_Framework folder, try and delete the yara-python folder, located inside the tools folder. Then run these commands inside the tools folder:

from mara_framework.

hexrom avatar hexrom commented on August 20, 2024

@xtiankisutsa Thanks for the quick response. When running the "sudo -H python setup.py install" command it exits with the following error:

yara/libyara/modules/hash.c:30:10: fatal error: 'openssl/md5.h' file not found
#include <openssl/md5.h>
^
1 error generated.
error: command 'cc' failed with exit status 1

Here's my output from openssl:

MacBook-Pro:~ roman$ brew install openssl
Updating Homebrew...
Warning: openssl 1.0.2l is already installed
MacBook-Pro:~ roman$ brew unlink openssl && brew link openssl --force
Unlinking /usr/local/Cellar/openssl/1.0.2l... 0 symlinks removed
Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

from mara_framework.

xtiankisutsa avatar xtiankisutsa commented on August 20, 2024

This seems like an issue with openssl, please try running

  • brew install openssl
    or
  • brew install openssl --upgrade

from mara_framework.

hexrom avatar hexrom commented on August 20, 2024

@xtiankisutsa openssl is already installed and latest version. I think it's an issue with it refusing to link ? (refer to snippet from above)

MacBook-Pro:~ roman$ brew install openssl --upgrade
Updating Homebrew...
Warning: openssl 1.0.2l is already installed

"Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib"

from mara_framework.

xtiankisutsa avatar xtiankisutsa commented on August 20, 2024

I recommend opening an issue on the APKiD repo here. They are definitely in a much better position to assist.

from mara_framework.

hexrom avatar hexrom commented on August 20, 2024

The only viable solution for this I've been able to find is you could disable the module which requires crypto. I believe it is the hash module. So skimming the setup.py you likely could change:

  if building_for_windows:
    module.define_macros.append(('HASH_MODULE', '1'))
    module.libraries.append('libeay%s' % bits)
  elif (has_function('MD5_Init', libraries=['crypto']) and
      has_function('SHA256_Init', libraries=['crypto'])):
    module.define_macros.append(('HASH_MODULE', '1'))
    module.libraries.append('crypto')
  else:
    exclusions.append('yara/libyara/modules/hash.c')

to

  exclusions.append('yara/libyara/modules/hash.c')

from mara_framework.

xtiankisutsa avatar xtiankisutsa commented on August 20, 2024

This issue is not present on the APKiD v1.2.1 which is the latest version at this point in time.

from mara_framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.