-
Notifications
You must be signed in to change notification settings - Fork 32
/
Dockerfile
179 lines (150 loc) · 4.42 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
# Base off the lastest ubuntu image
FROM ubuntu:18.04
# Metadata
LABEL maintainer="[email protected]"
# Environment variables
ENV HOME /root
ENV DEBIAN_FRONTEND=noninteractive
#Set up environment
WORKDIR /root/workspace
RUN mkdir ${HOME}/toolkit \
&& mkdir ${HOME}/wordlists
# Add a volume
VOLUME ["/root/workspace"]
# Install base packages
# This list should be stable to optimise docker builds
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
apt-utils \
build-essential \
curl \
dnsutils \
gcc \
git \
gnupg \
iputils-ping \
jq \
locales \
make \
nano \
net-tools \
perl \
python \
python-pip \
python3 \
python3-pip \
ssh \
tmux \
tzdata \
vim \
wget \
&& rm -rf /var/lib/apt/lists/*
# Add Kali pagkages list
RUN sh -c "echo 'deb https://http.kali.org/kali kali-rolling main non-free contrib' > /etc/apt/sources.list.d/kali.list" \
&& wget 'https://archive.kali.org/archive-key.asc' \
&& apt-key add archive-key.asc
# The important part (fonts)
RUN locale-gen "en_US.UTF-8" \
&& LC_ALL=en_US.UTF-8 \
&& LANG=en_US.UTF-8 \
&& cd ${HOME}/toolkit \
&& git clone https://github.com/powerline/fonts.git --depth=1 \
&& sh fonts/install.sh \
&& rm -rf fonts
# Install dependencies
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
libpcap-dev \
python3.7 \
xauth
# Install essential tools
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
amass \
awscli \
dirb \
dnsrecon \
ftp \
hydra \
masscan \
nikto \
nmap \
sqlmap \
theharvester \
whois \
wpscan
# go
RUN cd /opt \
&& wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz \
&& tar -xvf go1.13.3.linux-amd64.tar.gz \
&& rm -rf /opt/go1.13.3.linux-amd64.tar.gz \
&& mv go /usr/local
ENV GOROOT /usr/local/go
ENV GOPATH /root/go
ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}
# configure python(s)
RUN python -m pip install --upgrade setuptools && python3 -m pip install --upgrade setuptools && python3.7 -m pip install --upgrade setuptools && python3 -m pip install --upgrade wheel
# install pip modules
RUN python3 -m pip install \
loguru \
pandas \
slack-webhook \
xmltodict
# Install odbc driver and pyodbc
# From https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list \
&& apt-get update -y \
&& ACCEPT_EULA=Y apt-get install -y --no-install-recommends msodbcsql17 unixodbc-dev python3-setuptools python3-dev \
&& python3 -m pip install pyodbc
# chaos client - projectdiscovery.io
RUN GO111MODULE=on go get -u github.com/projectdiscovery/chaos-client/cmd/chaos
# dirsearch
RUN cd ${HOME}/toolkit \
&& git clone https://github.com/maurosoria/dirsearch.git
# eyewitness
RUN cd ${HOME}/toolkit \
&& git clone https://github.com/FortyNorthSecurity/EyeWitness.git \
&& cd EyeWitness/Python/setup \
&& ./setup.sh
# fuff
RUN go get github.com/ffuf/ffuf
# gobuster
RUN cd ${HOME}/toolkit \
&& git clone https://github.com/OJ/gobuster.git \
&& cd gobuster \
&& go get && go install
# gron
RUN go get -u github.com/tomnomnom/gron
# hakrawler
RUN go get github.com/hakluke/hakrawler
# httprobe
RUN go get -u github.com/tomnomnom/httprobe
# masscan
RUN cd ${HOME}/toolkit \
&& git clone https://github.com/robertdavidgraham/masscan \
&& cd masscan \
&& make \
&& cp bin/masscan /usr/bin
# massdns
RUN cd ${HOME}/toolkit \
&& git clone https://github.com/blechschmidt/massdns \
&& cd massdns \
&& make \
&& cp bin/massdns /usr/bin
# payloadsallthethings
RUN cd ${HOME}/wordlists \
&& git clone --depth 1 https://github.com/swisskyrepo/PayloadsAllTheThings
# seclists
RUN cd ${HOME}/wordlists \
&& git clone --depth 1 https://github.com/danielmiessler/SecLists.git
# subfinder
RUN go get -v github.com/projectdiscovery/subfinder/cmd/subfinder
# Set up personal configuration
RUN cd ${HOME}/toolkit \
&& git clone https://github.com/JakobRPennington/config.git \
&& cd config \
&& chmod +x setup-linux.sh \
&& ./setup-linux.sh
# Run with ZSH
CMD ["/usr/bin/zsh","-l"]