zhaolei
c0cb292350
fix: 测试靶场只展示 index.json 登记的样本 + 清 4 个临时调试文件
问题:
控制台测试靶场页面样本数: 目录 172 个 vs index.json 168 条
差了 4 个是 YARA 调试时创建的临时文件 (L4-005_hotreload.txt 等)
这些临时文件没进 index.json → meta_map 查不到 → category='未知' case_id='—'
修复:
1) console.py test_center_page:
samples_list 从遍历目录 (iterdir) 改成只从 index.json 来
每个样本必须 index.json 有登记 + 磁盘上确实存在
以后目录里即使有临时文件也不会混入靶场列表
2) 清理 4 个重复临时调试文件:
L4-005_hotreload.txt → index.json 正式: L4-005_005_sample.txt
L4-007_meta_rule.txt → index.json 正式: L4-007_meta_rule_match.txt
L4-010_regex_pattern.txt → index.json 正式: L4-010_010_sample.txt
L4-012_size_condition.txt → index.json 正式: L4-012_size_condition.bin
控制台页面现在: 168 条, 全部有 case_id 和 category, 无 '未知' 和 '—'
2026-10-29 17:11:51 +08:00
..
2026-10-29 11:44:38 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-29 15:38:25 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 12:02:36 +08:00
2026-10-29 12:02:36 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 14:40:49 +08:00
2026-10-29 12:02:36 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 12:02:36 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 16:19:58 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 14:16:37 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 14:16:37 +08:00
2026-10-29 16:15:38 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 16:19:58 +08:00
2026-10-29 16:19:58 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 16:15:38 +08:00
2026-10-29 14:16:37 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 16:19:58 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:36:42 +08:00
2026-10-29 11:44:38 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:44:38 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:33:58 +08:00
2026-10-29 11:44:38 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00
2026-10-28 19:07:11 +08:00