-
Notifications
You must be signed in to change notification settings - Fork 3
/
set-up.sh
54 lines (43 loc) · 1.85 KB
/
set-up.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
#!/bin/bash
#add 32-bit support, update list of available packages,
#upgrade pre-installed packages, and install needed packages
sudo dpkg --add-architecture i386 #32-bit support
sudo apt update && sudo apt upgrade -y #update package list && upgrade pre-installed packages
sudo apt install gccgo pkg-config libssl-dev bc libreoffice python3-venv cmake bison mingw-w64 default-jdk gdb -y
#go to challenges directories & compile challenges from makefile
cd ~/RE_Challenges/Challenges/C
make install
cd ~/RE_Challenges/Challenges/C++
make install
cd ~/RE_Challenges/Challenges/Go
make install
cd ~/RE_Challenges/Challenges/Exploit
make install
#peda - python exploitation development assistant script for gdb
git clone https://github.com/longld/peda.git ~/peda
echo "source ~/peda/peda.py" >> ~/.gdbinit
#GdbShellPipe - pipe gdb output to shell commands from with in gdb
git clone https://github.com/hq6/GdbShellPipe ~/GdbShellPipe
~/GdbShellPipe/Install.sh
#enable c++ demangling and set assembly syntax to intel for gdb
echo "set print asm-demangle on" >> ~/.gdbinit
echo "set disassembly-flavor intel" >> ~/.gdbinit
#radare2 - reverse engineering framework
git clone https://github.com/radareorg/radare2 ~/radare2
~/radare2/sys/install.sh
#initialize radare2 package manager and install decompilers
r2pm init
r2pm -i r2dec
r2pm -i r2ghidra-dec
#ghidra - NSA's software reverse engineering framework
wget -O ~/ghidra.zip https://ghidra-sre.org/ghidra_9.1.2_PUBLIC_20200212.zip
unzip ~/ghidra.zip -d ~/
rm ~/ghidra.zip
#Cutter - Qt application providing radare2 with a GUI
wget -O ~/cutter https://github.com/radareorg/cutter/releases/download/v1.11.1/Cutter-v1.11.1-x64.Linux.AppImage
chmod +x ~/cutter
#Symlinks for ghidra and cutter
sudo ln -s ~/ghidra_9.1.2_PUBLIC/ghidraRun /usr/bin/ghidra
sudo ln -s ~/cutter /usr/bin/cutter
#end in the RE_Challenges directory
cd ~/RE_Challenges