id: api-malshare

info:
  name: MalShare API Test
  author: daffainfo
  severity: info
  description: Malware Archive / file sourcing
  reference:
    - https://malshare.com/doc.php
    - https://github.com/daffainfo/all-about-apikey/tree/main/malshare
  metadata:
    max-request: 1
  tags: token-spray,malshare

self-contained: true

http:
  - method: GET
    path:
      - "https://api.malshare.com/api.php?api_key={{token}}&action=getlist"

    matchers:
      - type: word
        part: body
        words:
          - '"md5":'
          - '"sha1":'
        condition: and
# digest: 4a0a00473045022100978a927076052af1b04f0c556eb59da7098f5810048069b4fbbef282d402c07502204ec98113184b578f458ed8299e4ef9420d1d974510d3d455ecb4555fd077d99d:922c64590222798bb761d5b6d8e72950