vulhub

Pre-Built Vulnerable Environments Based on Docker-Compose

Github stars Tracking Chart

Vulhub - Pre-Built Vulnerable Environments Based on Docker-Compose

Docker Stars GitHub
Chat on Discord Backers and sponors on Patreon Backers and sponors on Opencollective

中文版本(Chinese version)

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 the docker/docker-compose on Ubuntu 16.04:

# Install pip
curl -s https://bootstrap.pypa.io/get-pip.py, python3

# Install the latest version docker
curl -s https://get.docker.com/, sh

# Run docker service
service docker start

# Install docker compose
pip install docker-compose

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

  1. To prevent permission errors, it is best to use the root user to execute the docker and docker-compose commands.
  2. Some docker images do not support running on ARM machines.

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

Backer and Sponsor

Sponsor:

Sponsor vulhub on patreon ?

Sponsor vulhub on opencollective ?

MoreDonate

License

Vulhub is licensed under the MIT License. See LICENSE for the full license text.

Main metrics

Overview
Name With Ownervulhub/vulhub
Primary LanguageDockerfile
Program languagePHP (Language Count: 14)
Platform
License:MIT License
所有者活动
Created At2017-04-09 10:13:13
Pushed At2025-05-21 12:20:43
Last Commit At2025-05-21 20:20:39
Release Count0
用户参与
Stargazers Count19k
Watchers Count562
Fork Count4.6k
Commits Count2.5k
Has Issues Enabled
Issues Count201
Issue Open Count16
Pull Requests Count369
Pull Requests Open Count27
Pull Requests Close Count101
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private