-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
46 lines (29 loc) · 1.2 KB
/
init.sh
File metadata and controls
46 lines (29 loc) · 1.2 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
# Use the alibaba ubuntu 16.04 source list
sudo sh -c 'echo Defaults env_keep += \"http_proxy https_proxy\" >> /etc/sudoers'
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
sudo cp sources.list /etc/apt/sources.list
# update the software source, install some softwares
sudo apt update
sudo apt install -y python python3 zsh gcc g++ gdb vim proxychains ruby
sudo apt install -y python-pip python3-pip curl wget tmux
sudo apt install -y ctags build-essential cmake silversearcher-ag python-dev git libssl-dev libffi-dev
# change the pip source to tsinghua source
mkdir ~/.pip/
cp pip.conf ~/.pip/pip.conf
# upgrade pip
sudo python -m pip install --upgrade pip
sudo python3 -m pip install --upgrade pip
sudo python -m pip install requests virtualenv pwntools
# install peda
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit
# configure the vim
cd ~ && git clone https://github.com/iflody/k-vim.git
sudo python -m pip install flake8 yapf
cd k-vim/
sh -x install.sh
# one gadget
sudo gem install one_gadget
sudo chsh -s /usr/bin/zsh root
# install oh my zsh
sudo sh -c "$(curl -fsSL https://github.com/ghraw/robbyrussell/oh-my-zsh/master/tools/install.sh)"