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: 490a0046304402201f0d28dc875a5526f01fcabdb2e73a860ecff61d46cd931f8ec3a2652a45f7dc022033d354822af70d6a3fd65f68e1eb820b413743b263a7d0dfbac4a62a28e23c42:922c64590222798bb761d5b6d8e72950
