{"id":18284482,"url":"https://github.com/samuraiwtf/samurai-dojo","last_synced_at":"2025-04-05T07:31:44.929Z","repository":{"id":147599816,"uuid":"184283115","full_name":"SamuraiWTF/samurai-dojo","owner":"SamuraiWTF","description":"New revision for Dojo Basic as originally created by meeas.","archived":false,"fork":false,"pushed_at":"2025-01-15T14:36:18.000Z","size":1667,"stargazers_count":4,"open_issues_count":15,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-21T00:32:52.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamuraiWTF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-30T15:02:23.000Z","updated_at":"2025-02-24T18:18:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"dee11ab9-9aa0-40a1-bb9d-030c1653962e","html_url":"https://github.com/SamuraiWTF/samurai-dojo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuraiWTF%2Fsamurai-dojo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuraiWTF%2Fsamurai-dojo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuraiWTF%2Fsamurai-dojo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuraiWTF%2Fsamurai-dojo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamuraiWTF","download_url":"https://codeload.github.com/SamuraiWTF/samurai-dojo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305872,"owners_count":20917197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T13:13:42.284Z","updated_at":"2025-04-05T07:31:39.914Z","avatar_url":"https://github.com/SamuraiWTF.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Samurai-Dojo\n============\n\nSamurai-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:\n\n  - Dojo Basic:  A simple PHP app that can be used for demos and exercises\n  - Dojo Scavenger:  A student CTF-like challenge to test penesting skills\n\nEach 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.\n\n## Running Samurai Dojo Applications\n\nYou can run Samurai Dojo-Basic either using Vagrant or Docker. Choose the method that best suits your environment and preferences.\n\n### Option 1: Using Vagrant\n\n1. Install [Vagrant](https://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/).\n2. Clone this repository.\n3. Navigate to the project directory in your terminal.\n4. Run `vagrant up`. This will create a virtual machine that shares a drive with the host machine.\n5. When done, set up your hosts file as listed below.\n6. Connect to the web interface and reset the database.\n\n### Option 2: Using Docker (Recommended!)\n\n1. Install [Docker Desktop](https://docs.docker.com/desktop/) if you don't already have it.\n2. Clone this repository.\n3. Navigate to the project directory in your terminal.\n4. Run `docker-compose up -d`. This will build and start the containers (dojo-basic, dojo-scavenger, and required databases) in detached mode.\n5. The application should now be accessible at `http://localhost:30080` for the basic PHP app and `http://localhost:31080` for the scavenger app.\n6. To stop the containers, run `docker-compose down`.\n\n## Regarding the helpdesk application \n\nYou may find some references to a helpdesk application. Consider this a work in progress that is not normally used (yet).\nIt should running at http://127.0.0.1:32080.\n\n## Setting up your hosts file\n\nAdd the following entries to your hosts file:\n\n```\n127.0.0.2       dojo-basic\n127.0.0.2       dojo-basic.wtf\n```\n\nOn Unix-like systems (including macOS), the hosts file is located at `/etc/hosts`.\nOn Windows, it's located at `C:\\Windows\\System32\\drivers\\etc\\hosts`.\n\n## Resetting the Database\n\nAfter setting up, connect to the web interface and use the \"Reset DB\" option in the \"Pentester Help\" menu to initialize the database.\n\n## Security Warning\n\nThis 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.\n\n## Contributing\n\nContributions to improve Samurai Dojo-Basic are welcome. Please submit pull requests or open issues on the GitHub repository.\n\n## License\n\n[Insert license information here]\n\n## Credits\n\nOriginally created by Justin Searle\nMaintained by the SamuraiWTF team\n\nSamurai Dojo-Basic is a [SamuraiWTF](http://github.com/SamuraiWTF) Project.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuraiwtf%2Fsamurai-dojo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuraiwtf%2Fsamurai-dojo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuraiwtf%2Fsamurai-dojo/lists"}