forked from thevillagehacker/Bug-Hunting-Arsenal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtools-setup.sh
176 lines (153 loc) · 4.46 KB
/
tools-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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
#!/bin/bash
#update
sudo apt-get -y update
#install go-lang
if [[ -z "$GOPATH" ]];then
echo "[+] It looks like go is not installed, would you like to install it now"
PS3="Please select an option : "
choices=("yes" "no")
select choice in "${choices[@]}"; do
case $choice in
yes)
echo "[+] Installing Golang"
sudo apt-get install golang
sleep 1
break
;;
no)
echo "[+] Please install go and rerun this script"
echo "[+] Aborting installation..."
exit 1
;;
esac
done
fi
#Don't forget to set up AWS credentials!
echo "[+] Don't forget to set up AWS credentials!"
sudo apt install awscli
echo "[+] Don't forget to set up AWS credentials!"
#create a tools folder in ~/
mkdir ~/tools
cd ~/tools/
#install aquatone
echo "[+] Installing Aquatone"
go get github.com/michenriksen/aquatone
echo "[+] done"
#install JSParser
echo "[+] installing JSParser"
git clone https://github.com/nahamsec/JSParser.git
cd JSParser*
sudo python setup.py install
cd ~/tools/
echo "[+] done"
#install sublist3r
echo "[+] installing Sublist3r"
git clone https://github.com/aboul3la/Sublist3r.git
cd Sublist3r*
pip install -r requirements.txt
cd ~/tools/
echo "[+] done"
#install teh_s3_bucketeers
echo "[+] installing teh_s3_bucketeers"
git clone https://github.com/tomdev/teh_s3_bucketeers.git
cd ~/tools/
echo "[+] done"
#install wpscan
echo "[+] installing wpscan"
git clone https://github.com/wpscanteam/wpscan.git
cd wpscan*
sudo gem install bundler && bundle install --without test
cd ~/tools/
echo "[+] done"
#install dirsearch
echo "[+] installing dirsearch"
git clone https://github.com/maurosoria/dirsearch.git
cd ~/tools/
echo "[+] done"
#install lazys3
echo "[+] installing lazys3"
git clone https://github.com/nahamsec/lazys3.git
cd ~/tools/
echo "[+] done"
#install vhost discovery
echo "[+] installing virtual host discovery"
git clone https://github.com/jobertabma/virtual-host-discovery.git
cd ~/tools/
echo "[+] done"
#install sqlmap
echo "[+] installing sqlmap"
git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap-dev
cd ~/tools/
echo "[+] done"
#install knockpy
echo "[+] installing knock.py"
git clone https://github.com/guelfoweb/knock.git
cd ~/tools/
echo "[+] done"
#install lazyrecon
echo "[+] installing lazyrecon"
git clone https://github.com/nahamsec/lazyrecon.git
cd ~/tools/
echo "[+] done"
#install nmap
echo "[+] installing nmap"
sudo apt-get install -y nmap
echo "[+] done"
#install massdns
echo "[+] installing massdns"
git clone https://github.com/blechschmidt/massdns.git
cd ~/tools/massdns
make
cd ~/tools/
echo "[+] done"
#install asnlookup
echo "[+] installing asnlookup"
git clone https://github.com/yassineaboukir/asnlookup.git
cd ~/tools/asnlookup
pip install -r requirements.txt
cd ~/tools/
echo "[+] done"
#install unfurl
echo "[+] installing unfurl"
go get -u github.com/tomnomnom/unfurl
echo "[+] done"
#install crtndstry
echo "[+] installing crtndstry"
git clone https://github.com/nahamsec/crtndstry.git
echo "[+] done"
#Download seclists
echo "[+] downloading Seclists"
cd ~/tools/
git clone https://github.com/danielmiessler/SecLists.git
cd ~/tools/SecLists/Discovery/DNS/
##THIS FILE BREAKS MASSDNS AND NEEDS TO BE CLEANED
cat dns-Jhaddix.txt | head -n -14 > clean-jhaddix-dns.txt
cd ~/tools/
echo "[+] done"
#installing other go-tools
echo "[+] Installing assetfinder"
go install github.com/tomnomnom/assetfinder@latest >/dev/null 2>&1
echo "[+] Installing subfinder"
GO111MODULE=on go get -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder >/dev/null 2>&1
echo "[+] Installing Nuclei"
GO111MODULE=on go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei >/dev/null 2>&1
echo "[+] Installing Dnsx"
go get -v github.com/projectdiscovery/dnsx/cmd/dnsx >/dev/null 2>&1
echo "[+] Installing Httprobe"
go get -u github.com/tomnomnom/httprobe >/dev/null 2>&1
echo "[+] Installing waybackurls"
go install github.com/tomnomnom/waybackurls@latest >/dev/null 2>&1
echo "[+] Installing anew"
go get -u github.com/tomnomnom/anew >/dev/null 2>&1
echo "[+] Installing Subzy"
go install github.com/lukasikic/subzy@latest >/dev/null 2>&1
echo "[+] Installing HTTPX"
GO111MODULE=on go get -v github.com/projectdiscovery/httpx/cmd/httpx >/dev/null 2>&1
echo "[+] Installation Completed"
echo "[+] Installing GF"
go get -u github.com/tomnomnom/gf
echo "[+] Cloning GF-Patterns from github..."
git clone https://github.com/1ndianl33t/Gf-Patterns
mkdir ~/.gf
echo "[+] Copying GF GF-Patterns to directoty..."
cp Gf-Patterns/*.json ~/.gf