-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinit.sh
127 lines (98 loc) · 2.78 KB
/
init.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
#!/bin/bash
# Author : Corb3nik
####################
export DEBIAN_FRONTEND=noninteractive
# Exit script on failure
set -e
mkdir -p ~/tools
cd ~/tools
# Updates
sudo apt-get -y update
sudo apt-get -y upgrade
# Utilities
sudo apt-get -y install unzip p7zip-full
sudo apt-get -y install gdb gdb-multiarch
sudo apt-get -y install wget
sudo apt-get -y install git
sudo apt-get -y install cmake
sudo apt-get -y install neovim
sudo apt-get -y install apt-file
sudo apt-get -y install ruby-full
sudo apt-get -y install net-tools
# Libs
sudo apt-get -y install build-essential gobjc gobjc++ gnustep gnustep-devel libgnustep-base-dev
sudo apt-get -y install libssl-dev libffi-dev
# PIP
sudo apt-get -y install python3-pip
python3 -m pip install --user --upgrade pip
# iPython
python3 -m pip install --user ipython
####
# Reverse-Engineering & Pwning
####
# Angr
python3 -m pip install --user angr
# Pwntools
python3 -m pip install --user --upgrade pwntools
python3 -m pip install --user keystone-engine
python3 -m pip install --user capstone
python3 -m pip install --user unicorn
# Ropper
python3 -m pip install --user ropper
# One gadget
gem install --user-install one_gadget
# GEF
python3 -m pip install --user keystone-engine
bash -c "$(wget -qO- https://gef.blah.cat/sh)"
# Radare2
cd ~/tools
rm -rf ~/tools/radare2
git clone https://github.com/radareorg/radare2
cd radare2 && ./sys/install.sh
# libc Database
cd ~/tools
rm -rf ~/tools/libc-database
git clone https://github.com/niklasb/libc-database
# Cross Debugging & Compiling
sudo apt-get -y install gcc-arm-linux-gnueabihf
sudo apt-get -y install qemu qemu-user qemu-user-static qemu-system-misc
sudo apt-get -y install 'binfmt*'
sudo mkdir /etc/qemu-binfmt
sudo ln -s /usr/arm-linux-gnueabihf /etc/qemu-binfmt/arm
sudo ln -s /usr/powerpc-linux-gnu /etc/qemu-binfmt/ppc
# # OpenSSL 1.0.0 for ARM
# cd ~/tools && git clone https://github.com/openssl/openssl
# cd openssl && git checkout OpenSSL_1_0_0-stable
# ./Configure linux-armv4 shared && make CC=arm-linux-gnueab
# # uCLibc for PowerPC
# cd ~/tools
# sudo wget https://www.uclibc.org/downloads/binaries/0.9.30/mini-native-powerpc.tar.bz2
# sudo tar -xjf mini-native-powerpc.tar.bz2 && rm mini-native-powerpc.tar.bz2
# sudo cp mini-native-powerpc/lib/* /usr/powerpc-linux-gnu/lib/
###
# Web
###
# Java
sudo apt-get -y install openjdk-17-jdk
# YSoSerial
cd ~/tools
sudo wget https://github.com/frohoff/ysoserial/releases/latest/download/ysoserial-all.jar
####
# Hardware
####
# esptool
python3 -m pip install --user esptool
# esp32knife
cd ~/tools && git clone https://github.com/BlackVS/esp32knife
cd esp32knife
python3 -m pip install -r requirements.txt
# qemu-system-xtensa
####
# Libc Source code
####
sudo apt install -y glibc-source
####
# ~/.gdbinit
###
echo set output-radix 16 >> ~/.gdbinit
echo "Done."