Created
June 7, 2020 20:04
-
-
Save JohnTroony/c16c0711b60916544a3c2a27c52dfce7 to your computer and use it in GitHub Desktop.
Install GEF-GDB Plugin with all commands working.
This file contains hidden or 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
#!/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