当前位置:网站首页>[try to hack] vulhub shooting range construction

[try to hack] vulhub shooting range construction

2022-06-25 14:40:00 Happy star

Blog home page : Happy star The blog home page of
Series column :Try to Hack
Welcome to focus on the likes collection ️ Leaving a message.
Starting time :2022 year 6 month 24 Japan
The author's level is very limited , If an error is found , Please let me know , thank !

Vulhub It's based on docker and docker-compose A collection of vulnerability environments , Enter the corresponding directory and execute a statement to start a new vulnerability environment , Make it easier to replicate vulnerabilities , Let security researchers focus more on the vulnerability principle itself .

vulhub Official website :https://vulhub.org/
docker Official documents :https://docs.docker.com/engine/install/#server

1、apt-get update
apt-get update Update the list of all software in the source .
apt-get upgrade Update software .
apt-get dist-upgrade Update system version . If your need for a new version of software is not so urgent , It's OK not to execute

2、 Uninstall the old version of docker
sudo apt-get remove docker docker-engine docker.io containerd runc
 Insert picture description here
Finished uninstalling docker 了

3、 install https Agreement and CA certificate
apt-get install -y apt-transport-https ca-certificates
 Insert picture description here
I have already installed it

4、 install docker
apt install docker.io
 Insert picture description here
5、docker -v
 Insert picture description here
6、 start-up docker
systemctl start docker

7、 View the open environment
docker ps -a
 Insert picture description here
8、 install pip3
apt-get install python3-pip
 Insert picture description here
Because I installed , Updated here

9、 install docker-compose
because Docker-compose be based on Python Development , So we can use it pip Installation .Compose Is used to define and run multiple containers Docker Application tools . adopt Compose, You can use YML File to configure all the services the application needs . then , Use a command , You can start from YML Create and start all services in the file configuration .
pip3 install docker-compose

10、 test docker Is the installation complete
docker run hello-world
 Insert picture description here

11、 download vulhub
git clone https://github.com/vulhub/vulhub.git

12、 Get into nginx/CVE-2013-4547 route
cd vulhub-master/nginx/CVE-2013-4547
 Insert picture description here
readme It's worth seeing.
There are loopholes and other introductions

13、 Pull the image locally
docker-compose build
 Insert picture description here

14、 Start the vulnerability environment
docker-compose up -d
 Insert picture description here

15、 View the open environment
docker ps -a
 Insert picture description here

The browser can access the corresponding port number

原网站

版权声明
本文为[Happy star]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206251422372329.html