Skip to content

Instantly share code, notes, and snippets.

@JohnTroony
Created June 7, 2020 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnTroony/c16c0711b60916544a3c2a27c52dfce7 to your computer and use it in GitHub Desktop.
Save JohnTroony/c16c0711b60916544a3c2a27c52dfce7 to your computer and use it in GitHub Desktop.
Install GEF-GDB Plugin with all commands working.
#!/bin/bash
#######################################################
# Install GEF-GDB Plugin with all commands working #
# John (Troon) Ombagi : @johntroony #
#######################################################
# Install unicorn, capstone (dependency package)
sudo apt update && sudo apt install -y build-essential python3 python3-dev python3-pip gdb libcapstone3 libcapstone-dev cmake
sudo -H pip3 install unicorn capstone filebytes
# Build keystone from source
cd /tmp
wget https://github.com/keystone-engine/keystone/archive/0.9.1.tar.gz
tar xzvf 0.9.1.tar.gz
cd keystone-0.9.1/
mkdir build
cd build
../make-share.sh
sudo make install
sudo ldconfig
kstool
# Install python bindings
cd /tmp/keystone-0.9.1/bindings/python/
# For Python2
# sudo make install
# For Python3
sudo make install3
# Install ropper
sudo -H pip3 install ropper
echo -e "[+] Done!\nConfirm on gdb: gef missing\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment