-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
213 lines (195 loc) · 10.5 KB
/
Dockerfile
File metadata and controls
213 lines (195 loc) · 10.5 KB
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
ARG BASE_TAG
FROM golang:bookworm AS build
RUN export DEBIAN_FRONTEND="noninteractive" \
&& echo "deb http://deb.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/backports.list \
&& echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache \
&& echo 'Acquire::Languages "none;";' > /etc/apt/apt.conf.d/no-lang \
&& apt-get -yqq update \
&& apt-get --no-install-recommends -yqq install \
curl \
git \
libpcap-dev \
upx-ucl
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/tomnomnom/meg@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/tomnomnom/assetfinder@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/tomnomnom/gf@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/tomnomnom/httprobe@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/tomnomnom/waybackurls@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/tomnomnom/unfurl@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/tomnomnom/anew@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/jaeles-project/gospider@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/zmap/zdns@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/ffuf/ffuf@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/hakluke/hakrawler@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/003random/getJS@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/zricethezav/gitleaks@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/lc/gau@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/shuffledns/cmd/shuffledns@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/chaos-client/cmd/chaos@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/dnsx/cmd/dnsx@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/httpx/cmd/httpx@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/tlsx/cmd/tlsx@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/katana/cmd/katana@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/asnmap/cmd/asnmap@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/proxify/cmd/proxify@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/cloudlist/cmd/cloudlist@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/uncover/cmd/uncover@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/cvemap/cmd/cvemap@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/alterx/cmd/alterx@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/cdncheck/cmd/cdncheck@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/notify/cmd/notify@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/projectdiscovery/urlfinder/cmd/urlfinder@latest
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/owasp-amass/amass/v4/...@master
RUN CGO_ENABLED=1 GOOS=linux go install -ldflags="-s -w" github.com/hahwul/dalfox/v2@latest
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& . $HOME/.cargo/env \
&& cd /tmp \
&& git clone https://github.com/RustScan/RustScan \
&& cd RustScan \
&& cargo build --release
RUN git clone https://github.com/blechschmidt/massdns /tmp/massdns \
&& cd /tmp/massdns \
&& make
RUN mkdir -p /root/bin
RUN cp /go/bin/* /root/bin/
RUN cp /tmp/RustScan/target/release/rustscan /root/bin/
RUN cp /tmp/massdns/bin/massdns /root/bin/
RUN upx /root/bin/*
FROM infosux/haxtools:${BASE_TAG:-base}
COPY --from=build /go/pkg/mod/github.com/tomnomnom/meg@v0.3.0/lists/ /opt/meg/
COPY --from=build /root/bin/ /usr/bin/
RUN export DEBIAN_FRONTEND="noninteractive" \
&& apt-get -yqq update \
&& apt-get --no-install-recommends -yqq install \
apktool \
cewl \
commix \
crackmapexec \
dirb \
gobuster \
hashcat \
hashcat-utils \
hashid \
hydra \
john \
joomscan \
masscan \
metasploit-framework \
mitmproxy \
pdfcrack \
pngcheck \
powershell-empire \
pwncat \
python3-impacket \
python3-pwntools \
responder \
smbmap \
sqlmap \
sslscan \
stegcracker \
steghide \
stegsnow \
wafw00f \
wfuzz \
whatweb \
wpscan \
&& apt-get -y autoremove --purge \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /root/.cache \
&& rm -rf /var/cache/* \
&& rm -rf /var/log/* \
&& rm -rf /usr/share/doc-base/* \
&& rm -rf /usr/share/groff/* \
&& rm -rf /usr/share/info/* \
&& rm -rf /usr/share/lintian/* \
&& rm -rf /usr/share/linda/* \
&& rm -rf /var/cache/man/* \
&& find /usr/share/doc -depth -type f ! -name copyright -exec rm {} \; \
&& find /usr/share/locale -mindepth 1 -maxdepth 1 ! -name 'en_GB' ! -name 'en_US' -exec rm -r {} \; \
&& find /usr/share/i18n/locales -mindepth 1 -maxdepth 1 ! -name 'en_GB' ! -name 'en_US' -exec rm -r {} \; \
&& rm -rf /var/lib/gems/*/doc \
&& rm -rf /usr/share/icons/Adwaita/*
# RUN export DEBIAN_FRONTEND="noninteractive" \
# && apt-get -yqq update \
# && apt-get --no-install-recommends -yqq install \
# build-essential \
# python3-dev \
# && pip3 install --upgrade --no-cache-dir aclpwn \
# && pip3 install --upgrade --no-cache-dir aiodnsbrute \
# && pip3 install --upgrade --no-cache-dir stego-lsb \
# && apt-get -y remove \
# build-essential \
# python3-dev \
# && apt-get -y autoremove --purge \
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/* \
# && rm -rf /root/.cache \
# && rm -rf /var/cache/* \
# && rm -rf /var/log/* \
# && rm -rf /usr/share/doc-base/* \
# && rm -rf /usr/share/groff/* \
# && rm -rf /usr/share/info/* \
# && rm -rf /usr/share/lintian/* \
# && rm -rf /usr/share/linda/* \
# && rm -rf /var/cache/man/* \
# && find /usr/share/doc -depth -type f ! -name copyright -exec rm {} \; \
# && find /usr/share/locale -mindepth 1 -maxdepth 1 ! -name 'en_GB' ! -name 'en_US' -exec rm -r {} \; \
# && find /usr/share/i18n/locales -mindepth 1 -maxdepth 1 ! -name 'en_GB' ! -name 'en_US' -exec rm -r {} \; \
# && rm -rf /var/lib/gems/*/doc
RUN git clone --depth 1 https://gitlab.com/exploit-database/exploitdb /usr/share/exploitdb \
&& ln -sf /usr/share/exploitdb/searchsploit /usr/bin/searchsploit \
&& rm -rf /usr/share/exploitdb/.git
RUN gem install --no-document evil-winrm
RUN gem install --no-document zsteg
RUN echo MaxCircuitDirtiness 10 >> /etc/tor/torrc \
&& update-rc.d tor enable \
&& sed -i 's/^strict_chain/#strict_chain/g;s/^round_robin_chain/round_robin_chain/g' /etc/proxychains4.conf
RUN update-ca-certificates \
&& rm -rf /usr/local/share/ca-certificates/*.crt
# ghidra
# RUN cd /opt && \
# wget -O /opt/ghidra.zip https://github.com$(curl -s https://github.com/NationalSecurityAgency/ghidra/releases/ | grep "<a href.*zip" -m 1 | cut -d '"' -f 2) && \
# unzip -qq ghidra.zip && \
# rm -rf ghidra.zip && \
# mv /opt/ghidra_* /opt/ghidra
# pyinstxtractor
# RUN wget "https://raw.githubusercontent.com/countercept/python-exe-unpacker/master/pyinstxtractor.py" -O /usr/bin/pyinstxtractor && \
# chmod +x /usr/bin/pyinstxtractor
# RUN git clone --depth 1 https://github.com/danielmiessler/SecLists.git /opt/seclists && \
# cd /opt/seclists/Passwords/Leaked-Databases && \
# tar -xvzf rockyou.txt.tar.gz && \
# rm rockyou.txt.tar.gz && \
# rm rockyou-withcount.txt.tar.gz && \
# rm -rf /opt/seclists/.git
# dns nameservers
# RUN wget "https://public-dns.info/nameservers.csv" -O /tmp/nameservers.csv && \
# grep ",1.00," /tmp/nameservers.csv | cut -d ',' -f 1 > /opt/nameservers-all.txt && \
# grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" /opt/nameservers-all.txt > /opt/nameservers.txt && \
# rm -rf /tmp/nameservers.csv
# RUN mkdir -p /opt/windows && \
# wget "https://raw.githubusercontent.com/BloodHoundAD/BloodHound/master/Collectors/SharpHound.exe" -O /opt/windows/sharphound.exe && \
# wget "https://raw.githubusercontent.com/BloodHoundAD/BloodHound/master/Collectors/SharpHound.ps1" -O /opt/windows/sharphound.ps1
# jaws
# RUN git clone --depth 1 https://github.com/411Hall/JAWS.git /opt/windows/jaws && \
# rm -rf /opt/windows/jaws/.git
# nishang
# RUN git clone --depth 1 https://github.com/samratashok/nishang.git /opt/windows/nishang && \
# rm -rf /opt/windows/nishang/.git
# winpeas
# RUN wget "https://raw.githubusercontent.com/carlospolop/PEASS-ng/master/winPEAS/winPEASbat/winPEAS.bat" -O /opt/windows/winpeas.bat
# RUN mkdir -p /opt/linux && \
# wget "https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh" -O /opt/linux/linenum.sh
# lse
# RUN wget "https://raw.githubusercontent.com/diego-treitos/linux-smart-enumeration/master/lse.sh" -O /opt/linux/lse.sh
# linpeas
# RUN wget "https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh" -O /opt/linux/linpeas.sh
# pspy
# RUN wget "https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy32" -O /opt/linux/pspy32 && \
# wget "https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy32s" -O /opt/linux/pspy32s && \
# wget "https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy64" -O /opt/linux/pspy64 && \
# wget "https://github.com/DominicBreuker/pspy/releases/download/v1.2.0/pspy64s" -O /opt/linux/pspy64s
# RUN wget "https://raw.githubusercontent.com/stealthcopter/deepce/main/deepce.sh" -O /opt/linux/deepce.sh