Samurai-Dojo is a set of vulnerable web applications created by and for the Samurai security training and testing distributions like SamuraiSTFU and SamuraiWTF. These vulnerabile applications include:
- Dojo Basic: A simple PHP app that can be used for demos and exercises
- Dojo Scavenger: A student CTF-like challenge to test penesting skills
Each app is located in its respective folder, than can be moved the the appropriate location for web root on your server. Sample apache configuration files (needed at least for scavenger's challenge) are also provided and need to be moved to the /etc/apache2/sites-available/ folder on Debian/Ubuntu or integrated in your apache configuration file on other distributions.
You can run Samurai Dojo-Basic either using Vagrant or Docker. Choose the method that best suits your environment and preferences.
- Install Vagrant and VirtualBox.
- Clone this repository.
- Navigate to the project directory in your terminal.
- Run
vagrant up
. This will create a virtual machine that shares a drive with the host machine. - When done, set up your hosts file as listed below.
- Connect to the web interface and reset the database.
- Install Docker Desktop if you don't already have it.
- Clone this repository.
- Navigate to the project directory in your terminal.
- Run
docker-compose up -d
. This will build and start the containers (dojo-basic, dojo-scavenger, and required databases) in detached mode. - The application should now be accessible at
http://localhost:30080
for the basic PHP app andhttp://localhost:31080
for the scavenger app. - To stop the containers, run
docker-compose down
.
You may find some references to a helpdesk application. Consider this a work in progress that is not normally used (yet). It should running at http://127.0.0.1:32080.
Add the following entries to your hosts file:
127.0.0.2 dojo-basic
127.0.0.2 dojo-basic.wtf
On Unix-like systems (including macOS), the hosts file is located at /etc/hosts
.
On Windows, it's located at C:\Windows\System32\drivers\etc\hosts
.
After setting up, connect to the web interface and use the "Reset DB" option in the "Pentester Help" menu to initialize the database.
This application is deliberately vulnerable. DO NOT run this on a production network or any network exposed to the internet. Use it only on a private, isolated network or local development environment.
Contributions to improve Samurai Dojo-Basic are welcome. Please submit pull requests or open issues on the GitHub repository.
[Insert license information here]
Originally created by Justin Searle Maintained by the SamuraiWTF team
Samurai Dojo-Basic is a SamuraiWTF Project.