Skip to content

A set of vulnerable PHP scripts used to test w3af's vulnerability detection features.

Notifications You must be signed in to change notification settings

w4af/w4af-moth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

w4af's moth

A set of vulnerable PHP scripts used to test w4af's vulnerability detection features.

The main repository for the w4af project can be found here.

Usage

The easiest way to use w4af-moth is to start a docker container:

sudo docker run -p 80:80 -p 2222:22 andresriancho/w4af-moth

And then add the following lines to your /etc/hosts file:

127.0.0.1 intranet
127.0.0.1 default
127.0.0.1 moth

Please note that you can build the docker image yourself:

sudo docker build -t andresriancho/w4af-moth .

Or simply get it from the registry:

sudo docker pull andresriancho/w4af-moth

Use SSH to connect to moth with root and MxqQt6iKUP6igE as password:

ssh root@127.0.0.1 -p 2222

History

Moth was born as a test environment for the w4af project can be found here. The code that lives in this repository was usually bundled in a Virtual Machine and used from there.

After years of development I decided to move most of the features provided by this code to two different repositories:

The decision was made while writing unittests for w4af, which needed to run easily on our CI system, and w4af-moth wasn't designed to be used in that way (too many custom Apache configs, ugly PHP configs, etc).

Django-moth, received most of the attention and code. This is the repository which holds most of the test cases for the w4af framework.

PHP-moth is a much smaller test suite which only contains test scripts for PHP-specific vulnerabilities.

Deprecation warning

While you can still use this repository for testing your scanner, education or any other purpose, I don't guarantee that I'll fix bugs, issues, or improve it in any way.

About

A set of vulnerable PHP scripts used to test w3af's vulnerability detection features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 94.2%
  • PHP 4.5%
  • C 0.7%
  • CSS 0.3%
  • JavaScript 0.2%
  • Hack 0.1%