mirror of
https://github.com/Medicean/VulApps.git
synced 2025-06-20 18:00:18 +00:00
Add S2-032,S2-033,S2-037
This commit is contained in:
parent
f976d2517f
commit
7a93f7becb
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.DS_*
|
7
README.md
Normal file
7
README.md
Normal file
@ -0,0 +1,7 @@
|
||||
# VulApps
|
||||
|
||||
> 收集各种漏洞环境,为方便使用,统一采用 Dockerfile 形式
|
||||
|
||||
## S
|
||||
|
||||
* Struts2[./struts2/]
|
5
struts2/README.md
Normal file
5
struts2/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Struts2 VulApps
|
||||
|
||||
* S2-032[./s2-032/]
|
||||
* S2-033(与 s2-037 相同)[./s2-037/]
|
||||
* S2-037[./s2-037/]
|
24
struts2/s2-032/Dockerfile
Normal file
24
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
struts2/s2-037/Dockerfile
Normal file
24
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