diag(huya): R12 s5长度族23K零命中 - 累计53K差分零, s3/s4真源待注入

This commit is contained in:
yml2213
2026-08-29 02:53:54 +08:00
parent 23c8b13d01
commit d4f4e82593
2 changed files with 37 additions and 1 deletions
+3
View File
@@ -872,3 +872,6 @@ hypasswordLogin/MsgLoginReq/LogLoginReq → mid 各异, tail 恒定 8b38f1 → a
- 30976 combos (in×cnt×s3×s4×s5 候选族交叉) = 8.1s, 零命中
- 结论: 真实输入不在候选族内 → 需 s3/s4/s5 真源 (loadLoginData 持久化数据 / AppLoginData 真实 x20-s5)
- 差分引擎就绪 (30K calls/8s, 可 10 倍扩容)
## §11.39 R12: s5 零串长度族 (0-40) × S3精选 × in × cnt = 23616 combos / 5s / 零命中
- 累计差分 53K+ combos 零命中; s3/s4 真源 = native BusinessCfg (Java 无类), 需 loadLoginData/配置注入路线
+34 -1
View File
@@ -176,6 +176,39 @@ public class AesProbe {
return "";
}
void burstOtp2() {
String[] S3 = {"", "hy_300023887", "300023887", "1e8bdf7d4f7a01d3"};
String[] IN = {"0", "1", "3251699", "300023887", "1724464550000", "1724464550", "", "13.4.22", "hypasswordLogin"};
long[] CNT = {0, 1, 2, 3};
String G = "ed0db8334cadd236c00cadf7e11ab5a5";
int n = 0, hit = 0;
long t0 = System.currentTimeMillis();
for (String s3 : S3) for (String s4 : S3) {
for (int zlen = 0; zlen <= 40; zlen++) {
StringBuilder zb = new StringBuilder();
for (int i = 0; i < zlen; i++) zb.append('\u0000');
String s5 = zb.toString();
for (String in : IN) for (long cnt : CNT) {
n++;
UnidbgPointer pa = writeStdString(in), ps3 = writeStdString(s3), ps4 = writeStdString(s4), ps5 = writeStdString(s5), pout = writeStdString("");
try {
module.callFunction(emulator, 0x32fa24L,
UnidbgPointer.nativeValue(pa), 2L, cnt,
UnidbgPointer.nativeValue(ps3), UnidbgPointer.nativeValue(ps4), UnidbgPointer.nativeValue(ps5),
4L, 0L, UnidbgPointer.nativeValue(pout));
String out = readStdString(pout);
if (out.length() >= 36) {
String mid = toHex(out).substring(4, 36);
if (mid.equals(G)) { System.out.println("!!! HIT in=" + in + " cnt=" + cnt + " s3=" + s3 + " s4=" + s4 + " zlen=" + zlen); hit++; }
}
} catch (Throwable tx) {}
}
}
}
long dt = System.currentTimeMillis() - t0;
System.out.println("[burst2] n=" + n + " hits=" + hit + " in " + dt + "ms");
}
void burstOtp() {
String[] S3 = {"", "hy_300023887", "300023887", "772ed992b0e161276f44ec63671e60155c506294",
"1e8bdf7d4f7a01d3", "13.4.22", "1.0.80138", "5008", "xiaomi", "127.0.0.1", "7c5387e0539c023c31c4ff0e807e7256117385ee"};
@@ -667,7 +700,7 @@ public class AesProbe {
p.callOtpReal("0", 1L, "", "", "00000000000000000000000000000000", 0L);
p.callOtpReal("0", 1L, "hy_300023887", "772ed992b0e161276f44ec63671e60155c506294", "00000000000000000000000000000000", 0L);
p.callOtpReal("1724464550000", 0L, "", "", "", 0L);
p.burstOtp();
p.burstOtp2();
// 基准: 已知 16B 明文 + 24B 钥
// 64B 钥材料测试 (KeyExpansion 以 16B 步长读!!)
String k64_zmhav = "ZMHAVPRaxJ3MtXDjduUnXAKQ" + "\0".repeat(0);