-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
install.sh
executable file
·228 lines (201 loc) · 10.9 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
#!/bin/bash
# Created By pikpikcu
# Support Me And Join Contributor:
# Email: [email protected]
# Color
red='\e[31m'
green='\e[32m'
blue='\e[34m'
white='\e[97m'
clear
echo -e "${red}
oo_____oo_ooooooo______oooo_________________________________
_oo___oo__oo____oo___oo____oo_oo_ooo___ooooo___oooo___oooo__
__oo_oo___oo____oo__oo________ooo___o_oo___oo_oo___o_oo___o_
___ooo____ooooooo___oo________oo______oo___oo___oo_____oo___
__oo_oo___oo____oo___oo____oo_oo______oo___oo_o___oo_o___oo_
_oo___oo__oo_____oo____oooo___oo_______ooooo___oooo___oooo__
____________________________________________________________
"
echo -e "${blue}"
# golang
if [[ -z "$XRCross" ]]; then
echo "Install XRCross..."
PS3="Select Options: "
XRCross=("yes" "no")
select XRCross in "${XRCross[@]}"; do
case $XRCross in
"yes" | "y" | "Y" | "YES")
echo -e "${green}[+] Checking Modules..."
sleep 3
if [ ! -f /usr/bin/go ]; then
echo -e "\n${red}[+]${green}Install Golang"
sudo apt install golang -y
echo "export PATH=$PATH:/usr/local/go/bin" >>~/.bashrc
source ~/.bashrc
echo "export GOPATH=$HOME/go" >>~/.bashrc
source ~/.bashrc
GO111MODULE=on
sleep 1
echo -e "${red}[+] Done Install Golang"
fi
if [ ! -f ~/go/bin/subjack ]; then
# SubOver
echo -e "\n${red}[+]${green}Install subjack"
go get github.com/haccer/subjack
echo -e "${red}[+] Done Install subjack"
fi
if [ ! -f ~/go/bin/dalfox ]; then
# [dalfox]
echo -e "\n${red}[+]${green}Install dalfox"
GO111MODULE=on go get -u -v github.com/hahwul/dalfox
echo -e "${red}[+] Done Install dalfox"
fi
if [ ! -f ~/go/bin/hakcheckurl ]; then
# [hakcheckurl]
echo -e "\n${red}[+]${green}Install hakcheckurl"
go get -u github.com/hakluke/hakcheckurl
echo -e "${red}[+] Done Install hakcheckurl"
fi
if [ ! -f ~/go/bin/hakrawler ]; then
# [hakrawler]
echo -e "\n${red}[+]${green}Install hakrawler"
go get -u github.com/hakluke/hakrawler
echo -e "${red}[+] Done Install hakrawler"
fi
if [ ! -f ~/go/bin/waybackurls ]; then
# [Waybackurls]
echo -e "\n${red}[+]${green}Install Waybackurls"
go get -u github.com/tomnomnom/waybackurls
echo -e "${red}[+] Done Install Waybackurls"
fi
if [ ! -f ~/go/bin/gau ]; then
# [ Gau]
echo -e "\n${red}[+]${green}Install Gau"
go get -u github.com/lc/gau
echo -e "${red}[+] Done Install Gau"
fi
if [ ! -f ~/go/bin/dirsearch ]; then
# [ dirsearch]
echo -e "\n${red}[+]${green}Install dirsearch"
go get github.com/evilsocket/dirsearch
go get github.com/evilsocket/brutemachine
cd ~/go/src/github.com/evilsocket/dirsearch || exit
make get_glide
make install_dependencies
make build
cd ~/go/src/github.com/evilsocket/dirsearch/build/linux_x64/ || exit
cp dirsearch ~/go/bin/
echo -e "${red}[+] Done Install dirsearch"
fi
if [ ! -f ~/go/bin/assetfinder ]; then
# [ Assetfinder]
echo -e "\n${red}[+]${green}Install Assetfinder"
go get -u github.com/tomnomnom/assetfinder
echo -e "${red}[+] Done Install Assetfinder"
fi
if [ ! -f ~/go/bin/httprobe ]; then
# [Httprobe]
echo -e "\n${red}[+]${green}Install Httprobe"
go get -u github.com/tomnomnom/httprobe
echo -e "${red}[+] Done Install Httprobe"
fi
if [ ! -f ~/go/bin/qsreplace ]; then
# [qsreplace]
echo -e "\n${red}[+]${green}Install qsreplace"
go get -u github.com/tomnomnom/qsreplace
echo -e "${red}[+] Done Install qsreplace"
fi
if [ ! -f ~/go/bin/ffuf ]; then
# [ffuf]
echo -e "\n${red}[+]${green}Install ffuf"
go get -u github.com/ffuf/ffuf
echo -e "${red}[+] Done Install ffuf"
fi
if [ ! -f ~/go/bin/subfinder ]; then
# [subfinder]
echo -e "\n${red}[+]${green}Install subfinder"
go get -v github.com/projectdiscovery/subfinder/cmd/subfinder
echo -e "${red}[+] Done Install subfinder"
fi
if [ ! -f ~/go/bin/CORS-Scanner ]; then
# [cors]
echo -e "\n${red}[+]${green}Install CORS-Scanner"
go get -u github.com/Tanmay-N/CORS-Scanner
echo -e "${red}[+] Done Install CORS-Scanner"
fi
if [ ! -f ~/go/bin/gf ]; then
# [gf]
echo -e "\n${red}[+]${green}Install gf"
go get -u github.com/tomnomnom/gf
echo 'source $GOPATH/src/github.com/tomnomnom/gf/gf-completion.bash' >>~/.bashrc
echo 'source $GOPATH/src/github.com/tomnomnom/gf/gf-completion.zsh' >>~/.zshrc
cp -r $GOPATH/src/github.com/tomnomnom/gf/examples ~/.gf
echo -e "${red}[+] Done Install gf"
fi
if [ ! -d ~/.gf/ ]; then
echo -e "\n${red}[+]${green}Install Gf-Patterns"
git clone https://github.com/1ndianl33t/Gf-Patterns
mkdir -p ~/.gf/
mv Gf-Patterns/*.json ~/.gf
cp -r config/*.json ~/.gf
rm -rf Gf-Patterns
echo -e "${red}[+] Done Install Gf-Patterns"
fi
if [ ! -f ~/go/bin/httpx ]; then
echo -e "\n${red}[+]${green}Install httpx"
GO111MODULE=on go get -u -v github.com/projectdiscovery/httpx/cmd/httpx
echo -e "${red}[+] Done Install httpx"
fi
if [ ! -f ~/go/bin/qsreplace ]; then
echo -e "\n${red}[+]${green}Install qsreplace"
go get -u github.com/tomnomnom/qsreplace
echo -e "${red}[+] Done Install qsreplace"
fi
if [ ! -f $HOME/tools/http-smuggling-test.py ]; then
echo -e "\n${red}[+]${green}Install http-smuggling-test"
mkdir -p $HOME/tools
wget https://raw.githubusercontent.com/belane/http-smuggling-test/master/http-smuggling-test.py -O $HOME/tools/http-smuggling-test.py
echo -e "${red}[+] Done Install http-smuggling-test"
fi
if [ ! -f ~/go/bin/anti-burl ]; then
echo -e "\n${red}[+]${green}Install anti-burl"
go get -u github.com/tomnomnom/hacks/anti-burl
echo -e "${red}[+] Done Install anti-burl"
fi
if [ ! -f ~/go/bin/hinject ]; then
echo -e "\n${red}[+]${green}Install hinject"
go get -u github.com/dwisiswant0/hinject
echo -e "${red}[+] Done Install hinject"
fi
if [ ! -f ~/go/bin/nuclei ]; then
echo -e "\n${red}[+]${green}Install nuclei"
GO111MODULE=on go get -u -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
echo -e "${red}[+] Done Install nuclei"
fi
if [ ! -f /usr/bin/js-beautify ]; then
echo -e "\n${red}[+]${green}Install jsbeautifier"
pip install jsbeautifier
echo -e "${red}[+] Done Install jsbeautifier"
fi
if [ ! -f ~/go/bin/github-subs ]; then
echo -e "\n${red}[+]${green}Install github-subs"
go get -u github.com/theblackturtle/github-subs
echo -e "${red}[+] Done Install github-subs"
fi
if [ ! -f ~/go/bin/s3enum ]; then
echo -e "\n${red}[+]${green}Install s3enum"
go get -u github.com/koenrh/s3enum
echo -e "${red}[+] Done Install s3enum"
fi
echo -e "${green}\n[+] Done Check Module.\n"
break
;;
"no" | "n" | "NO" | "N")
echo "Aborting installation"
exit 1
;;
esac
done
shift
fi