Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #231 Datadog API #235

Merged
3 commits merged into from Dec 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -15,7 +15,7 @@ orjson = {version = "^3.6.1", optional = true}

[tool.poetry.dev-dependencies]
pytest = "^6.2.5"
black = {version = "^21.9b0", python = "^3.6.2"}
black = {version = "^21.9b0", python = "^3.6.2"}
isort = {version = "^5.9.3", python = "^3.6.1"}
flake8 = "<4.0"
requests = "^2.26.0"
Expand Down
101 changes: 72 additions & 29 deletions pywhat/Data/regex.json
Expand Up @@ -819,35 +819,6 @@
"Invalid": []
}
},
{
"Name": "Datadog API Key",
"Regex": "^([a-f0-9]{32})$",
"plural_name": false,
"Description": null,
"Exploit": "Use the command below to verify that the API key is valid:\n $ curl -X GET https://api.datadoghq.com/api/v1/validate -H \"Content-Type: application/json\" -H \"DD-API-KEY: API_KEY_HERE\"\n",
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Bug Bounty",
"Credentials",
"Datadog"
]
},
{
"Name": "Datadog Client Token",
"Regex": "^(pub[a-f0-9]{32})$",
"plural_name": false,
"Description": null,
"Exploit": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Bug Bounty",
"Datadog"
]
},
{
"Name": "New Relic Admin API Key",
"Regex": "(?i)^(NRAA-[a-f0-9]{27})$",
Expand Down Expand Up @@ -2374,6 +2345,26 @@
"Invalid": []
}
},
{
"Name": "Datadog Client Token",
"Regex": "^(pub[a-f0-9]{32})$",
"plural_name": false,
"Description": null,
"Exploit": null,
"Rarity": 0.3,
"URL": null,
"Tags": [
"API Keys",
"Bug Bounty",
"Datadog"
],
"Examples": {
"Valid": [
"pub8261e4a07b29d0a148e00a93106ae711"
],
"Invalid": []
}
},
{
"Name": "JSON Web Token (JWT)",
"Regex": "(?i)^((?=.*[a-z])(?=.*[0-9])(?:[a-z0-9_=]+\\.){2}(?:[a-z0-9_\\-\\+\\/=]*))$",
Expand Down Expand Up @@ -2621,6 +2612,58 @@
"Invalid": []
}
},
{
"Name": "Datadog API Key",
"Regex": "^([a-f0-9]{32})$",
"plural_name": false,
"Description": null,
"Exploit": "Use the command below to verify that the API key is valid:\n $ curl -X GET https://api.datadoghq.com/api/v1/validate -H \"Content-Type: application/json\" -H \"DD-API-KEY: API_KEY_HERE\"\n",
"Rarity": 0,
"URL": null,
"Tags": [
"API Keys",
"Bug Bounty",
"Credentials",
"Datadog"
],
"Examples": {
"Valid": [
"68ec0cbd7d0da6770545614dfa573eec",
"683bba7d7f759e0907d35f39a7c36eb5",
"c8561e9b786a07855cbc2983d47eaf93"
],
"Invalid": [
"ba36266055c7495ce26bb12e86c7536b4a5e00cd",
"pub8261e4a07b29d0a148e00a93106ae711"
]
}
},
{
"Name": "Datadog Application Key",
"Regex": "^([a-f0-9]{40})$",
"plural_name": false,
"Description": null,
"Exploit": null,
"Rarity": 0,
"URL": null,
"Tags": [
"API Keys",
"Bug Bounty",
"Credentials",
"Datadog"
],
"Examples": {
"Valid": [
"ba36266055c7495ce26bb12e86c7536b4a5e00cd"
],
"Invalid": [
"68ec0cbd7d0da6770545614dfa573eec",
"683bba7d7f759e0907d35f39a7c36eb5",
"c8561e9b786a07855cbc2983d47eaf93",
"pub8261e4a07b29d0a148e00a93106ae711"
]
}
},
{
"Name": "YouTube Video ID",
"Regex": "^((?=.*[A-Z])(?=.*[a-z])[0-9A-Za-z_-]{10}[048AEIMQUYcgkosw]{1})$",
Expand Down