- Notifications
You must be signed in to change notification settings - Fork0
Pre-Built Vulnerable Environments Based on Docker-Compose
License
yangjiagongzi/vulhub
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
Install the docker/docker-compose on Ubuntu 20.04:
# Install pipcurl -s https://bootstrap.pypa.io/get-pip.py| python3# Install the latest version dockercurl -s https://get.docker.com/| sh# Run docker servicesystemctl start docker# Install docker composepip install docker-compose
The installation steps of docker and docker-compose for other operating systems might be slightly different, please refer to thedocker documentation for details.
# Download projectwget https://github.com/vulhub/vulhub/archive/master.zip -O vulhub-master.zipunzip vulhub-master.zipcd vulhub-master# Enter the directory of vulnerability/environmentcd flask/ssti# Compile environmentdocker-compose build# Run environmentdocker-compose up -d
There is aREADME 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. Theyour-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!
- To prevent permission errors, it is best to use the root user to execute the docker and docker-compose commands.
- Some docker images do not support running on ARM machines.
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
Our Partners and users:
Sponsor vulhub on patreon 🙏
Sponsor vulhub on opencollective 🙏
MoreDonate.
Vulhub is licensed under the MIT License. SeeLICENSE for the full license text.