Wangsheng-Funeral-Parlor / HuTao-GS

pancake, fork, lawnmower, spaghetti
GNU Affero General Public License v3.0
180 stars 50 forks source link

How to enter this ps? #4

Closed 0eromacyS closed 2 years ago

0eromacyS commented 2 years ago

questions

where is query_region_list?

in 127.0.0.1 : 80 or 443?

how to fix config.json

where is ca files

log

[2022-08-16 18:42:44]|INFO |[CONFIG] Loading config...
[2022-08-16 18:42:44]|ERROR|[CONFIG] Config not found: default
                                            ▄▄                  .
              ▄        ▄                    ▄▀                  .
              ▄▄       ▀      ▄▄▄          ▄▄                   .
               ▄          ▄▄▄▄▄▄▄▄▄▄                            .
         ▄▄▄▄▄           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄                         .
        ▄▄▄▄▄▄▄      ▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄       ▄     ▄▄▄     .
        ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄  ▀     ▄▄▄▄▄   .
         ▀▀▄▄▄▄▄▄▄▄      ▄▄▄▄▄▄▄▄▄▄▄▄▄▄       ▄▄▄▄▄  ▄▄▄▄▄▄▀    .
           ▄▄▄▄▄ ▄        ▄▄ ▄▄▄▄▄▄▄▄▄▄    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄     .
       ▄   ▄▄▄            ▄▄▄▄▄▄▄▄ ▄▄▄    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄      .
       ▀▄▄▀▄▄          ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄     .
    ▄       ▄    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ ▄▄▄▄▄   .
    ▀▄▄▄ ▀▄▄▄▄▄▄▄▄▄▄▄▄            ▄        ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    .
            ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀▀▀     .
           ▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    ▄▄   .
           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀▀    .
    ▄      ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄        .
    ▀▀▀    ▄▄▄▄▄▄▄ ▄▄ ▄▄▄▄▄▄     ▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄▄▄▄▄▄▄▀  ▄▄    .
            ▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ .
        ▄▄▄▄▄▄ ▄▄  ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄ .
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ .
   ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄   .
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▀▀    .
  ▄▄▄▄▄▄▄▄▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄       .
   ▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀       .
   ▀▀▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄▀▀    .
     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄     .
      ▀▀▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▀▀▀▀▀     .
     ▄▄▄▀  ▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄       .
          ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀  ▀       .
            ▀▀▀▄▄▄▄▄▄▄▀▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀▀▄▄▄▄▄▄▄▀▀▀            .
                 ▀▀▀                        ▀▀▀
[2022-08-16 18:42:44]|INFO |[LOGGER] Log capture started at: 2022-08-16 18:42:44
[2022-08-16 18:42:44]|INFO |[SERVER] Name: HuTao-GS
[2022-08-16 18:42:44]|INFO |[SERVER] Build: development
[2022-08-16 18:42:44]|INFO |[SERVER] Game version: 2.8.50
[2022-08-16 18:42:44]|INFO |[SERVER] Dispatch region: CNCB
[2022-08-16 18:42:44]|INFO |[SERVER] Dispatch seed: null
[2022-08-16 18:42:44]|INFO |[SERVER] Dispatch key: 3
[2022-08-16 18:42:44]|INFO |[SERVER] Auto patch: false
[2022-08-16 18:42:44]|INFO |[SERVER] Log level: 5
[2022-08-16 18:42:44]|INFO |[GSTATE] No saved state, using default.
[2022-08-16 18:42:44]|DEBUG|[CLIENT] Set UID: 1
[2022-08-16 18:42:44]|DEBUG|[PACKET] [SKIP] PlayerProp
[2022-08-16 18:42:44]|DEBUG| Launch arguments: [
  'C:\\Program Files\\nodejs\\node.exe',
  'D:\\UserFiles\\Desktop\\HuTao-GS\\buildDev',
  '-ll:5'
]
[2022-08-16 18:42:44]|INFO |[SERVER] Starting...
[2022-08-16 18:42:44]|INFO |[SSLGEN] Validating ca files...
[2022-08-16 18:42:44]|DEBUG|[DNSSRV] [TCP] Listening on port 53
[2022-08-16 18:42:44]|DEBUG|[DNSSRV] [UDP] Listening on port 53
[2022-08-16 18:42:44]|DEBUG|[KCPSRV] Listening on port 22102
[2022-08-16 18:42:44]|WARN |[SSLGEN] Missing ca files.
[2022-08-16 18:42:44]|DEBUG|[OPNSSL] Checking OpenSSL installation...
[2022-08-16 18:42:44]|ERROR|[OPNSSL] OpenSSL not installed.
[2022-08-16 18:42:44]|ERROR|[WEBSRV] Unable to generate ssl config, abort.
[2022-08-16 18:42:50]|DEBUG|[GSCENE] [JOIN|000001] UID: 1 ID: 3 Pos: [-658,219,266] Type: ENTER_SELF Reason: LOGIN
[2022-08-16 18:42:50]|DEBUG|[GSCENE] Load block: 3107
[2022-08-16 18:42:50]|DEBUG|[ENTITY] Add: 16816320
[2022-08-16 18:42:50]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 16816320
[2022-08-16 18:42:50]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67154668
[2022-08-16 18:42:50]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67154669
[2022-08-16 18:42:50]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67154670
[2022-08-16 18:42:51]|DEBUG|[ENTITY] [BORN|000001] A x9
[2022-08-16 18:42:52]|DEBUG|[ENTITY] [BORN|000001] A x74
[2022-08-16 18:42:53]|DEBUG|[ENTITY] [BORN|000001] A x77
>>
0eromacyS commented 2 years ago

and also Dispatch seed

NotArandomGUY commented 2 years ago

Q: where is query_region_list?

A: both

Q: how to fix config.json

A: wdym?

Q: where is ca files

A: inside ./ssl or the directory you set in config.json

Q: dispatch seed

A: don't need that unless using auto patch

0eromacyS commented 2 years ago

should i put proto files somewhere? i used msedge to visit 127.0.0.1/query_region_list,but there's nothing

console log

[2022-08-16 22:03:25]|DEBUG|[DIPREQ] Search:
[2022-08-16 22:03:25]|WARN |[PROTOU] Missing proto: QueryRegionListHttpRsp
[2022-08-16 22:03:25]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_region_list
NotArandomGUY commented 2 years ago

yes, put it inside data/proto/<Game version> and copy these to data/proto image

0eromacyS commented 2 years ago

thx

console log

[2022-08-16 22:18:24]|DEBUG|[DIPREQ] Search:
[2022-08-16 22:18:24]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_region_list
[2022-08-16 22:18:25]|DEBUG|[WEBSRV] Unhandled: 127.0.0.1/favicon.ico

region list

CAASQQoGb3NfdXNhEghIdXRhbyBHUxoKREVWX1BVQkxJQyIhaHR0cDovLzEyNy4wLjAuMS9xdWVyeV9jdXJfcmVnaW9uEkIKB29zX2V1cm8SCE.........................

(it's too long)

Decryption result

QueryRegionListHttpRsp {
  regionList: [
    RegionSimpleInfo {
      name: 'os_usa',
      title: 'Hutao GS',
      type: 'DEV_PUBLIC',
      dispatchUrl: 'http://127.0.0.1/query_cur_region'
    },
    RegionSimpleInfo {
      name: 'os_euro',
      title: 'Hutao GS',
      type: 'DEV_PUBLIC',
      dispatchUrl: 'http://127.0.0.1/query_cur_region'
    },
    RegionSimpleInfo {
      name: 'os_asia',
      title: 'Hutao GS',
      type: 'DEV_PUBLIC',
      dispatchUrl: 'http://127.0.0.1/query_cur_region'
    },
    RegionSimpleInfo {
      name: 'os_cht',
      title: 'Hutao GS',
      type: 'DEV_PUBLIC',
      dispatchUrl: 'http://127.0.0.1/query_cur_region'
    }
  ],
  retcode: 0,
  clientSecretKey: <Buffer 45 63 32 62 10 00 00 00 0d f5 bb fd ff 29 41 39 5c 1b ba ec fd 1e 99 59 00 08 00 00 f0 aa 9c 65 52 40 ba 81 5c 3b dd a1 e5 f3 c6 5c 5c 6f 7b 90 2b 10 ... 2026 more bytes>,
  clientCustomConfigEncrypted: <Buffer f9 39 53 b0 ec f8 73 c0 28 89 12 13 d0 67 fd 06 ea 1c 8e dd 0f 0d 75 06 9d e0 0b 83 be 7d 2f f3 cc aa 37 0a 35 5b f9 e7 28 39 66 5d f5 98 57 f1 c3 e8 ... 85 more bytes>,
  enableLoginPc: true
}
NotArandomGUY commented 2 years ago

good, you can close this issue if everything is ok

0eromacyS commented 2 years ago

Sorry,i have encountered some error,so I need to ask u for help

Client

I have patched metadata I can get the server list but i can't enter the game and get an error code

Error Code : 4206 Game Version : CNCB2.8.54

Fidder&Console

the log says Encrypt private key missing

image

Fidder Script

/* Original script by NicknameGG, modified for Grasscutter by contributors, modified for HuTao GS by NotArandomGUY */
import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;

class Handlers
{
    static function OnBeforeRequest(oS: Session) {
        if(oS.host.EndsWith(".yuanshen.com") || oS.host.EndsWith(".hoyoverse.com") || oS.host.EndsWith(".mihoyo.com") || oS.uriContains("http://overseauspider.yuanshen.com:8888/log")){
            oS.bypassGateway = true;
            oS["x-overrideHost"] = '127.0.0.1';
        }
    }
}

Console Log

[2022-08-17 09:09:19]|INFO |[CONFIG] Loading config...
[2022-08-17 09:09:19]|ERROR|[CONFIG] Config not found: default
                                            ▄▄                  .
              ▄        ▄                    ▄▀                  .
              ▄▄       ▀      ▄▄▄          ▄▄                   .
               ▄          ▄▄▄▄▄▄▄▄▄▄                            .
         ▄▄▄▄▄           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄                         .
        ▄▄▄▄▄▄▄      ▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄       ▄     ▄▄▄     .
        ▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄  ▀     ▄▄▄▄▄   .
         ▀▀▄▄▄▄▄▄▄▄      ▄▄▄▄▄▄▄▄▄▄▄▄▄▄       ▄▄▄▄▄  ▄▄▄▄▄▄▀    .
           ▄▄▄▄▄ ▄        ▄▄ ▄▄▄▄▄▄▄▄▄▄    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄     .
       ▄   ▄▄▄            ▄▄▄▄▄▄▄▄ ▄▄▄    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄      .
       ▀▄▄▀▄▄          ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄     .
    ▄       ▄    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ ▄▄▄▄▄   .
    ▀▄▄▄ ▀▄▄▄▄▄▄▄▄▄▄▄▄            ▄        ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    .
            ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀▀▀     .
           ▄▄▄▄  ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    ▄▄   .
           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀▀    .
    ▄      ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄        .
    ▀▀▀    ▄▄▄▄▄▄▄ ▄▄ ▄▄▄▄▄▄     ▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄▄▄▄▄▄▄▀  ▄▄    .
            ▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ .
        ▄▄▄▄▄▄ ▄▄  ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄ .
   ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ .
   ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄   .
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▀▀    .
  ▄▄▄▄▄▄▄▄▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄       .
   ▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀       .
   ▀▀▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄▀▀    .
     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄     .
      ▀▀▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▀▀▀▀▀     .
     ▄▄▄▀  ▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄       .
          ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀  ▀       .
            ▀▀▀▄▄▄▄▄▄▄▀▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀▀▄▄▄▄▄▄▄▀▀▀            .
                 ▀▀▀                        ▀▀▀
[2022-08-17 09:09:19]|INFO |[LOGGER] Log capture started at: 2022-08-17 09:09:19
[2022-08-17 09:09:19]|INFO |[SERVER] Name: HuTao-GS
[2022-08-17 09:09:19]|INFO |[SERVER] Build: development
[2022-08-17 09:09:19]|INFO |[SERVER] Game version: 2.8.54
[2022-08-17 09:09:19]|INFO |[SERVER] Dispatch region: CNCB
[2022-08-17 09:09:19]|INFO |[SERVER] Dispatch seed: null
[2022-08-17 09:09:19]|INFO |[SERVER] Dispatch key: 3
[2022-08-17 09:09:19]|INFO |[SERVER] Auto patch: false
[2022-08-17 09:09:19]|INFO |[SERVER] Log level: 5
[2022-08-17 09:09:19]|INFO |[GSTATE] Loading...
[2022-08-17 09:09:19]|INFO |[GSTATE] Set: SaveLog -> No
[2022-08-17 09:09:19]|INFO |[GSTATE] Set: SaveRecorder -> No
[2022-08-17 09:09:19]|INFO |[GSTATE] Set: SaveReport -> No
[2022-08-17 09:09:19]|INFO |[GSTATE] Set: PacketDump -> Yes
[2022-08-17 09:09:19]|INFO |[GSTATE] Set: ShowPacketId -> Yes
[2022-08-17 09:09:19]|INFO |[GSTATE] Set: UseProtoMatch -> Yes
[2022-08-17 09:09:19]|INFO |[GSTATE] Loaded.
[2022-08-17 09:09:19]|DEBUG|[CLIENT] Set UID: 1
[2022-08-17 09:09:19]|DEBUG|[PACKET] [SKIP] PlayerProp
[2022-08-17 09:09:19]|DEBUG| Launch arguments: [
  'C:\\Program Files\\nodejs\\node.exe',
  'D:\\UserFiles\\Desktop\\HuTao-GS\\buildDev',
  '-ll:5'
]
[2022-08-17 09:09:19]|INFO |[SERVER] Starting...
[2022-08-17 09:09:19]|INFO |[SSLGEN] Validating ca files...
[2022-08-17 09:09:19]|DEBUG|[DNSSRV] [TCP] Listening on port 53
[2022-08-17 09:09:19]|DEBUG|[DNSSRV] [UDP] Listening on port 53
[2022-08-17 09:09:19]|DEBUG|[KCPSRV] Listening on port 22102
[2022-08-17 09:09:19]|INFO |[SSLGEN] Validation success.
[2022-08-17 09:09:19]|INFO |[SSLGEN] Validating srv files...
[2022-08-17 09:09:19]|INFO |[SSLGEN] Validation success.
[2022-08-17 09:09:20]|DEBUG|[WEBSRV] Listening on port 80
[2022-08-17 09:09:20]|DEBUG|[WEBSRV] Listening on port 443
[2022-08-17 09:09:20]|DEBUG|[WEBSRV] Listening on port 8888
[2022-08-17 09:09:20]|INFO |[SERVER] Started.
[2022-08-17 09:09:25]|DEBUG|[GSCENE] [JOIN|000001] UID: 1 ID: 3 Pos: [-658,219,266] Type: ENTER_SELF Reason: LOGIN
[2022-08-17 09:09:26]|DEBUG|[GSCENE] Load block: 3107
[2022-08-17 09:09:26]|DEBUG|[ENTITY] Add: 16818988
[2022-08-17 09:09:26]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 16818988
[2022-08-17 09:09:26]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67157334
[2022-08-17 09:09:26]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67157335
[2022-08-17 09:09:26]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67157336
[2022-08-17 09:09:27]|DEBUG|[ENTITY] [BORN|000001] A x9
[2022-08-17 09:09:27]|DEBUG|[ENTITY] [BORN|000001] A x74
[2022-08-17 09:09:28]|DEBUG|[ENTITY] [BORN|000001] A x77
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (200)hk4e-sdk.mihoyo.com/hk4e_cn/combo/granter/api/compareProtocolVersion
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/api/getConfig
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/api/compareProtocolVersion
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/mdk/shield/api/loadConfig
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/combo/box/api/config/sdk/combo
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/mdk/shield/api/verify
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/login/v2/login
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 09:09:34]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 09:09:39]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=382&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 09:09:39]|ERROR|[WEBSRV] Error handling request: Encrypt private key missing.
[2022-08-17 09:09:39]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=933&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 09:09:39]|ERROR|[WEBSRV] Error handling request: Encrypt private key missing.
[2022-08-17 09:09:40]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=482&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 09:09:40]|ERROR|[WEBSRV] Error handling request: Encrypt private key missing.
[2022-08-17 09:09:41]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=49&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 09:09:41]|ERROR|[WEBSRV] Error handling request: Encrypt private key missing.
[2022-08-17 09:09:41]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=574&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 09:09:41]|ERROR|[WEBSRV] Error handling request: Encrypt private key missing.
[2022-08-17 09:09:42]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=104&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 09:09:42]|ERROR|[WEBSRV] Error handling request: Encrypt private key missing.
>>
NotArandomGUY commented 2 years ago

You need to extract the key from global-metadata.dat, you can also find the key in Grasscutter resources (OSCB.pem for OSREL, OSCN.pem for CNCB iirc)

0eromacyS commented 2 years ago

I found these in grasscutter(for 2.8.5X) resouces,how to use the key? image

NotArandomGUY commented 2 years ago

copy OSCB.pem or OSCN.pem depending on region to data/key/3 or data/key/2

NotArandomGUY commented 2 years ago

and rename it to encryptPrivate.pem

0eromacyS commented 2 years ago

image

NotArandomGUY commented 2 years ago

if you are using CN client, put OSCN.pem in data/key/2

0eromacyS commented 2 years ago

i also put OSCN.pem in data/key/2 and patched metadata again but the error code changed to 4214

Fidder

image

Console

[2022-08-17 11:14:41]|INFO |[SERVER] Starting...
[2022-08-17 11:14:41]|INFO |[SSLGEN] Validating ca files...
[2022-08-17 11:14:41]|DEBUG|[DNSSRV] [TCP] Listening on port 53
[2022-08-17 11:14:41]|DEBUG|[DNSSRV] [UDP] Listening on port 53
[2022-08-17 11:14:41]|DEBUG|[KCPSRV] Listening on port 22102
[2022-08-17 11:14:41]|INFO |[SSLGEN] Validation success.
[2022-08-17 11:14:41]|INFO |[SSLGEN] Validating srv files...
[2022-08-17 11:14:41]|INFO |[SSLGEN] Validation success.
[2022-08-17 11:14:41]|DEBUG|[WEBSRV] Listening on port 80
[2022-08-17 11:14:41]|DEBUG|[WEBSRV] Listening on port 443
[2022-08-17 11:14:41]|DEBUG|[WEBSRV] Listening on port 8888
[2022-08-17 11:14:41]|INFO |[SERVER] Started.
[2022-08-17 11:14:46]|DEBUG|[GSCENE] [JOIN|000001] UID: 1 ID: 3 Pos: [-658,219,266] Type: ENTER_SELF Reason: LOGIN
[2022-08-17 11:14:47]|DEBUG|[GSCENE] Load block: 3107
[2022-08-17 11:14:47]|DEBUG|[ENTITY] Add: 16815124
[2022-08-17 11:14:47]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 16815124
[2022-08-17 11:14:47]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67172549
[2022-08-17 11:14:47]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67172550
[2022-08-17 11:14:47]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67172551
[2022-08-17 11:14:48]|DEBUG|[ENTITY] [BORN|000001] A x5
[2022-08-17 11:14:48]|DEBUG|[ENTITY] [BORN|000001] A x78
[2022-08-17 11:14:49]|DEBUG|[ENTITY] [BORN|000001] A x77
[2022-08-17 11:15:25]|INFO |[CLIOUT] Success.
[2022-08-17 11:16:13]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:16:13]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:16:13]|DEBUG|[WEBSRV] Handled: (200)hk4e-sdk.mihoyo.com/hk4e_cn/combo/granter/api/compareProtocolVersion
[2022-08-17 11:16:13]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:16:13]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=657&channel_id=1&sub_channel_id=1
[2022-08-17 11:16:13]|DEBUG|[WEBSRV] Handled: (200)dispatchcnglobal.yuanshen.com/query_region_list
[2022-08-17 11:16:13]|DEBUG|[DIPREQ] Search:
[2022-08-17 11:16:13]|DEBUG|[DIPREQ] Search:
[2022-08-17 11:16:13]|DEBUG|[DIPREQ] Search:
[2022-08-17 11:16:13]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 11:16:13]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 11:16:13]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/api/compareProtocolVersion
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/combo/box/api/config/sdk/combo
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/mdk/shield/api/loadConfig
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/api/getConfig
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/mdk/shield/api/verify
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/login/v2/login
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:16:14]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:16:46]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=64&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 11:16:46]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
0eromacyS commented 2 years ago

maybe i should patch metadata again?

query_cur_region

{"content":"ijTS9VUCWoD3gqdpHdkaNvExGfgXtvhCatuWvFtwZyR15pspr8Nn2QzsVrdphRddE+L0hXc0+aZfVMr8QaDMGY49pURwRugj2LPI3UigzRSvMLI2x+3gJXGw84xS1SKrLs4bZFajgILagv1LCoIfyp5zbqOkjbm0Qkm78NCa+XUJvsfhiWMJ4eiP29hX9+xEIRjbWAczA2zpGFJHXJDJHf0aqeJH7ETOCLf2/QwKgXozlr25qMam/GuwlzWft+56LsKz9dDAZlm2mGgcVJLBJs0eMGjgoPktv7g0Su5HjRTlT0rQ1HpA1yxN86Bfi46ZuWLenUWOzLEtqIeb2E+VVnMb9q7Rn3UVN6tTL/l3jaizyAKZtGA6Blc7z3AhnBf3NqRQBkqpgB4UVzJ4/pE7h4+paDEmeCnfQTtBYX56PfDpMGsqjyEqU9yNYxaNEk+FyeUMihOVpGVJVOAxXjdegCKexUBUYnc8J81h6gWxVYyRJ+CFPHU+bUkEdivT5HsgoG3vbMHFyIZOY74VdBqkJtOTxv9wR/E1rc2plLZce8MVHq1g8tTDC2msiAEgG6nEqXZSK2Sqb0j63kHV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DFe2hsMNP7QT+9cSkxKJ79wymzlShY70eYC6vZMBihZTP+UX2+gWQPINjasI2Un7v2u7XBQze4IL7J7DEsrJhAbrUpLPuENDI9NUKz6XUzD3uOJ7nT560aPomHsSuMdSLvyvCaOsjH+Jiju9j9zLWW64z/ChWgQ3+SQ3aopw1ulji0lagtlmWDJ4ZG6sluCOMZMBhhsVDjcOxY0BdnYS8MKFpTgRiTqtu5GWgK3K8Cc2xiajdANZBLfB+/TdJJbxdXkJXNNyUGfIU/PLAq1dXbSyI/aeE2X+zp4CGmDZJtWIIx+tVCICPmU7KoMgEvvfE+2nvhsZH09OHR+66GX63Jk03tnj4qW3EuJ2fAxiEDe2JjVrr6cTXjwZeJHVNYFeLO1c9wn8Pzh8MAi1Zyla45dNC8LAi2Ky3gyYg611q3QKenH7LX9G7A4b8eoYwHuWKDEjTDRnb4QPmFGwIXLZyMHoNy5GOhYUwCPVDvRM+4rSzd6gKqM8diJysg==","sign":"EskHBOQREDtXdzihK1fq/iq7HVICZ0HZe9AQKSf7Kz/ZcuF5XrsN3zkeRV2M7vAPZ8TTG10B1nvFFemZVH2+NSiC4lhsQ8Xogpas5JtqDVbocg+z1dmSRP6OMdONgjpG1plf6rkkLEXGCLZCdzc6tX2Q2fDxeE1YEdf5QLob/ROaZJtk/ji1kVkPCphzR0P12FUGy9+GBYFQXR1De1uq15+7f6yCedLFhOW+Lv2qVcLiwx4RUN4Pe8n20X77NOi/vhOyh8v1fpg5g8T1zRW0lGeLncPpLd8c4iuK7l3fhYwzOZieI4CqK+SUh8MLTgbAud28tZHs9y9eSDBZi4vaHg=="}
NotArandomGUY commented 2 years ago

how did you patch it?

0eromacyS commented 2 years ago

how did you patch it?

use the command metapatch

NotArandomGUY commented 2 years ago

did you change dispatchKeyId in config?

0eromacyS commented 2 years ago

image

NotArandomGUY commented 2 years ago

since you are using CN client, set it to 2

0eromacyS commented 2 years ago

Dispatch key: 2 Error code: 4214

[2022-08-17 11:28:13]|INFO |[LOGGER] Log capture started at: 2022-08-17 11:28:13
[2022-08-17 11:28:13]|INFO |[SERVER] Name: HuTao-GS
[2022-08-17 11:28:13]|INFO |[SERVER] Build: development
[2022-08-17 11:28:13]|INFO |[SERVER] Game version: 2.8.54
[2022-08-17 11:28:13]|INFO |[SERVER] Dispatch region: CNCB
[2022-08-17 11:28:13]|INFO |[SERVER] Dispatch seed: null
[2022-08-17 11:28:13]|INFO |[SERVER] Dispatch key: 2
[2022-08-17 11:28:13]|INFO |[SERVER] Auto patch: false
[2022-08-17 11:28:13]|INFO |[SERVER] Log level: 5
[2022-08-17 11:28:13]|INFO |[GSTATE] Loading...
[2022-08-17 11:28:13]|INFO |[GSTATE] Set: SaveLog -> Yes
[2022-08-17 11:28:13]|INFO |[GSTATE] Set: SaveRecorder -> Yes
[2022-08-17 11:28:13]|INFO |[GSTATE] Set: SaveReport -> Yes
[2022-08-17 11:28:13]|INFO |[GSTATE] Set: PacketDump -> Yes
[2022-08-17 11:28:13]|INFO |[GSTATE] Set: ShowPacketId -> Yes
[2022-08-17 11:28:13]|INFO |[GSTATE] Set: UseProtoMatch -> Yes
[2022-08-17 11:28:13]|INFO |[GSTATE] Loaded.
[2022-08-17 11:28:13]|DEBUG|[CLIENT] Set UID: 1
[2022-08-17 11:28:13]|DEBUG|[PACKET] [SKIP] PlayerProp
[2022-08-17 11:28:13]|DEBUG| Launch arguments: [
  'C:\\Program Files\\nodejs\\node.exe',
  'D:\\UserFiles\\Desktop\\HuTao-GS\\buildDev',
  '-ll:5'
]
[2022-08-17 11:28:13]|INFO |[SERVER] Starting...
[2022-08-17 11:28:13]|INFO |[SSLGEN] Validating ca files...
[2022-08-17 11:28:13]|DEBUG|[DNSSRV] [TCP] Listening on port 53
[2022-08-17 11:28:13]|DEBUG|[DNSSRV] [UDP] Listening on port 53
[2022-08-17 11:28:13]|DEBUG|[KCPSRV] Listening on port 22102
[2022-08-17 11:28:13]|INFO |[SSLGEN] Validation success.
[2022-08-17 11:28:13]|INFO |[SSLGEN] Validating srv files...
[2022-08-17 11:28:13]|INFO |[SSLGEN] Validation success.
[2022-08-17 11:28:13]|DEBUG|[WEBSRV] Listening on port 80
[2022-08-17 11:28:13]|DEBUG|[WEBSRV] Listening on port 443
[2022-08-17 11:28:13]|DEBUG|[WEBSRV] Listening on port 8888
[2022-08-17 11:28:13]|INFO |[SERVER] Started.
[2022-08-17 11:28:18]|DEBUG|[GSCENE] [JOIN|000001] UID: 1 ID: 3 Pos: [-658,219,266] Type: ENTER_SELF Reason: LOGIN
[2022-08-17 11:28:19]|DEBUG|[GSCENE] Load block: 3107
[2022-08-17 11:28:19]|DEBUG|[ENTITY] Add: 16812159
[2022-08-17 11:28:19]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 16812159
[2022-08-17 11:28:19]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67156596
[2022-08-17 11:28:19]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67156597
[2022-08-17 11:28:19]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67156598
[2022-08-17 11:28:20]|DEBUG|[ENTITY] [BORN|000001] A x16
[2022-08-17 11:28:20]|DEBUG|[ENTITY] [BORN|000001] A x55
[2022-08-17 11:28:21]|DEBUG|[ENTITY] [BORN|000001] A x89
[2022-08-17 11:28:22]|INFO |[CLIERR] Unknown command: metapath
[2022-08-17 11:28:58]|INFO |[CLIERR] Unknown command: metapath
[2022-08-17 11:29:06]|INFO |[CLIOUT] Success.
[2022-08-17 11:29:57]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:29:57]|DEBUG|[WEBSRV] Handled: (200)hk4e-sdk.mihoyo.com/hk4e_cn/combo/granter/api/compareProtocolVersion
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:29:58]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=29&channel_id=1&sub_channel_id=1
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (200)dispatchcnglobal.yuanshen.com/query_region_list
[2022-08-17 11:29:58]|DEBUG|[DIPREQ] Search:
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 11:29:58]|DEBUG|[DIPREQ] Search:
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 11:29:58]|DEBUG|[DIPREQ] Search:
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/api/compareProtocolVersion
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/mdk/shield/api/loadConfig
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/api/getConfig
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/combo/box/api/config/sdk/combo
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/mdk/shield/api/verify
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:29:58]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/login/v2/login
[2022-08-17 11:30:04]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=548&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 11:30:04]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
NotArandomGUY commented 2 years ago

I think you copied the wrong key, the query_cur_region you sent me is encrypted with OS key, you need CN key

0eromacyS commented 2 years ago

oh let me try again now i get to the door but get another error code 4309-0

0eromacyS commented 2 years ago

Console

[2022-08-17 11:40:43]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=337&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 11:40:43]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 11:40:53]|DEBUG|[HNDSHK] Connect
[2022-08-17 11:40:53]|INFO |[KCPSRV] Client connect: 127.0.0.1_50189_62fc6345
[2022-08-17 11:40:53]|DEBUG|[KCPSRV] Initial key match: true
[2022-08-17 11:40:53]|DEBUG|[KCPSRV] [RECV|------] 109 000001 GetPlayerTokenReq
[2022-08-17 11:40:53]|DEBUG|[KCPSRV] [SEND|------] 131 000001 GetPlayerTokenRsp
[2022-08-17 11:40:53]|DEBUG|[CLIENT] Seed: 12388182595565094959n
[2022-08-17 11:40:53]|DEBUG|[CLIENT] Set UID: 175064
[2022-08-17 11:40:53]|WARN |[KCPSRV] Invalid packet received, xor decrypt failed?
[2022-08-17 11:41:03]|WARN |[KCPSRV] Invalid packet received, xor decrypt failed?
[2022-08-17 11:41:09]|DEBUG|[HNDSHK] Disconnect
[2022-08-17 11:41:09]|INFO |[KCPSRV] Client disconnect: 127.0.0.1_50189_62fc6345 Reason: ENET_CLIENT_SHUTDOWN
[2022-08-17 11:41:10]|DEBUG|[HNDSHK] Connect
[2022-08-17 11:41:10]|INFO |[KCPSRV] Client connect: 127.0.0.1_62470_62fc6356
[2022-08-17 11:41:10]|DEBUG|[KCPSRV] Initial key match: true
[2022-08-17 11:41:10]|DEBUG|[KCPSRV] [RECV|------] 109 000004 GetPlayerTokenReq
[2022-08-17 11:41:10]|DEBUG|[KCPSRV] [SEND|------] 131 000004 GetPlayerTokenRsp
[2022-08-17 11:41:10]|DEBUG|[CLIENT] Seed: 9839124175826405323n
[2022-08-17 11:41:10]|DEBUG|[CLIENT] Set UID: 175064
[2022-08-17 11:41:20]|WARN |[KCPSRV] Invalid packet received, xor decrypt failed?
NotArandomGUY commented 2 years ago

try using dns to connect, can't see client error with fiddler

0eromacyS commented 2 years ago

I read the docs and use dns to connect also 4309-0

console

[2022-08-17 11:46:34]|INFO |[SERVER] Starting...
[2022-08-17 11:46:34]|INFO |[SSLGEN] Validating ca files...
[2022-08-17 11:46:34]|DEBUG|[DNSSRV] [TCP] Listening on port 53
[2022-08-17 11:46:34]|DEBUG|[DNSSRV] [UDP] Listening on port 53
[2022-08-17 11:46:34]|DEBUG|[KCPSRV] Listening on port 22102
[2022-08-17 11:46:34]|INFO |[SSLGEN] Validation success.
[2022-08-17 11:46:34]|INFO |[SSLGEN] Validating srv files...
[2022-08-17 11:46:34]|INFO |[SSLGEN] Validation success.
[2022-08-17 11:46:34]|DEBUG|[WEBSRV] Listening on port 80
[2022-08-17 11:46:34]|DEBUG|[WEBSRV] Listening on port 443
[2022-08-17 11:46:34]|DEBUG|[WEBSRV] Listening on port 8888
[2022-08-17 11:46:34]|INFO |[SERVER] Started.
[2022-08-17 11:46:36]|DEBUG|[LOGREC] [UID:10004] [Disconnect] GoBackHome: EnetServerShutdown
[2022-08-17 11:46:36]|DEBUG|[WEBSRV] Handled: (200)uspider.yuanshen.com/log
[2022-08-17 11:46:40]|DEBUG|[GSCENE] [JOIN|000001] UID: 1 ID: 3 Pos: [-658,219,266] Type: ENTER_SELF Reason: LOGIN
[2022-08-17 11:46:40]|DEBUG|[GSCENE] Load block: 3107
[2022-08-17 11:46:40]|DEBUG|[ENTITY] Add: 16779020
[2022-08-17 11:46:40]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 16779020
[2022-08-17 11:46:41]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67151357
[2022-08-17 11:46:41]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67151358
[2022-08-17 11:46:41]|DEBUG|[ENTITY] [BORN|000001] A EntityID: 67151359
[2022-08-17 11:46:41]|DEBUG|[ENTITY] [BORN|000001] A x19
[2022-08-17 11:46:42]|DEBUG|[ENTITY] [BORN|000001] A x64
[2022-08-17 11:46:42]|DEBUG|[ENTITY] [BORN|000001] A x77
[2022-08-17 11:46:50]|DEBUG|[WEBSRV] Handled: (200)hk4e-sdk.mihoyo.com/hk4e_cn/combo/granter/api/compareProtocolVersion
[2022-08-17 11:46:50]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/api/compareProtocolVersion
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/mdk/shield/api/loadConfig
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/combo/box/api/config/sdk/combo
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/api/getConfig
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/mdk/shield/api/verify
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:46:51]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/login/v2/login
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (200)hk4e-sdk.mihoyo.com/hk4e_cn/combo/granter/api/compareProtocolVersion
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/api/compareProtocolVersion
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/mdk/shield/api/loadConfig
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/api/getConfig
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/combo/box/api/config/sdk/combo
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/mdk/shield/api/verify
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (404)webstatic.mihoyo.com/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json
[2022-08-17 11:46:52]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/login/v2/login
[2022-08-17 11:46:56]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=889&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 11:46:57]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 11:47:06]|DEBUG|[HNDSHK] Connect
[2022-08-17 11:47:06]|INFO |[KCPSRV] Client connect: 127.0.0.1_54564_62fc64ba
[2022-08-17 11:47:06]|DEBUG|[KCPSRV] Initial key match: true
[2022-08-17 11:47:06]|DEBUG|[KCPSRV] [RECV|------] 109 000003 GetPlayerTokenReq
[2022-08-17 11:47:06]|DEBUG|[KCPSRV] [SEND|------] 131 000003 GetPlayerTokenRsp
[2022-08-17 11:47:06]|DEBUG|[CLIENT] Seed: 3891199210297215895n
[2022-08-17 11:47:06]|DEBUG|[CLIENT] Set UID: 175064
[2022-08-17 11:47:14]|WARN |[KCPSRV] Invalid packet received, xor decrypt failed?
[2022-08-17 11:47:24]|WARN |[KCPSRV] Invalid packet received, xor decrypt failed?
NotArandomGUY commented 2 years ago

can you send me the content of GetPlayerTokenRsp.proto?

0eromacyS commented 2 years ago

GetPlayerTokenRsp.proto

syntax = "proto3";

message GetPlayerTokenRsp {
    enum CmdId {
        option allow_alias = true;
        NONE = 0;
        ENET_CHANNEL_ID = 0;
        ENET_IS_RELIABLE = 1;
        CMD_ID = 131;
    }

    int32 retcode = 7;
    string msg = 10;
    uint32 uid = 2;
    string token = 1;
    uint32 black_uid_end_time = 15;
    uint32 account_type = 12;
    string account_uid = 4;
    bool is_proficient_player = 5;
    string secret_key = 13;
    uint32 gm_uid = 14;
    uint64 secret_key_seed = 11;
    bytes security_cmd_buffer = 6;
    uint32 platform_type = 3;
    bytes extra_bin_data = 8;
    bool is_guest = 9;
    uint32 channel_id = 1614;
    uint32 sub_channel_id = 1911;
    uint32 tag = 1855;
    string country_code = 739;
    bool is_login_white_list = 977;
    string psn_id = 245;
    string client_version_random_key = 1387;
    uint32 reg_platform = 633;
    string client_ip_str = 1238;
}
NotArandomGUY commented 2 years ago

add these lines below string client_ip_str = 1238;

    string birthday = 1109;
    uint32 unk1 = 1728;
    bool unk2 = 1679;
    repeated uint32 unk3 = 2012;
    string encrypted_seed = 1596;
    string seed_signature = 1501;
    uint32 unk6 = 1447;
0eromacyS commented 2 years ago

done. but i got 4309-0 again

[2022-08-17 12:00:41]|DEBUG|[WEBSRV] Unhandled: public-data-api.mihoyo.com/device-fp/api/getExtList
[2022-08-17 12:00:41]|DEBUG|[WEBSRV] Handled: (200)api-beta-sdk.mihoyo.com/hk4e_cn/combo/granter/login/v2/login
[2022-08-17 12:01:26]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=253&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 12:01:26]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 12:01:33]|DEBUG|[HNDSHK] Connect
[2022-08-17 12:01:33]|INFO |[KCPSRV] Client connect: 127.0.0.1_54512_62fc681d
[2022-08-17 12:01:33]|DEBUG|[KCPSRV] Initial key match: true
[2022-08-17 12:01:33]|DEBUG|[KCPSRV] [RECV|------] 109 000003 GetPlayerTokenReq
[2022-08-17 12:01:33]|DEBUG|[KCPSRV] [SEND|------] 131 000003 GetPlayerTokenRsp
[2022-08-17 12:01:33]|DEBUG|[CLIENT] Seed: 14137349798877456739n
[2022-08-17 12:01:33]|DEBUG|[CLIENT] Set UID: 175064
[2022-08-17 12:01:42]|WARN |[KCPSRV] Invalid packet received, xor decrypt failed?
NotArandomGUY commented 2 years ago

did you restart the server?

0eromacyS commented 2 years ago

yes

NotArandomGUY commented 2 years ago

hmm... let me have a look at GetPlayerTokenReq.proto too

0eromacyS commented 2 years ago

GetPlayerTokenReq.proto

syntax = "proto3";

message GetPlayerTokenReq {
    enum CmdId {
        option allow_alias = true;
        NONE = 0;
        ENET_CHANNEL_ID = 0;
        ENET_IS_RELIABLE = 1;
        IS_ALLOW_CLIENT = 1;
        CMD_ID = 109;
    }

    uint32 account_type = 3;
    string account_uid = 12;
    string account_token = 14;
    string account_ext = 2;
    uint32 uid = 8;
    bool is_guest = 4;
    uint32 platform_type = 7;
    uint32 cloud_client_ip = 13;
    string online_id = 9;
    string psn_region = 15;
    uint32 channel_id = 10;
    uint32 sub_channel_id = 1;
    string country_code = 11;
    string psn_id = 5;
    string client_ip_str = 6;
}
NotArandomGUY commented 2 years ago

add these lines below string client_ip_str = 6;

    string birthday = 966;
    uint32 unk1 = 1883;
    string client_seed = 924;
    uint32 key_id = 550;
0eromacyS commented 2 years ago

4309-0 i have restart the server

console

[2022-08-17 12:11:32]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=497&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 12:11:32]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 12:12:38]|DEBUG|[HNDSHK] Connect
[2022-08-17 12:12:38]|INFO |[KCPSRV] Client connect: 127.0.0.1_65434_62fc6ab6
[2022-08-17 12:12:38]|DEBUG|[KCPSRV] Initial key match: true
[2022-08-17 12:12:38]|DEBUG|[KCPSRV] [RECV|------] 109 000009 GetPlayerTokenReq
[2022-08-17 12:12:38]|DEBUG|[KCPSRV] [SEND|------] 131 000009 GetPlayerTokenRsp
[2022-08-17 12:12:38]|DEBUG|[CLIENT] Seed: 4659229771472634334n
[2022-08-17 12:12:38]|DEBUG|[CLIENT] Set UID: 175064
[2022-08-17 12:12:46]|WARN |[KCPSRV] Invalid packet received, xor decrypt failed?
NotArandomGUY commented 2 years ago

I don't know what else I can do, but try reverting the changes to config.ts and put this in config.json

{
  "default": {
    "version": "2.8.54",
    "hostIp": "127.0.0.1",
    "sslDir": "./ssl",
    "dispatchRegion": "CNCB",
    "dispatchKeyId": 2
  }
}
0eromacyS commented 2 years ago

4309-0

[2022-08-17 12:25:21]|DEBUG|[DIPREQ] Search: version=CNCBWin2.8.54&lang=2&platform=3&binary=1&time=485&channel_id=1&sub_channel_id=1&account_type=1&dispatchSeed=562325e030507a0f&key_id=2
[2022-08-17 12:25:21]|DEBUG|[WEBSRV] Handled: (200)127.0.0.1/query_cur_region
[2022-08-17 12:25:30]|DEBUG|[HNDSHK] Connect
[2022-08-17 12:25:30]|INFO |[KCPSRV] Client connect: 127.0.0.1_49924_62fc6dba
[2022-08-17 12:25:30]|DEBUG|[KCPSRV] Initial key match: true
[2022-08-17 12:25:30]|DEBUG|[KCPSRV] [RECV|------] 109 000007 GetPlayerTokenReq
[2022-08-17 12:25:30]|DEBUG|[KCPSRV] [SEND|------] 131 000007 GetPlayerTokenRsp
[2022-08-17 12:25:30]|DEBUG|[CLIENT] Seed: 775708602085426525n
[2022-08-17 12:25:30]|DEBUG|[CLIENT] Set UID: 175064
[2022-08-17 12:25:39]|WARN |[KCPSRV] Invalid packet received, xor decrypt failed?
[2022-08-17 12:25:40]|DEBUG|[LOGREC] [UID:10004] High packet loss rate! rate=66
[2022-08-17 12:25:40]|DEBUG|[WEBSRV] Handled: (200)uspider.yuanshen.com/log
NotArandomGUY commented 2 years ago

do you have discord? I can send you my protos and key for you to try

0eromacyS commented 2 years ago

my discord WindSeedClientNotify#7094