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,vuln

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: 4a0a00473045022011e6943cee17c673321b4f5b6a5f2ab09b3d67a0fe4efa9ffedca1ec51d12e22022100c1047ef17769c3bb8c77d74ca854bc409e0b98aaaec6e0db26233b5d6114e54c:922c64590222798bb761d5b6d8e72950