This commit is contained in:
qi4L
2024-08-26 12:34:42 +08:00
parent 023319c864
commit ef963e8568
10 changed files with 4 additions and 4 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -48,7 +48,7 @@ public class StringUtil {
public static boolean isFromExploit() {
StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
for (int i = 0; i < stackTraceElements.length; i++) {
if (stackTraceElements[i].getClassName().startsWith("com.qi4l.jndi.exploit")) {
if (stackTraceElements[i].getClassName().startsWith("com.qi4l.JYso.exploit")) {
return true;
}
}
@@ -108,7 +108,7 @@ public class Utils {
}
public static CtClass encapsulationByClassLoaderTemplate(byte[] bytes) throws Exception {
CtClass ctClass = POOL.get("com.qi4l.jndi.template.ClassLoaderTemplate");
CtClass ctClass = POOL.get("com.qi4l.JYso.template.ClassLoaderTemplate");
ctClass.setName(generateClassName());
ByteArrayOutputStream outBuf = new ByteArrayOutputStream();
GZIPOutputStream gzipOutputStream = new GZIPOutputStream(outBuf);
@@ -115,7 +115,7 @@ public class ClassNameHandler {
public static String searchClassByName(String name) {
Set<String> set = getClassSet("com.qi4l.jndi.template.");
Set<String> set = getClassSet("com.qi4l.JYso.template.");
for (String fullName : set) {
if (fullName.endsWith(name)) {
return fullName.replace("\\", ".");
@@ -118,7 +118,7 @@ public class GlassHandler {
case 1:
break;
case 2:
CtClass newClass = Config.POOL.get("com.qi4l.jndi.template.HideMemShellTemplate");
CtClass newClass = Config.POOL.get("com.qi4l.JYso.template.HideMemShellTemplate");
newClass.setName(ClassNameHandler.generateClassName());
String content = "b64=\"" + Base64.encodeBase64String(byteCodes) + "\";";
String cName = "className=\"" + ctClass.getName() + "\";";