Skip to content

Dockerfile for console and API versions of w3af scanner

License

Notifications You must be signed in to change notification settings

security-dockerfiles/w3af

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Intentions

The official docker for w3af is available.

The reason I made this is that I do not plan to use GUI version of w3af at all. I do not want to install ssh-server inside container and want to keep Dockerfile as simple as possible.

Install

Clone repo and build image:

git clone https://github.com/ilyaglow/w3af-docker.git
docker build -t my-w3af .

Start

Console version

docker run -it -v /home/username/w3af-share:/home/w3af/share my-w3af ./w3af_console

The /home/username/w3af-share is a directory for sharing outputs, profiles etc between host and container. Caveat: ~/w3af-share should be user-owned directory (nonroot).

Start API

docker run -p 127.0.0.1:5000:5000 -it my-w3af ./w3af_api -u YOUR_USERNAME -p $(echo -n "YOUR_PASSWORD" | sha512sum | cut -d ' ' -f1) 0.0.0.0:5000

Hardening

Drop unneeded container capabilities (need further testing):

docker run --cap-drop NET_RAW --cap-drop SYS_CHROOT --cap-drop MKNOD -it -v /home/username/w3af-share:/home/w3af/share my-w3af ./w3af_console

docker run --cap-drop NET_RAW --cap-drop SYS_CHROOT --cap-drop MKNOD -p 127.0.0.1:5000:5000 -it -v /home/username/w3af-share:/home/w3af/share my-w3af ./w3af_api -u YOUR_USERNAME -p $(echo -n "YOUR_PASSWORD" | sha512sum | cut -d ' ' -f1) 0.0.0.0:5000

About

Dockerfile for console and API versions of w3af scanner

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published