好久没搞过web安全相关的东西了,这个月打算练练基本功,于是在github上找到了一个不错的靶场。
项目地址:https://github.com/Area39/Webug4.0-Docker
快速搭建
首先领取一个月的腾讯云:https://cloud.tencent.com/act/lighthouse-buy
领取后在控制台重置系统应用为Ubuntu 18.04
登录SSH
安装docker
1 . unload 原的docker
sudo apt-get remove docker docker-engine docker-ce docker.io
sudo apt-get update
2 . apt-get 可以使用https库
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
3 . 添加docker的使用的公钥
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
4 . 添加docker的远程库
add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
5 . 安装docker-ce
sudo apt-get install -y docker-ce
部署靶场项目
下载靶场
git clone https://github.com/Area39/Webug4.0-Docker.git
切换到项目目录创建镜像
docker build -t webug:4.0 .
启动运行
docker run -d -P webug:4.0
查看端口
docker ps -a
然后在腾讯云控制台的防火墙里添加规则放行端口
后台管理员:admin/admin
数据库密码:root/toor
访问
结束语
安装docker的时候直接用的官方源,但是下载速度才10kb/s,用腾讯云自带的源下载速度也有问题,后来换的阿里的源安装,真香。
哦哦