2024-04-18 14:48:36 +08:00

15 lines
425 B
Java

package com.novitechie;
public class LoadClassRule {
public static void check(String name) throws Exception {
if (name.startsWith("com.janetfilter")) {
throw new ClassNotFoundException(name);
}
if (name.contains("jdk.internal.org.objectweb.asm.Type")) {
if (StackTraceRule.check()) {
throw new ClassNotFoundException(name);
}
}
}
}