id: telegram-bot-token

info:
  name: Telegram Bot Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/telegram.yml
    - https://core.telegram.org/bots/api
    - https://core.telegram.org/bots/features#botfather
  metadata:
    verified: true
    max-request: 1
  tags: telegram,token,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(\d+:AA[a-zA-Z0-9_-]{32,33})'

# digest: 4b0a00483046022100d89a255617b75395cc152d18ba1e2c45c433a566377acd4c3145ade568326ef7022100ffe7ffdcda8ee243d7346bd0857084c8025e550514c9bab5d692e93e22bd37f1:922c64590222798bb761d5b6d8e72950
