Add catalogue filters, item detail views, and purchase and resale actions. Resolve images from the player's asset pack, public image URLs, or local game data. Add a utility for creating the optional local asset pack. Type checking and JavaScript syntax checks passed. Embedded browser appearance and in-game behavior still need acceptance.
40 lines
3.1 KiB
JSON
40 lines
3.1 KiB
JSON
{
|
||
"id": "online/accept-local-tls-certificate",
|
||
"title": "让客户端的 HTTPS 连接接受本地服务的自签证书",
|
||
|
||
"program_behaviour": {
|
||
"stock": "libcurl 建立新连接时用 Curl_clone_primary_ssl_config 把请求侧的 SSL 配置复制到连接侧(+0x98 的第 0 位 verifypeer、第 1 位 verifyhost 默认都是 1)。对于没有读取 enableSslCertCheck 开关的 HTTPS 请求(如脚本的 dagor.http、yuplay2 的购买与兑换码、事件上报),连接被 wto_ws.dll 改道到本地服务后,因本地服务使用自签证书而报 CURLE_PEER_FAILED_VERIFICATION(60)断开。",
|
||
"patched": "复制 SSL 配置到连接侧时,把 verifypeer 和 verifyhost 两位一并清零,所有经 wto_ws.dll 改道到本地服务的 HTTPS 连接都直接接受本地服务的自签证书。"
|
||
},
|
||
|
||
"derivation": {
|
||
"requirement": "HTTPS requests routed to the local service must complete their TLS handshake for purchases, product information, and code redemption.",
|
||
"cause": "network.blk 的 enableSslCertCheck 只被 0x155c950 的 4 个调用点读取;dagor.http(httpRequest)等请求不读它,保留了 libcurl 默认的证书链和主机名校验。实测日志:newsfeed.gap.gaijin.net 握手后报 SSL peer certificate or SSH remote key was not OK。",
|
||
"lighter_options_ruled_out": [
|
||
"network.blk 的 enableSslCertCheck:已设为 false,但 dagor.http 等路径根本不读取这个配置。",
|
||
"把本地服务的根证书装进 Windows 系统受信任根证书库:会改动玩家操作系统的全局信任链,影响正版和其他软件,违反隔离原则。"
|
||
],
|
||
"conclusion": "在 libcurl 复制连接 SSL 配置的单点清掉 verifypeer 和 verifyhost 两位(仅改 5 字节),同时由于 wto_ws.dll 已拦截所有外部连接,客户端不会连向任何真实外网服务器。",
|
||
"if_not_applied": "经 wto_ws.dll 改道到本地服务的 https 请求在 TLS 握手后因自签证书校验失败断开,GJN 付款、商品价格查询(item_info.php)和兑换码等无法到达本地服务。"
|
||
},
|
||
|
||
"why_this_site": [
|
||
"aces.exe 只静态链接了一份 libcurl(OpenSSL 后端),AsyncHTTPClient、dagor.http、YuHttp 全部共用它;Curl_clone_primary_ssl_config 是每个连接初始化 SSL 配置的必经入口。",
|
||
"0x5646412 原本是清除第 1 位后把 verifyhost 合进 eax,紧接着 0x5646417 写回 [rdx+0x98]。改成 and eax, -4 加两个 nop,一次把第 0 位(verifypeer)和第 1 位(verifyhost)都清零并写回,只改 5 字节,不改变栈和跳转结构。"
|
||
],
|
||
|
||
"features": ["A-不连 Gaijin", "G-礼包商店", "G-兑换码"],
|
||
"requires": ["online/network-hook-library"],
|
||
"evidence": [
|
||
"2.61.0.37 原版 aces.exe:Curl_clone_primary_ssl_config 位于 0x56463c0,由 0x5646360 对主连接(+0x1b0)和代理连接(+0x250)调用;OpenSSL 校验函数 0x63adb70 在 0x63afed5、0x63b0522、0x63b05b7 读取 +0x98 的第 0、1 位。"
|
||
],
|
||
"verified_on": [],
|
||
|
||
"edit": {
|
||
"offset": 82,
|
||
"asm": ["and eax, -4", "nop", "nop"],
|
||
"bytes": "83e0fc9090",
|
||
"expect_original": "83e0fd09c8"
|
||
}
|
||
}
|