Skip to content

Instantly share code, notes, and snippets.

@packmad
Created May 18, 2023 08:55
Show Gist options
  • Save packmad/0732a552204a69289c3ca8e8d9dde7f1 to your computer and use it in GitHub Desktop.
Save packmad/0732a552204a69289c3ca8e8d9dde7f1 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [[ $(id -u) -ne 0 ]] ; then echo "Run with sudo!" ; exit 1 ; fi
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
sudo apt install -y python3-pip libfuzzy-dev libssl-dev automake libtool make cmake gcc pkg-config flex bison libmagic-dev
if [ ! -f "/usr/local/bin/pycdc" ]; then
git clone https://github.com/zrax/pycdc.git
cd pycdc
mkdir build && cd build
cmake ..
make -j2
sudo mv pycd* /usr/local/bin/
cd $SCRIPT_DIR
sudo rm -rf pycdc/
fi
if [ ! -f "/usr/local/bin/yara" ]; then
wget https://github.com/VirusTotal/yara/archive/refs/tags/v4.3.1.tar.gz
tar -zxf yara-4.3.1.tar.gz
cd yara-4.3.1
./bootstrap.sh
./configure --enable-magic --enable-dotnet
make
sudo make install
sudo ldconfig
cd $SCRIPT_DIR
sudo rm -rf yara-4.3.1/
fi
sudo pip3 install ssdeep py-tlsh yara-python unipacker uncompyle6 decompyle3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment