centos7环境-docker部署awvs15.2
centos7环境-docker部署awvs15.2
1.docker配置镜像源以及dns加速镜像访问
$ cd /etc/docker
$ cat daemon.json
{
"registry-mirrors": [
"https://kfwkfulq.mirror.aliyuncs.com",
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"dns": ["8.8.8.8","8.8.4.4"]
}
#重新加载docker配置、以及重启docker服务
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
2.拉取15.2版本acunetix,镜像docker pull quay.io/hiepnv/acunetix
[root@host ~]# docker pull quay.io/hiepnv/acunetix
Using default tag: latest
latest: Pulling from hiepnv/acunetix
Digest: sha256:7898f6f44b53207376fd6ca34348bf384ada5751188770e92ade6501b523cc94
Status: Image is up to date for quay.io/hiepnv/acunetix:latest
quay.io/hiepnv/acunetix:latest
3.运行docker 容器,3443:3443 前面的端口可以随意改,只要虚拟机中该端口未被占用即可
docker run -itd -p 3443:3443 --restart=unless-stopped --name=acunetix_web quay.io/hiepnv/acunetix
4.访问awvs
本人在桥接的虚拟机中部署的awvs,通过虚拟机的ip:3443进行访问(虚拟机必须配置静态ip)
5.可直接通过容器修改登录的密码,或者添加新用户,下面是添加用户操作
#进入容器命令
docker exec -it acunetix_web /bin/bash
#进入容器后去到修改密码的目录
cd /home/acunetix/.acunetix/
#执行修改密码脚本
./change_credentials.sh
然后输入新的用户名和密码,添加用户
root@883745d323b1:/home/acunetix/.acunetix# ./change_credentials.sh
Master user found: admin@acu.com
Email (leave empty for using admin@acu.com): Test@ear.ai
Using master user Test@ear.ai
Password:
Password again:
目录 返回
首页