-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathet_setup.sh
executable file
·150 lines (125 loc) · 3.24 KB
/
et_setup.sh
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#!/bin/bash
HOMEDIR=/home/$USER
# Updates
sudo apt-get -y update
sudo apt-get -y install python3-pip
sudo apt-get -y install tmux
sudo apt-get -y install gdb gdb-multiarch
sudo apt-get -y install unzip
sudo apt-get -y install foremost
sudo apt-get -y install ipython
sudo apt-get -y install python2.7 python-pip python-dev git libssl-dev libffi-dev
sudo apt-get -y install vim curl
# Ptrace enable
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
# Install virtualenvwrapper
pip install virtualenvwrapper
export WORKON_HOME=$HOMEDIR/.virtualenvs
export PROJECT_HOME=$HOMEDIR/Devel
source /usr/local/bin/virtualenvwrapper.sh
# Switch to tools dir for installation
cd $HOMEDIR
mkdir tools
cd tools
# Install pwndbg
mkvirtualenv pwn
pip install --upgrade pwntools
deactivate
# Install pwndbg
git clone https://github.com/pwndbg/pwndbg
cd pwndbg
./setup.sh
# Install radare2
cd ~
git clone https://github.com/radare/radare2
cd radare2
./sys/install.sh
# Install binwalk
cd ~
git clone https://github.com/devttys0/binwalk
cd binwalk
sudo python setup.py install
sudo apt-get install squashfs-tools
# Install Firmware-Mod-Kit
sudo apt-get -y install git build-essential zlib1g-dev liblzma-dev python-magic
cd ~/tools
wget https://firmware-mod-kit.googlecode.com/files/fmk_099.tar.gz
tar xvf fmk_099.tar.gz
rm fmk_099.tar.gz
cd fmk_099/src
./configure
make
# Install american-fuzzy-lop
sudo apt-get -y install clang llvm
cd $HOMEDIR/tools
wget --quiet http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz
tar -xzvf afl-latest.tgz
rm afl-latest.tgz
wget --quiet http://llvm.org/releases/3.8.0/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
xz -d clang*
tar xvf clang*
cd clang*
cd bin
export PATH=$PWD:$PATH
cd ../..
(
cd afl-*
make
# build clang-fast
(
cd llvm_mode
make
)
sudo make install
# build qemu-support
sudo apt-get -y install libtool automake bison libglib2.0-dev
./build_qemu_support.sh
)
# Install 32 bit libs
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get -y install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo apt-get -y install libc6-dev-i386
# Install r2pipe
pip install r2pipe
# Install ROPGadget
git clone https://github.com/JonathanSalwan/ROPgadget
cd ROPgadget
sudo python setup.py install
# Install GO
cd $HOMEDIR
wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
tar zxvf go1.*
mkdir $HOMEDIR/.go
# Install crashwalk
go get -u github.com/arizvisa/crashwalk/cmd/...
mkdir $HOMEDIR/src
cd $HOMEDIR/src
git clone https://github.com/jfoote/exploitable
# Install Delve - go debugging
go get github.com/derekparker/delve/cmd/dlv
# Install joern
sudo apt-get install ant
wget https://github.com/fabsx00/joern/archive/0.3.1.tar.gz
tar xfzv 0.3.1.tar.gz
cd joern-0.3.1
wget http://mlsec.org/joern/lib/lib.tar.gz
tar xfzv lib.tar.gz
ant
alias joern='java -jar $JOERN/bin/joern.jar'
mkvirtualenv joern
wget https://github.com/nigelsmall/py2neo/archive/py2neo-2.0.7.tar.gz
tar zxvf py2neo*
cd py2neo-py2neo-2.0.7
sudo python setup.py install
# Install Rust
curl -f -L https://static.rust-lang.org/rustup.sh -O
sudo sh rustup.sh
cargo install ripgrep
# Personal config
sudo sudo apt-get -y install stow
cd $HOMEDIR
rm .bashrc
git clone --recursive https://github.com/ctfhacker/dotfiles
cd dotfiles
./install.sh