add a dockerfile allowing to quickly setup the endpoint used by xxe and ssrf modules

This commit is contained in:
devloop 2023-05-03 18:28:40 +02:00
parent 4a48ddfbb4
commit d421a59e6a
2 changed files with 12 additions and 0 deletions

8
Dockerfile.endpoint Normal file
View File

@ -0,0 +1,8 @@
FROM php:7.1-apache
COPY ./endpoint/ /var/www/html/
COPY ./endpoint/.htaccess /var/www/html/.htaccess
RUN sed -i '/LoadModule rewrite_module/s/^#//g' /etc/apache2/apache2.conf && \
sed -i 's#AllowOverride [Nn]one#AllowOverride All#' /etc/apache2/apache2.conf
RUN ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
RUN chmod 777 /var/www/html/ssrf_data
RUN chmod 777 /var/www/html/xxe_data

View File

@ -5,5 +5,9 @@ test:
docker build -f Dockerfile.test --tag=wapiti_test .
docker run --rm wapiti_test:latest
wapiti-endpoint:
docker build -f Dockerfile.endpoint -t wapiti-endpoint .
docker run --rm -dit --name wapiti-running-endpoint -p 80:80 wapiti-endpoint
clean:
rm -rf dist/ build/ wapiti3.egg-info/