-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
72 lines (54 loc) · 1.53 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
FROM kalilinux/kali-rolling
# OS update
RUN echo "deb http://old.kali.org/kali sana main non-free contrib" >> ./etc/apt/sources.list
RUN apt-get update && apt-get -yu dist-upgrade -y
# Install tools
RUN apt-get -y install wget unzip
RUN apt-get install -y openjdk-11-jdk
# Install golang
RUN apt-get install -y golang-go
# Python ENV installation
RUN apt-get install -y \
python2.7 \
subversion \
wget \
whatweb \
nmap \
sslyze \
nikto \
theharvester \
whois \
dnsmap \
sublist3r \
knockpy \
wig \
dirb \
golismero
RUN cd /tmp && \
wget http://dl.bintray.com/groovy/maven/apache-groovy-binary-3.0.4.zip && \
unzip apache-groovy-binary-3.0.4.zip && \
mv groovy-3.0.4 /groovy && \
rm apache-groovy-binary-3.0.4.zip
# Environment variable section
ENV NMAP_SCRIPTS_REPOSITORY_URL https://svn.nmap.org/nmap/scripts/
ENV GROOVY_HOME /groovy
ENV PATH $GROOVY_HOME/bin/:$PATH
ENV GOROOT=/usr/lib/go
ENV GOPATH=$HOME/go
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
# Debug Port
EXPOSE 5050
RUN mkdir -p /usr/src
RUN mkdir -p /usr/app
# Tool and script installations
# nmap dependencies
RUN svn checkout https://svn.nmap.org/nmap/scripts/ nse
# assetfinder installation
RUN go get -u github.com/tomnomnom/assetfinder
RUN go get -u github.com/tomnomnom/httprobe
WORKDIR /usr/app
# add jar and default config
COPY ./target/groovy-gadgeto-scanner-full.jar /usr/app/
COPY ./config /usr/app/config
VOLUME /usr/src
#ENTRYPOINT ["/usr/bin/java","-jar","/usr/app/groovy-gadgeto-scanner-full.jar", "--config", "/usr/app/config"]