id: piratebay

info:
  name: Piratebay Username Information - Detect
  author: philippedelteil
  severity: info
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
  tags: osint,osint-p2p,piratebay,headless

self-contained: true

headless:
  - steps:
      - args:
          url: "https://thepiratebay.org/search.php?q=user:{{user}}"
        action: navigate

      - action: waitload

    matchers:
      - type: dsl
        dsl:
          - "!contains(data, 'No results returned')"
          - "contains(data, 'User: {{user}}</label>')"
        condition: and
# digest: 4b0a00483046022100f8c626e85d86cc9c0cb05f8d40715143aca5f192b05a7f22bb76da0146b55f92022100aa3b462ecb73b693b3d1264b29dc687b22f7f0181c63a9a4f90aca613c03a045:922c64590222798bb761d5b6d8e72950