add a dockerfile allowing to quickly setup the endpoint used by xxe and ssrf modules
This commit is contained in:
parent
4a48ddfbb4
commit
d421a59e6a
|
@ -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
|
4
Makefile
4
Makefile
|
@ -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/
|
||||
|
|
Loading…
Reference in New Issue