
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Install | Start | Stop | Usage | Features | Configuration | Capture the flag | Tools | FAQ | Sec Tools | License
https://github.com/cytopia/docker-dvwa/workflows/build/badge.svg](https://github.com/cytopia/docker-dvwa/actions?query=workflow%3Abuild) https://github.com/cytopia/docker-dvwa/workflows/nightly/badge.svg](https://github.com/cytopia/docker-dvwa/actions?query=workflow%3Anightly)  is a PHP/MySQL web application that is damn vulnerable. Its main goal is to be an aid for security professionals to test their skills and tools in a legal environment, help web developers better understand the processes of securing web applications and to aid both students & teachers to learn about web application security in a controlled class room environment.
https://github.com/digininja/DVWA
https://github.com/digininja/DVWA has an official Docker image available at https://hub.docker.com/r/vulnerables/web-dvwa/, however by the time of writing this image did not receive any recent updates.
If you need an always up-to-date version or arm64 images, you can use the here provided Docker Compose setup. The image is built every night against the latest master branch of the https://github.com/digininja/DVWA and pushed to https://hub.docker.com/r/cytopia/dvwa.
Additionally this Docker image comes with a few CTF challenges that require you to completely compromise the machine and reach root access. Read here for details.
Available Architectures: amd64, arm64
Rolling releaess
The following Docker image tags are rolling releases and are built and updated every night.
https://github.com/cytopia/docker-dvwa/workflows/nightly/badge.svg](https://github.com/cytopia/docker-dvwa/actions?query=workflow%3Anightly)
| Docker Tag | Git Ref | PHP | Available Architectures |
|---|---|---|---|
latest | master | latest | amd64, arm64 |
php-8.1 | master | 8.1 | amd64, arm64 |
php-8.0 | master | 8.0 | amd64, arm64 |
php-7.4 | master | 7.4 | amd64, arm64 |
php-7.3 | master | 7.3 | amd64, arm64 |
php-7.2 | master | 7.2 | amd64, arm64 |
php-7.1 | master | 7.1 | amd64, arm64 |
php-7.0 | master | 7.0 | amd64, arm64 |
php-5.6 | master | 5.6 | amd64, arm64 |
Clone repository from GitHub:
bashgit clone https://github.com/cytopia/docker-dvwa
Inside the cloned repository (docker-dvwa/ directory):
bashmake start
Inside the cloned repository (docker-dvwa/ directory):
bashmake stop
After running make start you can access DVWA in your browser via:
adminpasswordThis setup allows you to configure a few settings via the .env file.
| Variable | Default | Settings |
|---|---|---|
PHP_VERSION | 8.1 | PHP version to run DVWA (5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0 or 8.1) |
LISTEN_PORT | 8000 | Local port for the web server to listen on |
RECAPTCHA_PRIV_KEY | Required to make the captcha module work. (See FAQ section below) | |
RECAPTCHA_PUB_KEY | Required to make the captcha module work. (See FAQ section below) | |
PHP_DISPLAY_ERRORS | 0 | Set to 1 to display PHP errors (if you want a really easy mode) |
The following .env file variables are default settings and their values can also be changed from within the web interface:
| Variable | Default | Settings |
|---|---|---|
SECURITY_LEVEL | medium | Adjust the difficulty level for the challenges[1] ( low, medium, high or impossible) |
PHPIDS_ENABLED | 0 | Set to 1 to enable PHP WAF/IDS[2] (off by default) |
PHPIDS_VERBOSE | 0 | Set to 1 to display WAF/IDS reasons for blocked requests |
[1] For the
SECURITY_LEVELchanges to take effect, you will have to clear your cookies. Alternatively change it in the web interface.
[2] WAF (Web Application Firewall) / IDS (Intrusion Detection System)
Additionally to the default DVWA features, this flavour also contains a few flags that can be captured via various means (including local privilege escalation).
flag{b9bbcb33e11b80be759c4e844862482d}flag{fc3fd58dcdad9ab23faca6e9a36e581c}flag{eca7d1f3cf60a8b5344a49287b9076e4}How to play?
docker exec -it dvwa_web bash to gain accessLet me know on :bird: *** if you've solved them and how easy/difficult they were.
The DVWA Docker image contains the following tools assisting you in solving the challenges and also allowing you to gain access via reverse shells.
bashnetcatpingsudotelnetpython3localhost or 127.0.0.1.
Browsers ususally bypass localhost or 127.0.0.1 for proxy traffic. One solution is to add an alternative hostname to /etc/hosts and access the application through that.
/etc/hosts:
bash127.0.0.1 dvwa
Then use [***] in your browser.
The here provided Docker images are built against all common PHP versions and you can easily select your version of choice in the https://github.com/cytopia/docker-dvwa/blob/master/.env-example#L1 prior startup. To do so, just uncomment the version of choice and restart the Docker Compose stack:
.env
bash# PHP VERSION # ----------- # Uncomment one of the PHP versions you want to use for DVWA #PHP_VERSION=5.6 #PHP_VERSION=7.0 #PHP_VERSION=7.1 #PHP_VERSION=7.2 #PHP_VERSION=7.3 #PHP_VERSION=7.4 #PHP_VERSION=8.0 PHP_VERSION=8.1
The database uses a Docker volume and you can simply remove it via:
bash# the command below will stop all running container, # remove their state and delete the MySQL docker volume. make reset
Log files are piped to stderr from the Docker container and you can view them via:
bashmake logs
Note: Doing so is basically cheating, you are supposed to gain access to the machine via exploitation.
You can enter the running web server container as root via:
bashmake enter
Go to [***] and generate your captcha as shown below:
reCAPTCHA v2SITE KEY to the RECAPTCHA_PUB_KEY variable in your .env fileSECRET KEY to the RECAPTCHA_PRIV_KEY variable in your .env file
Note: Doing so is basically cheating, but if you really need to, you can do so.
This Docker image bundles Adminer (a PHP web interace similar to phpMyAdmin) and you can access it here: http://localhost:8000/adminer.php
dvwa_dbrootrootpass
To build or rebuild the Docker image against new updates in https://github.com/digininja/DVWA, simply do the following:
bash# This is builing the image for the default PHP version make rebuild # This is building the image with PHP 8.0 make rebuild PHP=8.0
https://github.com/cytopia/docker-dvwa/actions/workflows/terraform.yml/badge.svg](https://github.com/cytopia/docker-dvwa/actions/workflows/terraform.yml)
This repository ships a Terraform module to deploy DVWA on AWS.
bashcd aws/ cp terraform.tfvars-example terraform.tfvars terraform init terraform apply
For more information see Terraform module.
https://github.com/cytopia/docker-dvwa/actions/workflows/kubernetes.yml/badge.svg](https://github.com/cytopia/docker-dvwa/actions/workflows/kubernetes.yml)
This repository ships Kubernetes resources to deploy DVWA on K8s or minikube.
bashcd k8s/ kubectl apply -f .
For more information see k8s.
Below is a list of sec tools and docs I am maintaining, which might come in handy working on DVWA.
| Name | Category | Language | Description |
|---|---|---|---|
| https://github.com/cytopia/offsec | Documentation | Markdown | Offsec checklist, tools and examples |
| https://github.com/cytopia/header-fuzz | Enumeration | Bash | Fuzz HTTP headers |
| https://github.com/cytopia/smtp-user-enum | Enumeration | Python 2+3 | SMTP users enumerator |
| https://github.com/cytopia/urlbuster | Enumeration | Python 2+3 | Mutable web directory fuzzer |
| https://github.com/cytopia/pwncat | Pivoting | Python 2+3 | Cross-platform netcat on steroids |
| https://github.com/cytopia/badchars | Reverse Engineering | Python 2+3 | Badchar generator |
| https://github.com/cytopia/fuzza | Reverse Engineering | Python 2+3 | TCP fuzzing tool |
MIT License
Copyright (c) 2021 https://github.com/cytopia
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。






来自真实用户的反馈,见证轩辕镜像的优质服务