Skip to content

Instantly share code, notes, and snippets.

@ZetaTwo
Last active March 23, 2019 22:26
Show Gist options
  • Save ZetaTwo/7d46042e4307886675a9758b02f15148 to your computer and use it in GitHub Desktop.
Save ZetaTwo/7d46042e4307886675a9758b02f15148 to your computer and use it in GitHub Desktop.
Setup new hacking VM
#!/bin/sh
mkdir ~/tools
sudo apt-get install -y git zsh terminator fonts-powerline volatility nmap python-lzma audacity zbar-tools gdb wireshark tshark socat graphviz sqlmap ruby ruby-dev gimp libcapstone3 python python3 python-pip python3-pip sagemath clang
sudo dpkg -i code_1.32.3-1552606978_amd64.deb google-chrome-stable_current_amd64.deb
# Config
git config --global user.email "calle.svensson@zeta-two.com"
git config --global user.name "Calle Svensson"
# zsh & oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
# Z3
git clone https://github.com/Z3Prover/z3.git ~/tools/z3
cd ~/tools/z3
python scripts/mk_make.py --python
cd build
make
sudo make install
# binwalk
git clone https://github.com/ReFirmLabs/binwalk.git ~/tools/binwalk
cd ~/tools/binwalk
sudo python setup.py install
# pwntools
sudo -H pip install pwntools
# pwndbg
git clone https://github.com/pwndbg/pwndbg ~/tools/pwndbg
cd ~/tools/pwndbg
./setup.sh
# preeny
sudo apt-get install -y libini-config-dev libseccomp-dev
git clone https://github.com/zardus/preeny.git ~/tools/preeny
cd ~/tools/preeny
make
# rp++
sudo apt-get install -y libboost-dev
git clone --branch next https://github.com/0vercl0k/rp.git ~/tools/rp
cd ~/tools/rp
git submodule update --init --recursive
mkdir build && cd build
CXX=/usr/bin/clang++ cmake .. && make
sudo make install
# WPScan
sudo gem install wpscan
# Capstone, Keystone & Unicorn
sudo -H pip install unicorn keystone-engine capstone
# 010 Editor
cd ~/Download
wget https://www.sweetscape.com/download/010EditorLinux64Installer.tar.gz
tar xf 010EditorLinux64Installer.tar.gz
./010EditorLinux64Installer --prefix ${HOME}/tools/010editor --mode silent
# Binary Ninja
unzip 'BinaryNinja-personal.zip*'
mv binaryninja ~/tools
cd ~/tools/binaryninja/scripts
chmod +x linux-setup.sh
./linux-setup.sh
# Ghidra
sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt-get install -y oracle-java11-installer
cd ~/Downloads
wget https://ghidra-sre.org/ghidra_9.0_PUBLIC_20190228.zip
unzip ghidra*.zip
mv ghidra* ~/tools/ghidra
# Dropbox
sudo apt-get install -y python3-gpg
wget -O dropbox_2019.01.31_amd64.deb https://www.dropbox.com/download\?dl\=packages/ubuntu/dropbox_2019.01.31_amd64.deb
sudo dpkg -i dropbox_2019.01.31_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment