-
Notifications
You must be signed in to change notification settings - Fork 313
/
Dockerfile
37 lines (30 loc) · 1.08 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
############################################################
# Dockerfile to build gourdscan v2.1 environment
# Based on Ubuntu
# https://github.com/ysrc/GourdScanV2
# edit by range
############################################################
FROM ubuntu:14.04
#get all the environment
RUN apt-get update
RUN apt-get install -y redis-server python python-pip zip wget vim openssh-server python-libpcap libpcap-dev
RUN pip install --upgrade pip
RUN pip install tornado requests redis scapy
RUN wget https://github.com/sqlmapproject/sqlmap/zipball/master
RUN unzip master -d /root
RUN rm master
RUN mv /root/sqlmap* /root/sqlmap
RUN wget https://github.com/ysrc/GourdScanV2/archive/github.zip
RUN unzip github.zip -d /root
RUN rm github.zip
RUN mv /root/GourdScanV2-github /root/gourdscan
#install sshd service
RUN mkdir -p /var/run/sshd
RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN echo "root:Y3rc_admin" | chpasswd
RUN usermod -s /bin/bash root
EXPOSE 8000
EXPOSE 22
EXPOSE 10086
EXPOSE 10806