Intitial release
This commit is contained in:
parent
299038fbc7
commit
fa8caa5116
21 changed files with 1234 additions and 0 deletions
8
constants/regex.py
Normal file
8
constants/regex.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Regular expressions for detecting various tokens and URLs
|
||||
|
||||
WEBHOOK_REGEX = r"(https?://(?:ptb\.|canary\.)?discord(?:app)?\.com/api/webhooks/\d+/[\w-]+)"
|
||||
WEBHOOK_REGEX_BASE64 = r"(?:['\"]([\w+/=]+)['\"])"
|
||||
DISCORD_TOKEN_MATCHER = r"[MN][A-Za-z\d]{23}\.[\w-]{6}\.[\w-]{27}"
|
||||
DISCORD_TOKEN_MATCHER_BASE64 = r"['\"]([\w+/=]{24,})['\"]"
|
||||
TELEGRAM_REGEX = r"\d{8,10}:[A-Za-z0-9_-]{35}"
|
||||
EMAIL_MATCHER = r"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"
|
Loading…
Add table
Add a link
Reference in a new issue