Skip to content
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
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM kalilinux/kali-rolling:latest

WORKDIR /app

COPY requirements.txt /app/

RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
unzip \
wget

RUN apt-get install -y sublist3r nmap whatweb

ENV DIRBLE_URL="https://github.com/nccgroup/dirble/releases/download/v1.4.2/dirble-1.4.2-20190709-x86_64-linux.zip"
ENV DIRBLE_ZIP="dirble.zip"
RUN wget $DIRBLE_URL -O $DIRBLE_ZIP \
&& unzip $DIRBLE_ZIP \
&& chmod +x dirble \
&& mv dirble /usr/local/bin/

COPY . /app/

RUN pip3 install --no-cache-dir -r requirements.txt

EXPOSE 5000

CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "app:app"]
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ To use the Advanced Web Scanner, follow these steps:
python app.py
```

## ⭐ Usage With Docker ⭐
```bash
docker-compose build # build docker image
docker-compose up -d # http://localhost:8000 -> accessable!
```

This command starts the Flask server and runs the web application. Access the web interface through your web browser to begin scanning.

## Features
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3'

services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Flask

gunicorn