-
Notifications
You must be signed in to change notification settings - Fork 282
/
Copy pathDockerfile
361 lines (300 loc) · 9.21 KB
/
Dockerfile
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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
FROM ubuntu:18.04
LABEL maintainer="Alexis Ahmed"
# Environment Variables
ENV HOME /root
ENV DEBIAN_FRONTEND=noninteractive
# Working Directory
WORKDIR /root
RUN mkdir ${HOME}/toolkit && \
mkdir ${HOME}/wordlists
# Install Essentials
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
tmux \
gcc \
iputils-ping\
git \
vim \
wget \
awscli \
tzdata \
curl \
make \
nmap \
whois \
python \
python-pip \
python3 \
python3-pip \
perl \
nikto \
dnsutils \
net-tools \
zsh\
nano\
&& rm -rf /var/lib/apt/lists/*
# Install Dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
# sqlmap
sqlmap \
# dirb
dirb \
# dnsenum
cpanminus \
# wfuzz
python-pycurl \
# knock
python-dnspython \
# massdns
libldns-dev \
# wpcscan
libcurl4-openssl-dev \
libxml2 \
libxml2-dev \
libxslt1-dev \
ruby-dev \
libgmp-dev \
zlib1g-dev \
# masscan
libpcap-dev \
# theharvester
python3.7 \
# joomscan
libwww-perl \
# hydra
hydra \
# dnsrecon
dnsrecon \
# zsh
powerline\
# zsh
fonts-powerline\
&& rm -rf /var/lib/apt/lists/*
# tzdata
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata
# configure python(s)
RUN python -m pip install --upgrade setuptools && python3 -m pip install --upgrade setuptools && python3.7 -m pip install --upgrade setuptools
# dnsenum
RUN cd ${HOME}/toolkit && \
git clone https://github.com/fwaeytens/dnsenum.git && \
cd dnsenum/ && \
chmod +x dnsenum.pl && \
ln -s ${HOME}/toolkit/dnsenum/dnsenum.pl /usr/bin/dnsenum && \
cpanm String::Random && \
cpanm Net::IP && \
cpanm Net::DNS && \
cpanm Net::Netmask && \
cpanm XML::Writer
# Sublist3r
RUN cd ${HOME}/toolkit && \
git clone https://github.com/aboul3la/Sublist3r.git && \
cd Sublist3r/ && \
pip install -r requirements.txt && \
ln -s ${HOME}/toolkit/Sublist3r/sublist3r.py /usr/local/bin/sublist3r
# wfuzz
RUN pip install wfuzz
# seclists
RUN cd ${HOME}/wordlists && \
git clone --depth 1 https://github.com/danielmiessler/SecLists.git
# knock
RUN cd ${HOME}/toolkit && \
git clone https://github.com/guelfoweb/knock.git && \
cd knock && \
chmod +x setup.py && \
apt-get update && apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt install python3.7 -y && \
python3.7 setup.py install
# massdns
RUN cd ${HOME}/toolkit && \
git clone https://github.com/blechschmidt/massdns.git && \
cd massdns/ && \
make && \
ln -sf ${HOME}/toolkit/massdns/bin/massdns /usr/local/bin/massdns
# wafw00f
RUN cd ${HOME}/toolkit && \
git clone https://github.com/enablesecurity/wafw00f.git && \
cd wafw00f && \
chmod +x setup.py && \
python setup.py install
# wpscan
RUN cd ${HOME}/toolkit && \
git clone https://github.com/wpscanteam/wpscan.git && \
cd wpscan/ && \
gem install bundler && bundle install --without test && \
gem install wpscan
# commix
RUN cd ${HOME}/toolkit && \
git clone https://github.com/commixproject/commix.git && \
cd commix && \
chmod +x commix.py && \
ln -sf ${HOME}/toolkit/commix/commix.py /usr/local/bin/commix
# masscan
RUN cd ${HOME}/toolkit && \
git clone https://github.com/robertdavidgraham/masscan.git && \
cd masscan && \
make && \
ln -sf ${HOME}/toolkit/masscan/bin/masscan /usr/local/bin/masscan
# altdns
RUN cd ${HOME}/toolkit && \
git clone https://github.com/infosec-au/altdns.git && \
cd altdns && \
pip install -r requirements.txt && \
chmod +x setup.py && \
python setup.py install
# teh_s3_bucketeers
RUN cd ${HOME}/toolkit && \
git clone https://github.com/tomdev/teh_s3_bucketeers.git && \
cd teh_s3_bucketeers && \
chmod +x bucketeer.sh && \
ln -sf ${HOME}/toolkit/teh_s3_bucketeers/bucketeer.sh /usr/local/bin/bucketeer
# Recon-ng
RUN cd ${HOME}/toolkit && \
git clone https://github.com/lanmaster53/recon-ng.git && \
cd recon-ng && \
pip3 install -r REQUIREMENTS && \
chmod +x recon-ng && \
ln -sf ${HOME}/toolkit/recon-ng/recon-ng /usr/local/bin/recon-ng
# XSStrike
RUN cd ${HOME}/toolkit && \
git clone https://github.com/s0md3v/XSStrike.git && \
cd XSStrike && \
pip3 install -r requirements.txt && \
chmod +x xsstrike.py && \
ln -sf ${HOME}/toolkit/XSStrike/xsstrike.py /usr/local/bin/xsstrike
# theHarvester
RUN cd ${HOME}/toolkit && \
git clone https://github.com/AlexisAhmed/theHarvester.git && \
cd theHarvester && \
python3 -m pip install -r requirements.txt && \
chmod +x theHarvester.py && \
ln -sf ${HOME}/toolkit/theHarvester/theHarvester.py /usr/local/bin/theharvester
# CloudFlair
RUN cd ${HOME}/toolkit && \
git clone https://github.com/christophetd/CloudFlair.git && \
cd CloudFlair && \
pip install -r requirements.txt && \
chmod +x cloudflair.py && \
ln -sf ${HOME}/toolkit/CloudFlair/cloudflair.py /usr/local/bin/cloudflair
# joomscan
RUN cd ${HOME}/toolkit && \
git clone https://github.com/rezasp/joomscan.git && \
cd joomscan/ && \
chmod +x joomscan.pl
COPY joomscan.sh /opt
RUN chmod +x /opt/joomscan.sh && \
ln -sf /opt/joomscan.sh /usr/local/bin/joomscan
# go
RUN cd /opt && \
wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz && \
tar -xvf go1.16.4.linux-amd64.tar.gz && \
rm -rf /opt/go1.16.4.linux-amd64.tar.gz && \
mv go /usr/local
ENV GOROOT /usr/local/go
ENV GOPATH /root/go
ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}
# gobuster
RUN cd ${HOME}/toolkit && \
git clone https://github.com/OJ/gobuster.git && \
cd gobuster && \
go get && go install
# virtual-host-discovery
RUN cd ${HOME}/toolkit && \
git clone https://github.com/AlexisAhmed/virtual-host-discovery.git && \
cd virtual-host-discovery && \
chmod +x scan.rb && \
ln -sf ${HOME}/toolkit/virtual-host-discovery/scan.rb /usr/local/bin/virtual-host-discovery
# bucket_finder
RUN cd ${HOME}/toolkit && \
git clone https://github.com/AlexisAhmed/bucket_finder.git && \
cd bucket_finder && \
chmod +x bucket_finder.rb && \
ln -sf ${HOME}/toolkit/bucket_finder/bucket_finder.rb /usr/local/bin/bucket_finder
# dirsearch
RUN cd ${HOME}/toolkit && \
git clone https://github.com/AlexisAhmed/dirsearch.git && \
cd dirsearch && \
chmod +x dirsearch.py && \
ln -sf ${HOME}/toolkit/dirsearch/dirsearch.py /usr/local/bin/dirsearch
# s3recon
RUN pip3 install --upgrade setuptools && \
pip3 install pyyaml pymongo requests s3recon
# subfinder
RUN GO111MODULE=on go get -u -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder
# zsh
RUN git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh &&\
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc &&\
chsh -s /bin/zsh && \
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1 && \
echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"
# dotdotpwn
RUN cd ${HOME}/toolkit && \
cpanm Net::FTP && \
cpanm Time::HiRes && \
cpanm HTTP::Lite && \
cpanm Switch && \
cpanm Socket && \
cpanm IO::Socket && \
cpanm Getopt::Std && \
cpanm TFTP && \
git clone https://github.com/AlexisAhmed/dotdotpwn.git && \
cd dotdotpwn && \
chmod +x dotdotpwn.pl && \
ln -sf ${HOME}/toolkit/dotdotpwn/dotdotpwn.pl /usr/local/bin/dotdotpwn
# whatweb
RUN cd ${HOME}/toolkit && \
git clone https://github.com/urbanadventurer/WhatWeb.git && \
cd WhatWeb && \
chmod +x whatweb && \
ln -sf ${HOME}/toolkit/WhatWeb/whatweb /usr/local/bin/whatweb
# fierce
RUN python3 -m pip install fierce
# amass
RUN export GO111MODULE=on && \
go get -v github.com/OWASP/Amass/v3/...
# S3Scanner
RUN cd ${HOME}/toolkit && \
git clone https://github.com/sa7mon/S3Scanner.git && \
cd S3Scanner && \
pip3 install -r requirements.txt
# droopsecan
RUN cd ${HOME}/toolkit && \
git clone https://github.com/droope/droopescan.git && \
cd droopescan && \
pip install -r requirements.txt
# subjack
RUN go get github.com/haccer/subjack
# SubOver
RUN go get github.com/Ice3man543/SubOver
# Compress wordlist
RUN cd ${HOME}/wordlists && \
tar czf SecList.tar.gz ${HOME}/wordlists/SecLists/ && \
rm -rf SecLists
# ZSH configuration
RUN export SHELL=/usr/bin/zsh && \
cd ${HOME} && \
rm .zshrc && \
wget https://raw.githubusercontent.com/AlexisAhmed/BugBountyToolkit-ZSH/main/.zshrc
# ffuf
RUN go get -u github.com/ffuf/ffuf
# httprobe
RUN go get -u github.com/tomnomnom/httprobe
# gitGraber
RUN cd ${HOME}/toolkit && \
git clone https://github.com/hisxo/gitGraber.git && \
cd gitGraber && \
ln -sf ${HOME}/toolkit/gitGraber/gitGraber.py /usr/local/bin/gitGraber
# waybackurls
RUN go get github.com/tomnomnom/waybackurls
# Katoolin
RUN cd ${HOME}/toolkit && \
git clone https://github.com/LionSec/katoolin.git && \
cd katoolin && \
chmod +x katoolin.py
# Clean Go Cache
RUN go clean -cache && \
go clean -testcache && \
go clean -modcache