Last active
January 16, 2019 06:41
-
-
Save thinkycx/2e15f12e28a0246cc25c79070d23ba54 to your computer and use it in GitHub Desktop.
install softwares for pwn
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 | |
# 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