mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 15:10:43 +08:00
feat: support OGNL SpringUtils packers
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import ognl.Ognl;
|
||||
import ognl.OgnlContext;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* @author ReaJason
|
||||
* @since 2025/7/22
|
||||
*/
|
||||
class OgnlServletTest {
|
||||
|
||||
@Test
|
||||
void test() throws Exception {
|
||||
OgnlContext context = new OgnlContext();
|
||||
Object value = null;
|
||||
System.out.println(Ognl.getValue("(new java.io.File('.')).list()", context, context.getRoot()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user