Awesome
<!-- markdownlint-disable first-line-heading --> <p align="center"> <img src=".github/assets/banner.png" alt="Vulhub" height="auto" /> <p align="center"> <a href="https://github.com/vulhub/vulhub/blob/master/LICENSE"> <img src="https://img.shields.io/github/license/vulhub/vulhub.svg" alt="GitHub"> </a> <a href="https://discord.gg/bQCpZEK"> <img src="https://img.shields.io/discord/485505185167179778.svg" alt="Chat on Discord"> </a> <a href="https://www.patreon.com/phith0n"> <img src="https://img.shields.io/badge/sponsor-patreon-73d6a1.svg" alt="Backers and sponors on Patreon"> </a> <a href="https://opencollective.com/vulhub#backer"> <img src="https://img.shields.io/badge/backer-opencollective-f89a76.svg" alt="Backers and sponors on Opencollective"> </a> </p> </p>Vulhub is an open-source collection of pre-built vulnerable docker environments. No pre-existing knowledge of docker is required, just execute two simple commands and you have a vulnerable environment.
Installation
Install Docker on Ubuntu 22.04:
# Install the latest version docker
curl -s https://get.docker.com/ | sh
# Run docker service
systemctl start docker
Note that as of April 2022, docker compose
is merged into Docker as a subcommand as Docker Compose V2, the Python version of docker-compose will be deprecated after June 2023. So Vulhub will no longer require the installation of additional docker-compose
, and all documentation will be modified to use the docker compose
instead.
The installation steps of Docker and Docker Compose for other operating systems might be slightly different, please refer to the docker documentation for details.
Usage
# Download project
wget https://github.com/vulhub/vulhub/archive/master.zip -O vulhub-master.zip
unzip vulhub-master.zip
cd vulhub-master
# Enter the directory of vulnerability/environment
cd flask/ssti
# Compile environment
docker compose build
# Run environment
docker compose up -d
There is a README document in each environment directory, please read this file for vulnerability/environment testing and usage.
After the test, delete the environment with the following command.
docker compose down -v
It is recommended to use a VPS of at least 1GB memory to build a vulnerability environment. The your-ip
mentioned in the documentation refers to the IP address of your VPS. If you are using a virtual machine, it refers to your virtual machine IP, not the IP inside the docker container.
All environments in this project are for testing purposes only and should not be used as a production environment!
Notice
- To prevent permission errors, please ensure that the docker container has permission to access all files in the current directory.
- Vulhub does not support running on machines with non-x86 architecture such as ARM for now.
Contribution
This project relies on docker. So any error during compilation and running are thrown by docker and related programs. Please find the cause of the error by yourself first. If it is determined that the dockerfile is written incorrectly (or the code is wrong in vulhub), then submit the issue. More details please 👉Common reasons for compilation failure, hope it can help you.
For more question, please contact:
Thanks for the following contributors:
More contributors:Contributors List
Partner
Our Partners and users:
<p> <a href="https://www.wangan.com/vulhub" target="_blank"><img src="https://vulhub.org/img/sponsor/wangan.png" width="200"></a> <a href="https://www.cvebase.com" target="_blank"><img src="https://vulhub.org/img/sponsor/cvebase.png" width="200"></a> <a href="https://www.huoxian.cn" target="_blank"><img src="https://vulhub.org/img/sponsor/huoxian.png" width="200"></a> <a href="https://www.chaitin.cn" target="_blank"><img src="https://vulhub.org/img/sponsor/chaitin.png" width="200"></a> <a href="https://xz.aliyun.com/" target="_blank"><img src="https://vulhub.org/img/sponsor/aliyun.svg" width="200"></a> </p>Sponsor vulhub on patreon 🙏
<a href="https://www.patreon.com/bePatron?u=12677520"><img src="https://vulhub.org/img/sponsor/patreon.png" width="150"></a>
Sponsor vulhub on opencollective 🙏
<p> <a href="https://opencollective.com/vulhub#backer"><img src="https://opencollective.com/vulhub/backers.svg?width=138"></a> <a href="https://opencollective.com/vulhub#sponsor"><img src="https://opencollective.com/vulhub/sponsors.svg?width=138"></a> </p>More Donate.
License
Vulhub is licensed under the MIT License. See LICENSE for the full license text.