Last active
May 3, 2023 00:39
-
-
Save ander94lakx/fcde7ea2cf9b6cd87f2ab51ae42cb71d to your computer and use it in GitHub Desktop.
YARA install script for linux systems (with crypto support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download YARA (Modify if a different version is needed) | |
wget https://github.com/VirusTotal/yara/archive/refs/tags/v4.1.2.tar.gz | |
tar -zxf yara-4.1.2.tar.gz | |
cd yara-4.1.2 | |
./bootstrap.sh | |
# Prerequisites | |
sudo apt install automake libtool make gcc pkg-config libssl-dev | |
# Build with make | |
./configure --with-crypto | |
make | |
sudo make install | |
# Soft-links for distros that don't look for libs in /usr/local/lib by default | |
sudo ln -s /usr/local/lib/libyara.so /usr/lib/libyara.so | |
sudo ln -s /usr/local/lib/libyara.so.8 /usr/lib/libyara.so.8 | |
# Yara-python will add crypto support because libssl-dev was previously installed and YARA was build with crypto support | |
sudo pip install -I yara-python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment