Skip to content

Wappalyzer 官方指纹数据格式变化导致出现报错 #15

Description

@Pepste2

json: cannot unmarshal object into Go struct field Fingerprint.apps.js of type []string

新版 Wappalyzer 的 js 字段从 []string(数组)变成了 map[string]string(对象)

  • 但 fingers v1.2.0 的结构体定义还是 []string
  • Wappalyzer 新数据的实际格式
  // fingers v1.2.0 的定义(过时)
  type Fingerprint struct {
      JS []string `json:"js"`   // 期望是数组
  }

  // Wappalyzer 新数据的实际格式
  {
      "apps": {
          "some-app": {
              "js": {            // 实际是对象
                  "window.someVar": "version"
              }
          }
      }

在更新后出现的报错,ai排查出的问题,我因go基础较为薄弱只能反馈一下,如无问题close 此issues即可

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions