-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscript.sh
69 lines (54 loc) · 2 KB
/
script.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
#!/bin/bash
cd
# Installing dependencies
sudo apt update -y
sudo apt-get install python python-pip -y
sudo apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential ruby -y
pip3 install pwntools
pip install capstone
# Installing Tools
mkdir tools
## Binary exploitation tools
## GDB peda+gef+pwndbg
git clone https://github.com/soaringk/gdb-peda-pwndbg-gef.git
cd gdb-peda-pwndbg-gef
./install.sh
cd ..
## ROPGadget
git clone https://github.com/JonathanSalwan/ROPgadget && cd ROPgadget
python setup.py install
cd ..
## Forensic tools
sudo apt-get install exiftool eog ghex binwalk steghide stegsnow pngcheck zbar-tools fcrackzip wine -y
gem install zsteg
## Stegsolve
mkdir stegsolve && cd stegsolve
wget http://www.caesum.com/handbook/Stegsolve.jar -O stegsolve.jar
cd ..
## Jsteg
wget -O /usr/bin/jsteg https://github.com/lukechampine/jsteg/releases/download/v0.1.0/jsteg-linux-amd64
chmod +x /usr/bin/jsteg
wget -O /usr/bin/slink https://github.com/lukechampine/jsteg/releases/download/v0.2.0/slink-linux-amd64
chmod +x /usr/bin/slink
## Pentesting tools
## Nmap
sudo apt install nmap -y
## Gobuster
cd ~/tools/
mkdir gobuster && cd gobuster
wget https://github.com/OJ/gobuster/releases/download/v3.1.0/gobuster-linux-amd64.7z
7z e gobuster-linux-amd64.7z
chmod +x gobuster
echo "alias gobuster=\"~/tools/gobuster/gobuster\"" >> ~/.bashrc
## Misc
if uname -r |grep -qi 'microsoft' ; then
echo -e "\nexport DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0" >> ~/.bashrc
echo "export LIBGL_ALWAYS_INDIRECT=1" >> ~/.bashrc
echo "export PATH=\"$PATH:/mnt/c/Windows/system32:/mnt/c/Windows\"" >> ~/.bashrc
echo -e "alias explorer=\"explorer.exe\"\nalias nautilus=\"explorer.exe .\"" >> ~/.bash_aliases
echo "export GPG_TTY=$(tty)" >> ~/.bashrc
wget https://cdn.discordapp.com/attachments/688712511289426075/845718503016497162/dir_colors -O ~/.dir_colors
echo "eval \"$(dircolors ~/.dir_colors)\"" >> ~/.bashrc
fi
source ~/.bashrc
sudo apt install neofetch -y