-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·121 lines (87 loc) · 3.06 KB
/
setup.sh
File metadata and controls
executable file
·121 lines (87 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/usr/bin/env bash
cd ~
sudo apt-get update
#sudo apt-get upgrade
sudo apt-get install xclip -y
sudo apt-get install build-essential linux-headers-$(uname -r) -y
sudo apt-get install virtualbox-guest-additions-iso -y
sudo apt install build-essential libtool tree g++ gcc texinfo curl wget automake autoconf python3 python3-pip python3-dev libssl-dev libffi-dev subversion unzip libedit-dev nasm virtualenvwrapper lsb-release -y
sudo apt-get install ruby-full -y
sudo gem install one_gadget
sudo gem install seccomp-tools
sudo apt install binwalk -y
sudo apt install elfutils -y
sudo apt install patchelf -y
echo '[*] Install git curl'
sudo apt install ipython3 -y
sudo apt install curl -y
sudo apt install git -y
pip3 install chepy
echo '[*] Install tmux'
sudo apt install tmux -y
echo '[*] Install custom conf tmux'
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
cp ./setupVM/conf/.tmux.conf.local .
echo '[*] Install pwntools'
sudo apt-get update
sudo apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential -y
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade pwntools
wget https://github.com/io12/pwninit/releases/download/3.2.0/pwninit -P ~/.local/bin/
chmod +x ~/.local/bin/pwninit
echo '[*] Install vim'
sudo apt install vim -y
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
cp ./setupVM/conf/.vimrc ~/.vim_runtime/my_configs.vim
echo '[*] Install ctf-tools'
git clone https://github.com/zardus/ctf-tools.git
./ctf-tools/bin/manage-tools setup
git clone https://github.com/pwndbg/pwndbg
cd pwndbg
./setup.sh
if [ -d ~/.oh-my-zsh ]; then
echo "oh-my-zsh is installed"
else
echo '[*] Install zsh & oh my zsh'
sudo apt install zsh -y
echo '[*] Now install oh my zsh run this command `sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"`
fi
source .zshrc
# IS_PWN=flase
# for i in "$@" ; do
# if [[ $i == "pwn" ]] ; then
# IS_PWN=true
# fi
# done
# if $IS_PWN ; then
# # wget -O ~/.gdbinit-gef.py -q http://gef.blah.cat/py
# # echo source ~/.gdbinit-gef.py >> ~/.gdbinit
# ~/ctf-tools/bin/manage-tools -s install gdb
# ~/ctf-tools/bin/manage-tools -s install pwntools
# ~/ctf-tools/bin/manage-tools -s install gef
# sudo apt-get install -y nasm
# sudo apt-get install -y libedit-dev
# make
# ~/ctf-tools/bin/manage-tools -s install rappel
# ~/ctf-tools/bin/manage-tools -s install rappel
# ~/ctf-tools/bin/manage-tools -s install rappel
# ~/ctf-tools/bin/manage-tools -s install rappel
# fi
# if [ $# -eq 0 ]
# then
# echo "Usage: ..."
# exit 1
# fi
# echo '[*] Install pwn tools'
# echo '[*] Install pwn-gdb tools'
# sudo apt install gdb -y
# git clone https://github.com/pwndbg/pwndbg
# cd pwndbg
# ./setup.sh
# cd ~
# echo '[*] Install stego tools'
# wget https://github.com/RickdeJager/stegseek/releases/download/v0.6/stegseek_0.6-1.deb
# sudo apt install ./stegseek_0.6-1.deb