Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import nmap xml launched with nse scripts for vulnerability scan #1

Open
wants to merge 7 commits into
base: v2.3/master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,16 @@ A Web Dashbord for Nmap XML Report
## Usage
You should use this with docker, just by sending this command:
```bash
$ mkdir /tmp/webmap
$ docker run -d \
--name webmap \
-h webmap \
-p 8000:8000 \
-v /tmp/webmap:/opt/xml \
rev3rse/webmap

$ # now you can run Nmap and save the XML Report on /tmp/webmap
$ nmap -sT -A -T4 -oX /tmp/webmap/myscan.xml 192.168.1.0/24
$ cd /opt
$ git clone https://github.com/Hamza-Megahed/WebMap.git
$ cd WebMap/docker
$ docker build -t webmap:latest .
$ docker run -d --name webmap -v /opt/WebMap/docker/xml:/opt/xml -p 8000:8000 webmap:latest

# now you can run Nmap and save the XML Report on /opt/WebMap/docker/xml
$ nmap -sT -A -T4 -oX /opt/WebMap/docker/xml/myscan.xml 192.168.1.0/24
```

Now point your browser to http://localhost:8000

### Generate new token
Expand Down Expand Up @@ -71,14 +70,10 @@ but if you need it you can find all building steps inside the [Dockerfile](https
## Video
The HTML template changes often. This video could not be up to date with the latest version.

Version v2.3:<br>
coming soon...<br>
<br>
HackerSploit Video about WebMap v2.2:<br>
[![HackerSploit](https://img.youtube.com/vi/SoEIDNnOCGY/0.jpg)](https://www.youtube.com/watch?v=SoEIDNnOCGY)
<br>
Official Video of v2.1:<br>
[![WebMap v2.1](https://img.youtube.com/vi/TujtG1Ki0TQ/0.jpg)](https://www.youtube.com/watch?v=TujtG1Ki0TQ)


## Features
Expand Down
10 changes: 5 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# WebMap
# -
# https://github.com/Rev3rseSecurity/WebMap
# https://github.com/Hamza-Megahed/WebMap
# Rev3rse Security: https://www.youtube.com/rev3rsesecurity
# Author: theMiddle
# -
# Usage:
# $ cd /opt
# $ git clone https://github.com/Rev3rseSecurity/WebMap.git
# $ git clone https://github.com/Hamza-Megahed/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
Expand All @@ -22,20 +22,20 @@ FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive

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 vim nmap tzdata
python3 python3-pip curl wget git wkhtmltopdf libssl-dev vim nmap tzdata

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 nmapreport && \
git clone https://github.com/Hamza-Megahed/WebMap.git nmapreport && \
cd nmapreport && git checkout v2.3/master

COPY settings.py /opt/nmapdashboard/nmapdashboard/
COPY urls.py /opt/nmapdashboard/nmapdashboard/
COPY vimrc /root/.vimrc
# COPY vimrc /root/.vimrc
COPY tzdata.sh /root/tzdata.sh
COPY startup.sh /startup.sh

Expand Down