-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
71 lines (57 loc) · 2.44 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
FROM kalilinux/kali-rolling:latest AS base
LABEL maintainer="Artis3n <dev@artis3nal.com>"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends apt-utils \
&& apt-get install -y --no-install-recommends amass awscli curl dnsutils \
dotdotpwn file finger ffuf gobuster git hydra impacket-scripts john less locate \
lsof man-db netcat-traditional nikto nmap proxychains4 python3 python3-pip python3-setuptools \
python3-wheel smbclient smbmap socat ssh-client sslscan sqlmap telnet tmux unzip whatweb vim zip \
# Slim down layer size
&& apt-get autoremove -y \
&& apt-get autoclean -y \
# Remove apt-get cache from the layer to reduce container size
&& rm -rf /var/lib/apt/lists/*
# Second set of installs to slim the layers a bit
# exploitdb and metasploit are huge packages
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
exploitdb metasploit-framework \
# Slim down layer size
&& apt-get autoremove -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists*
WORKDIR /tmp
# AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install
WORKDIR /root
# enum4linux-ng
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3-impacket python3-ldap3 python3-yaml \
&& mkdir /tools \
# Slim down layer size
&& apt-get autoremove -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists*
WORKDIR /tools
RUN git clone https://github.com/cddmp/enum4linux-ng.git /tools/enum4linux-ng \
&& ln -s /tools/enum4linux-ng/enum4linux-ng.py /usr/local/bin/enum4linux-ng
# nmapAutomator
RUN git clone https://github.com/21y4d/nmapAutomator.git /tools/nmapAutomator \
&& ln -s /tools/nmapAutomator/nmapAutomator.sh /usr/local/bin/nmapAutomator
ENV TERM=xterm-256color
ENTRYPOINT ["/bin/bash"]
FROM base AS wordlists
ARG DEBIAN_FRONTEND=noninteractive
# Install Seclists
RUN mkdir -p /usr/share/seclists \
# The apt-get install seclists command isn't installing the wordlists, so clone the repo.
&& git clone --depth 1 https://github.com/danielmiessler/SecLists.git /usr/share/seclists
# Prepare rockyou wordlist
RUN mkdir -p /usr/share/wordlists
WORKDIR /usr/share/wordlists
RUN cp /usr/share/seclists/Passwords/Leaked-Databases/rockyou.txt.tar.gz /usr/share/wordlists/ \
&& tar -xzf rockyou.txt.tar.gz
WORKDIR /root