-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathinstall.sh
223 lines (149 loc) · 4.72 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
#!/bin/bash
sudo apt-get -y update
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y libssl-dev
sudo apt-get install -y jq
sudo apt-get install -y ruby-full
sudo apt-get install -y libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential libgmp-dev zlib1g-dev
sudo apt-get install -y build-essential libssl-dev libffi-dev python-dev
sudo apt-get install -y python-setuptools
sudo apt-get install -y libldns-dev
sudo apt-get install -y python3-pip
sudo apt-get install -y python-pip
sudo apt-get install -y python-dnspython
sudo apt-get install -y git
sudo apt-get install -y rename
sudo apt-get install -y xargs
#install go
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"
wget https://dl.google.com/go/go1.18.5.linux-amd64.tar.gz
sudo tar -xvf go1.18.5.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo mv go /usr/local
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
echo 'export GOROOT=/usr/local/go' >> ~/.bash_profile
echo 'export GOPATH=$HOME/go' >> ~/.bash_profile
echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.bash_profile
source ~/.bash_profile
sleep 1
break
;;
no)
echo "Please install go and rerun this script"
echo "Aborting installation..."
exit 1
;;
esac
done
fi
#create a tools folder in ~/
mkdir ~/tools
cd ~/tools/
echo "Installing crobat"
go install github.com/cgboal/sonarsearch/cmd/crobat@latest
echo "done"
echo "Installing subfinder"
go install github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
echo "done"
echo "Installing assetfinder"
go install github.com/tomnomnom/assetfinder@latest
echo "done"
echo "installing dnsgen"
# sudo pip install urllib3==1.23 sudo pip install requests
git clone https://github.com/ProjectAnte/dnsgen
cd dnsgen
pip3 install -r requirements.txt
sudo python3 setup.py install
cd ~/tools/
echo "done"
echo "installing shuffledns"
go install github.com/projectdiscovery/shuffledns/cmd/shuffledns@latest
echo "done"
echo "installing massdns"
git clone https://github.com/blechschmidt/massdns.git
cd ~/tools/massdns
make
cd ~/tools/
echo "done"
echo "installing gowitness"
go install github.com/sensepost/gowitness@latest
echo "done"
echo "installing waybackurls"
go install github.com/tomnomnom/waybackurls@latest
echo "done"
echo "installing httpx"
go install github.com/projectdiscovery/httpx/cmd/httpx@latest
echo "done"
echo "installing feroxbuster"
curl -sL https://raw.githubusercontent.com/epi052/feroxbuster/master/install-nix.sh | bash
echo "done"
echo "installing ffuf"
go install github.com/ffuf/ffuf@latest
echo "done"
echo "installing gf"
go install github.com/tomnomnom/gf@latest
echo "done"
echo "installing Gf-Patterns"
mkdir .gf
sudo cp -r $GOPATH/pkg/mod/github.com/tomnomnom/gf*/examples/ ~/.gf
git clone https://github.com/1ndianl33t/Gf-Patterns
sudo mv ~/tools/Gf-Patterns/*.json ~/.gf
echo "done"
echo "installing sqlmap"
git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git sqlmap-dev
cd ~/tools/
echo "done"
echo "installing naabu"
sudo apt install -y libpcap-dev
go install github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
echo "done"
echo "installing unfurl"
go install github.com/tomnomnom/unfurl@latest
echo "done"
echo "installing notify"
go install github.com/projectdiscovery/notify/cmd/notify@latest
echo "done"
echo "installing nuclei"
go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
echo "done"
echo "installing CorsMe"
go install github.com/shivangx01b/CorsMe@latest
echo "done"
echo "installing ppmap"
go install github.com/kleiton0x00/ppmap@latest
echo "done"
echo "installing dalfox"
go install github.com/hahwul/dalfox/v2@latest
echo "done"
echo "installing ParamSpider"
git clone https://github.com/devanshbatham/ParamSpider
cd ParamSpider
pip3 install -r requirements.txt
cd ~/tools/
echo "done"
echo "installing qsreplace"
go install github.com/tomnomnom/qsreplace@latest
echo "done"
echo "installing interactsh"
go install github.com/projectdiscovery/interactsh/cmd/interactsh-client@latest
echo "done"
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"
sudo pip install urllib3==1.23 sudo pip install requests
echo -e "\n\n\n\n\n\n\n\n\n\n\nDone! All tools are set up in ~/tools"
ls -la