Sign inSign up

ilyaglow/docker-w3af

By ilyaglow

•Updated over 7 years ago

Version without the GUI requirements

Image
2

3.3K

ilyaglow/docker-w3af repository overview

⁠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

NOTE: w3af console has issues on alpine

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

Tag summary

Content type

Image

Digest

Size

248.8 MB

Last updated

over 8 years ago

docker pull ilyaglow/docker-w3af