栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

新手安装ubuntu_ubuntu基础教程?

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

新手安装ubuntu_ubuntu基础教程?

Ubuntu搭建vulhub

总体思路方法一 pip 下载compose+wget vulhub.zip方法二 apt下载compose+git vulhub.git

总体思路

1、下载curl、wget、docker、docker-compose、vulhub、找到对应漏洞up -d

apt install curl
apt install wget

2、安装docker

curl -s https://get.docker.com/ | sh

查看docker版本

docker -v


3、安装python3的pip

apt install python3-pip

方法一 pip 下载compose+wget vulhub.zip
pip install docker-compose

service docker start

systemctl enable docker.service 			#docker服务自启动

下载靶场:

wget https://github.com/vulhub/vulhub/archive/master.zip -O vulhub-master.zip

unzip vulhub-master.zip

cd vulhub-master/tomcat/CVE-2021-22205

docker-compose up -d

docker-compose down


下载过程会很慢,建议换源下载

换国内下载源:

#输入命令,创建daemon.json文件
vim /etc/docker/daemon.json
#在编辑器中输入内容,并保存退出
{
	"registry-mirrors": ["https://nfesww3w.mirror.aliyuncs.com"]
}
#输入命令,重启docker即可
systemctl daemon-reload
systemctl restart docker

ok!

方法二 apt下载compose+git vulhub.git
git clone https://github.com/vulhub/vulhub.git

apt install docker-compose
cd vulhub/gitlab/CVE-2021-22202
docker-compose up -d

查看当前漏洞配置文件

ocker exec -it d6d2 /bin/bash
exit
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/786746.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号