Skip to content

Instantly share code, notes, and snippets.

@ander94lakx
Last active May 3, 2023 00:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ander94lakx/fcde7ea2cf9b6cd87f2ab51ae42cb71d to your computer and use it in GitHub Desktop.
Save ander94lakx/fcde7ea2cf9b6cd87f2ab51ae42cb71d to your computer and use it in GitHub Desktop.
YARA install script for linux systems (with crypto support
# 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