-
-
Notifications
You must be signed in to change notification settings - Fork 177
/
install.sh
323 lines (285 loc) · 10.3 KB
/
install.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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
#!/bin/bash
BK="\e[7m"
RT="\e[0m"
GR="\e[32m"
YW="\e[93m"
if (( $EUID != 0 )); then
echo -e "MAKE SURE YOU'RE ROOT BEFORE RUNNING THE SCRIPT"
exit
fi
folders(){
mkdir -p ~/tools
mkdir -p ~/tools/.tmp
mkdir -p ~/.gf
mkdir -p ~/wordlists
}
golanguage(){
goversion=$(curl -ks -L https://go.dev/VERSION?m=text)
wget https://go.dev/dl/$goversion.linux-amd64.tar.gz -q
rm -rf /usr/local/go && tar -C /usr/local -xzf $goversion.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
echo "export PATH=$PATH:/usr/local/go/bin" >> .bashrc
if command -v go &> /dev/null; then
echo -e "\n${GR}GO INSTALLED SUCCESSFULLY${RT}"
else
echo -e "\n${YW}THERE'S A PROBLEM INSTALLING GO, TRY INSTALLING IT MANUALLY${RT}"
fi
rm -rf $goversion.linux-amd64.tar.gz
}
dependencies(){
mv .github/payloads/patterns/*.json ~/.gf/ 2> /dev/null && cd
echo -e "${BK}INSTALLING ALL DEPENDENCIES${RT}"
sudo apt-get update > /dev/null 2>&1
sudo apt-get full-upgrade -y > /dev/null 2>&1
sudo apt-get install apt-transport-https bsdmainutils build-essential snapd cmake curl dnsutils gcc git jq libdata-hexdump-perl libffi-dev libpcap-dev libssl-dev libxml2-dev libxml2-utils libxslt1-dev lynx medusa nmap procps pv python3 python3-dev python3-pip wget zip zlib1g-dev libpcap-dev screen -y > /dev/null 2>&1
sudo snap install chromium > /dev/null 2>&1
golanguage
echo -e "${GR}SUCCESS${RT}\n"
}
githubd(){
echo -e "${BK}DOWNLOADING AND INSTALLING ALL TOOLS FROM GITHUB${RT}\n"
echo -e "\n- Installing Sublister"
git clone https://github.com/aboul3la/Sublist3r.git -q ~/tools/Sublist3r
cd ~/tools/Sublist3r && sudo pip3 install -r requirements.txt > /dev/null 2>&1
git clone https://github.com/1ndianl33t/Gf-Patterns -q && mv Gf-Patterns/*.json ~/.gf/ && rm -rf Gf-Patterns/ > /dev/null 2>&1
if [ -s ~/tools/Sublist3r/sublister.py ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing Bhedak"
cd && pip3 install bhedak > /dev/null 2>&1
cd && pip3 install tldextract > /dev/null 2>&1
which bhedak &> /dev/null &&
if command -v bhedak &> /dev/null; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing Agnee"
sudo pip3 install git+https://github.com/R0X4R/Search-Engines-Scraper.git > /dev/null 2>&1 && sudo pip3 install agnee > /dev/null 2>&1
if command -v agnee &> /dev/null; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing uro"
cd && pip3 install uro > /dev/null 2>&1
if command -v uro &> /dev/null; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing anew"
go install github.com/tomnomnom/anew@latest > /dev/null 2>&1
if [ -f ~/go/bin/anew ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing naabu"
go install github.com/projectdiscovery/naabu/v2/cmd/naabu@latest > /dev/null 2>&1
if [ -f ~/go/bin/naabu ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing gobuster"
go install github.com/OJ/gobuster/v3@latest > /dev/null 2>&1
if [ -f ~/go/bin/gobuster ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing gf"
go install github.com/tomnomnom/gf@latest > /dev/null 2>&1
if [ -f ~/go/bin/anew ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing gospider"
cd && git clone https://github.com/jaeles-project/gospider ~/tools/.tmp/gospider -q
cd ~/tools/.tmp/gospider 2> /dev/null
go install > /dev/null 2>&1
if [ -f ~/go/bin/gospider ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing aquatone"
wget -q https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip > /dev/null 2>&1
unzip aquatone_linux_amd64_1.7.0.zip > /dev/null 2>&1
mv aquatone /usr/bin/ > /dev/null 2>&1
rm -rf aquatone* LICENSE.txt README.md
if command -v aquatone &> /dev/null; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing assetfinder"
go install github.com/tomnomnom/assetfinder@latest > /dev/null 2>&1
if [ -f ~/go/bin/assetfinder ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing crobat"
go install github.com/cgboal/sonarsearch/cmd/crobat@latest > /dev/null 2>&1
if [ -f ~/go/bin/crobat ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing gau"
go install github.com/lc/gau/v2/cmd/gau@latest > /dev/null 2>&1
if [ -f ~/go/bin/gau ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing waybackurls"
go install github.com/tomnomnom/waybackurls@latest > /dev/null 2>&1
if [ -f ~/go/bin/waybackurls ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing kxss"
go install github.com/Emoe/kxss@latest > /dev/null 2>&1
if [ -f ~/go/bin/kxss ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing qsreplace"
go install github.com/tomnomnom/qsreplace@latest > /dev/null 2>&1
if [ -f ~/go/bin/qsreplace ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing ffuf"
cd ~/tools/.tmp/ && git clone https://github.com/ffuf/ffuf -q
cd ffuf && go install > /dev/null 2>&1
if [ -f ~/go/bin/ffuf ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing dnsx"
go install -v github.com/projectdiscovery/dnsx/cmd/dnsx@latest > /dev/null 2>&1
if [ -f ~/go/bin/dnsx ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing notify"
go install -v github.com/projectdiscovery/notify/cmd/notify@latest > /dev/null 2>&1
if [ -f ~/go/bin/notify ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing dalfox"
go install github.com/hahwul/dalfox/v2@latest > /dev/null 2>&1
if [ -f ~/go/bin/dalfox ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing crlfuzz"
cd ~/tools/.tmp/ && git clone https://github.com/dwisiswant0/crlfuzz -q
cd crlfuzz/cmd/crlfuzz && go install > /dev/null 2>&1
if [ -f ~/go/bin/crlfuzz ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing nuclei"
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest > /dev/null 2>&1
if [ -f ~/go/bin/nuclei ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing subfinder"
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest > /dev/null 2>&1
if [ -f ~/go/bin/subfinder ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing httprobe"
cd ~/tools/.tmp && git clone https://github.com/tomnomnom/httprobe.git -q
cd httprobe && go install > /dev/null 2>&1
if [ -f ~/go/bin/httprobe ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing httpx"
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest > /dev/null 2>&1
if [ -f ~/go/bin/httpx ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing amass"
go install -v github.com/OWASP/Amass/v3/...@master > /dev/null 2>&1
if [ -f ~/go/bin/amass ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Installing gobuster"
go install github.com/OJ/gobuster/v3@latest > /dev/null 2>&1
if [ -f ~/go/bin/gobuster ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
}
wordlistsd(){
echo -e "\n${BK}DOWNLOADING ALL THE WORDLISTS${RT}"
cd ~/wordlists/
echo -e "\n- Downloading subdomains wordlists"
wget -q https://raw.githubusercontent.com/danielmiessler/SecLists/master/Discovery/DNS/deepmagic.com-prefixes-top50000.txt -O subdomains.txt
if [ -s subdomains.txt ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Downloading resolvers wordlists"
wget -q https://raw.githubusercontent.com/janmasarik/resolvers/master/resolvers.txt -O resolvers.txt
if [ -s resolvers.txt ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
echo -e "\n- Downloading fuzz wordlists"
wget -q https://raw.githubusercontent.com/Bo0oM/fuzz.txt/master/fuzz.txt -O fuzz.txt
if [ -s fuzz.txt ]; then
echo -e "${GR}SUCCESS${RT}"
else
echo -e "${YW}FAILED${RT}"
fi
}
main(){
folders
dependencies
githubd
wordlistsd
echo -e "\n${BK}FINISHING UP THINGS${RT}"
rm -rf ~/tools/.tmp/ > /dev/null 2>&1
sudo cp ~/go/bin/* /usr/bin/ > /dev/null 2>&1
nuclei -update-templates > /dev/null 2>&1
echo -e "\nPLEASE CONFIGURE NOTIFY API'S IN ${BK} ~/.config/notify/provider-config.yaml ${RT} FILE"
echo -e "THANKS FOR INSTALLING ${BK}GARUD${RT}. HAPPY HUNTING :)\nPS: If you get any bug using garud, please tweet about it and tag @R0X4R, also support me on ko-fi"
garud -h 2> /dev/null
}
while true
do
main
exit
done