id: discord-invite-detect

info:
  name: Discord Invites for Users, Bots & Servers - Detect
  author: rxerium
  severity: info
  description: |
    Detect Discord Invites for users, bots and servers
  reference:
    - https://discord.com
  tags: discord,info,osint,misc

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

    extractors:
      - type: regex
        name: discord-server-invite
        regex:
          - "https?:\\/\\/(?:www\\.)?discord\\.gg\\/([a-zA-Z0-9-]+)"

      - type: regex
        name: discord-user-invite
        regex:
          - "https?:\\/\\/discord\\.com\\/users\\/([0-9]+)"

      - type: regex
        name: discord-bot-invite
        regex:
          - "https?:\\/\\/discord\\.com\\/oauth2\\/authorize\\?client_id=([0-9]+)[^\\s\"']*"
# digest: 4a0a00473045022100e8e014bde895e7318827fd4e254cfeb0d06399d66364b59c8f3c014089be4ba902205f0ac3ea0a494041e4435cc9235ebba36d068f54327d788555fd2e248c694b44:922c64590222798bb761d5b6d8e72950