first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
31
base/httpd/bad-http/Dockerfile
Normal file
31
base/httpd/bad-http/Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
||||
FROM ubuntu:trusty
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
# install the PHP extensions we need
|
||||
RUN set -ex; \
|
||||
\
|
||||
apt-get update; \
|
||||
apt-get install -y \
|
||||
apache2 \
|
||||
php5 \
|
||||
php5-gd \
|
||||
php5-curl \
|
||||
php5-mysqlnd \
|
||||
exim4 \
|
||||
wget \
|
||||
curl \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN a2enmod rewrite expires
|
||||
|
||||
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh \
|
||||
&& rm -rf /var/www/html/*
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
||||
CMD ["apache2ctl", "-DFOREGROUND"]
|
5
base/httpd/bad-http/README.md
Normal file
5
base/httpd/bad-http/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# [deprecated] 绝版apache+php
|
||||
|
||||
允许HTTP HOST里插入恶意字符的Apache,已绝版,用该Dockerfile生成的新的Apache没有该特效,该Dockerfile只是演示当初这个镜像是怎么生成的。
|
||||
|
||||
镜像地址:vulhub/httpd:bad-http
|
4
base/httpd/bad-http/docker-entrypoint.sh
Normal file
4
base/httpd/bad-http/docker-entrypoint.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
exec "$@"
|
Reference in New Issue
Block a user