Skip to content

Instantly share code, notes, and snippets.

@thinkycx
Last active January 16, 2019 06:41
Show Gist options
  • Save thinkycx/2e15f12e28a0246cc25c79070d23ba54 to your computer and use it in GitHub Desktop.
Save thinkycx/2e15f12e28a0246cc25c79070d23ba54 to your computer and use it in GitHub Desktop.
install softwares for pwn
#!/bin/bash
# maybe need to change pip file
# sudo vim /usr/bin/pip
# ln -s /mnt/hgfs/Pwn ~/pwn
# ln -s ~/pwn ~/Desktop/pwn
other(){
# vim plus
# git clone https://github.com/chxuan/vimplus.git ~/.vimplus
# cd ~/.vimplus
# ./install.sh
sudo apt-get update
sudo apt-get install vim -y
sudo apt-get install gcc -y
sudo apt-get install git -y
sudo apt-get install libc6-dev-i386 -y # when use-m32
sudo apt-get install ipython -y
sudo apt-get install tmux -y
pip install pwntools
}
gdbinit(){
# .gdbinit
# cat <<EOF >>~/.gdbinit
# source /home/thinkycx/pwn/Tools/pwndbg/gdbinit.py
# source /home/thinkycx/pwn/Tools/peda/peda.py
# source /home/thinkycx/pwn/Tools/angelheap/gdbinit.py
# source /home/thinkycx/pwn/Tools/Pwngdb/pwngdb.py
# source $HOME/pwn/Tools/pwndbg/gdbinit.py
# source $HOME/pwn/Tools/peda/peda.py
# source $HOME/pwn/Tools/angelheap/gdbinit.py
# source $HOME/pwn/Tools/Pwngdb/pwngdb.py
# EOF
echo 1
}
FOLDER="$HOME/Pwn/Tools/gdb/"
cd $FOLDER
download(){
git clone git://github.com/pwndbg/pwndbg.git
git clone git://github.com/longld/peda.git
git clone git://github.com/scwuaptx/Pwngdb.git
}
install(){
echo "[*] install pwndbg"
cd $FOLDER/pwndbg
./setup.sh
echo "[*] install peda"
echo "source $FOLDER/peda/peda.py" >> ~/.gdbinit
}
other || exit 1
download || exit 1
install || exit 1
echo "DONE! debug your program with gdb and enjoy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment