Skip to content

Commit 79c42af

Browse files
author
threedr3am
committed
feat:添加tomcat-ajp利用的jar包
1 parent 1f601a9 commit 79c42af

File tree

4 files changed

+33
-2
lines changed

4 files changed

+33
-2
lines changed

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,30 @@
144144
<target>8</target>
145145
</configuration>
146146
</plugin>
147+
<plugin>
148+
<groupId>org.apache.maven.plugins</groupId>
149+
<artifactId>maven-assembly-plugin</artifactId>
150+
<configuration>
151+
<archive>
152+
<manifest>
153+
<mainClass>com.threedr3am.learn.App</mainClass>
154+
</manifest>
155+
</archive>
156+
<descriptorRefs>
157+
<descriptorRef>jar-with-dependencies</descriptorRef>
158+
</descriptorRefs>
159+
<attach>false</attach>
160+
</configuration>
161+
<executions>
162+
<execution>
163+
<id>make-assembly</id>
164+
<phase>package</phase>
165+
<goals>
166+
<goal>single</goal>
167+
</goals>
168+
</execution>
169+
</executions>
170+
</plugin>
147171
</plugins>
148172
</build>
149173
</project>
Binary file not shown.

tomcat/ajp-bug/bin/readme.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
任意文件读取
2+
java -jar ajp-bug-1.0-SNAPSHOT-jar-with-dependencies.jar com.threedr3am.bug.tomcat.ajp.FileRead 127.0.0.1 8009 file /index.jsp
3+
4+
文件包含
5+
java -jar ajp-bug-1.0-SNAPSHOT-jar-with-dependencies.jar com.threedr3am.bug.tomcat.ajp.FileRead 127.0.0.1 8009 jsp /index.jsp
6+
7+
打包方式:
8+
在目录tomcat/ajp-bug
9+
执行 mvn clean compile assembly:assembly

tomcat/ajp-bug/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>ajp-bug</artifactId>
13-
14-
1513
</project>

0 commit comments

Comments
 (0)