-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
56 lines (39 loc) · 1.22 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
FROM kalilinux/kali-linux-docker
MAINTAINER @viyatb [email protected], @alexandrasandulescu [email protected]
# Kali signatures preventive update
RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y gnupg
RUN wget -q -O - archive.kali.org/archive-key.asc | apt-key add
# install required packages from Kali repos
COPY packages.sh /
RUN ["sh", "packages.sh"]
# Cleanup
RUN apt-get clean
RUN apt-get -y autoremove
# dowload optional packages archives
COPY optional_tools.sh /usr/bin/
RUN chmod +x /usr/bin/optional_tools.sh
RUN /bin/bash /usr/bin/optional_tools.sh
#Kali SSL lib-fix
ENV PYCURL_SSL_LIBRARY openssl
#download latest OWTF
RUN git clone -b master https://github.com/owtf/owtf.git
RUN mkdir -p /owtf/data/tools/restricted
ENV TERM xterm
ENV SHELL /bin/bash
WORKDIR /owtf
# core installation
RUN python setup.py develop
# expose ports
EXPOSE 8010 8009 8008
#setup postgres
USER postgres
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]
# setting user to root
ENV USER root
USER root
# Copy postgres_entry to scripts
COPY postgres_entry.sh /owtf/
#set entrypoint
COPY owtf_entry.sh /usr/bin/
RUN chmod +x /usr/bin/owtf_entry.sh
ENTRYPOINT ["/usr/bin/owtf_entry.sh"]