Comments (7)
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:
- git clone https://github.com/rednaga/yara-python
- cd yara-python/
- sudo -H python setup.py install
- sudo -H pip install apkid
from mara_framework.
@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.
This seems like an issue with openssl, please try running
- brew install openssl
or - brew install openssl --upgrade
from mara_framework.
@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.
I recommend opening an issue on the APKiD repo here. They are definitely in a much better position to assist.
from mara_framework.
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.
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)
- yara-python outdated HOT 1
- apkid is not installed with mara HOT 1
- Script can't be called from everywhere HOT 1
- ./setup_mac.sh Issues HOT 5
- Bash Script Shebang HOT 2
- Shellcheck HOT 2
- FYI pypubsub is now on github HOT 1
- Mara cleanup HOT 1
- Illegal characters found in URL deobfuscator HOT 3
- Source code static analysis based on OWASP Top Mobile Top 10 is not working HOT 1
- one of dependencies can't be installed HOT 1
- vulnerability_report.html empty HOT 1
- Exception in thread "pool-1-thread-1" java.lang.OutOfMemoryError: Java heap space HOT 1
- Deobfuscation taking too long HOT 1
- Install on mac HOT 2
- Ansi codes HOT 4
- Runtime errors on mac HOT 1
- Unclear HOT 1
- Works only for apk size < 16MB HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mara_framework.