15 lines
425 B
Java
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);
|
|
}
|
|
}
|
|
}
|
|
}
|