调整目录结构

This commit is contained in:
Medicean 2016-06-16 16:22:57 +08:00
parent 7a93f7becb
commit 828b58cded
4 changed files with 57 additions and 0 deletions

3
s/README.md Normal file
View File

@ -0,0 +1,3 @@
# S
* [Struts2](./struts2/)

6
s/struts2/README.md Normal file
View File

@ -0,0 +1,6 @@
# Struts2 VulApps
* [S2-032](./s2-032/)
* [S2-033(与 s2-037 相同)](./s2-037/)
* [S2-037](./s2-037/)

View File

@ -0,0 +1,24 @@
# S2-032 Vul Demo
FROM tomcat:8-jre8
MAINTAINER Medici.Yan@Gmail.com
ENV S2_VERSION 2.3.20.1
ENV APP_ZIP_URL http://archive.apache.org/dist/struts/2.3.20.1/struts-$S2_VERSION-apps.zip
WORKDIR /tmp
RUN set -ex \
&& rm -rf /usr/local/tomcat/webapps/* \
&& curl -fSL "$APP_ZIP_URL" -o struts-apps.zip \
&& curl -fSL "$TOMCAT_TGZ_URL.asc" struts-apps.zip.asc \
&& gpg --batch --verify struts-apps.zip.asc struts-apps.zip \
&& unzip -j struts-apps.zip -d struts-apps \
&& mv struts-apps/apps/struts2-showcase.war /usr/local/tomcat/webapps/ROOT.war \
&& rm -rf struts-*
EXPOSE 8080
CMD ["/usr/local/tomcat/bin/catalina.sh", "run"]
# 1. docker build .
# 2. docker run -d -p 80:8080 xxxxxx

View File

@ -0,0 +1,24 @@
# S2-033, S2-037 Vul Demo
FROM tomcat:8-jre8
MAINTAINER Medici.Yan@Gmail.com
ENV S2_VERSION 2.3.20.1
ENV APP_ZIP_URL http://archive.apache.org/dist/struts/2.3.20.1/struts-$S2_VERSION-apps.zip
WORKDIR /tmp
RUN set -ex \
&& rm -rf /usr/local/tomcat/webapps/* \
&& curl -fSL "$APP_ZIP_URL" -o struts-apps.zip \
&& curl -fSL "$TOMCAT_TGZ_URL.asc" struts-apps.zip.asc \
&& gpg --batch --verify struts-apps.zip.asc struts-apps.zip \
&& unzip -j struts-apps.zip -d struts-apps \
&& mv struts-apps/apps/struts2-rest-showcase.war /usr/local/tomcat/webapps/ROOT.war \
&& rm -rf struts-*
EXPOSE 8080
CMD ["/usr/local/tomcat/bin/catalina.sh", "run"]
# 1. docker build .
# 2. docker run -d -p 80:8080 xxxxxx