id: api-safebrowsing

info:
  name: Google Safe Browsing API Test
  author: daffainfo
  severity: info
  description: Google Link/Domain Flagging
  reference:
    - https://developers.google.com/books/docs/overview
    - https://github.com/daffainfo/all-about-apikey/tree/main/google-safe-browsing
  metadata:
    max-request: 1
  tags: token-spray,google,safebrowsing

self-contained: true

http:
  - raw:
      - |
        POST https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?key={{token}} HTTP/1.1
        Host: safebrowsing.googleapis.com
        Content-Type: application/json

    matchers:
      - type: word
        part: body
        words:
          - '"clientId"'
          - '"clientVersion"'
        condition: and
# digest: 4a0a00473045022100ef08128d2a961b25d004d8e33597062fcfb9d854eee356b9819b55d55ac97f5e02202f17a9ad2585e662cbfd6d3d3093f7b471d9c90c03d6136df2b70c351e930c37:922c64590222798bb761d5b6d8e72950