mirror of
https://github.com/Medicean/VulApps.git
synced 2025-06-02 11:40:46 +00:00
调整目录结构
This commit is contained in:
parent
7a93f7becb
commit
828b58cded
3
s/README.md
Normal file
3
s/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# S
|
||||
|
||||
* [Struts2](./struts2/)
|
6
s/struts2/README.md
Normal file
6
s/struts2/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
# Struts2 VulApps
|
||||
|
||||
* [S2-032](./s2-032/)
|
||||
* [S2-033(与 s2-037 相同)](./s2-037/)
|
||||
* [S2-037](./s2-037/)
|
||||
|
24
s/struts2/s2-032/Dockerfile
Normal file
24
s/struts2/s2-032/Dockerfile
Normal 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
|
24
s/struts2/s2-037/Dockerfile
Normal file
24
s/struts2/s2-037/Dockerfile
Normal 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
|
Loading…
x
Reference in New Issue
Block a user