forked from punitdarji/WebMap
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (33 loc) · 1.47 KB
/
Dockerfile
File metadata and controls
41 lines (33 loc) · 1.47 KB
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
# WebMap
# -
# https://github.com/Rev3rseSecurity/WebMap
# Rev3rse Security: https://www.youtube.com/rev3rsesecurity
# Author: theMiddle
# -
# Usage:
# $ cd /opt
# $ git clone https://github.com/Rev3rseSecurity/WebMap.git
# $ cd WebMap/docker
# $ docker build -t webmap:latest .
# $ docker run -d -v /opt/WebMap/docker/xml:/opt/xml -p 8000:8000 webmap:latest
#
# Nmap Example:
# $ nmap -sT -A -oX /tmp/myscan.xml 192.168.1.0/24
# $ mv /tmp/myscan.xml /opt/WebMap/docker/xml
#
# Now you can point your browser to http://localhost:8000
FROM ubuntu:latest
RUN apt-get update && apt-get install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages \
python3 python3-pip curl wget git wkhtmltopdf libssl1.0-dev
RUN mkdir /opt/xml && mkdir /opt/notes && \
wget -P /opt/ https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz && \
cd /opt/ && tar -xvf /opt/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
RUN pip3 install Django requests xmltodict && \
cd /opt/ && django-admin startproject nmapdashboard && cd /opt/nmapdashboard && \
git clone https://github.com/Rev3rseSecurity/WebMap.git && \
mv WebMap nmapreport && rm -rf settings.py urls.py
COPY settings.py /opt/nmapdashboard/nmapdashboard/
COPY urls.py /opt/nmapdashboard/nmapdashboard/
RUN cd /opt/nmapdashboard && python3 manage.py migrate
EXPOSE 8000
ENTRYPOINT ["python3", "/opt/nmapdashboard/manage.py", "runserver", "0:8000"]