fix: behinder payload classname is invalid

This commit is contained in:
ReaJason
2025-04-06 13:55:17 +08:00
parent 0f87083048
commit 8d9f906dcc
@@ -41,9 +41,8 @@ public class Utils {
public static String getRandomClassName() { public static String getRandomClassName() {
String[] domainAs = new String[]{"com", "net", "org", "sun"}; String[] domainAs = new String[]{"com", "net", "org", "sun"};
String domainB = getRandomAlpha((new Random()).nextInt(5) + 3).toLowerCase(); String domainB = getRandomAlpha((new Random()).nextInt(5) + 3);
String domainC = getRandomAlpha((new Random()).nextInt(5) + 3).toLowerCase(); String domainC = getRandomAlpha((new Random()).nextInt(5) + 3);
String domainD = getRandomAlpha((new Random()).nextInt(5) + 3).toLowerCase();
String className = getRandomAlpha((new Random()).nextInt(7) + 4); String className = getRandomAlpha((new Random()).nextInt(7) + 4);
className = className.substring(0, 1).toUpperCase() + className.substring(1).toLowerCase(); className = className.substring(0, 1).toUpperCase() + className.substring(1).toLowerCase();
int domainAIndex = (new Random()).nextInt(4); int domainAIndex = (new Random()).nextInt(4);