Skip to content

Commit d5ea9ce

Browse files
author
piatrashkakanstantinass
authored
Merge pull request #235 from nodtem66/patch-231
Fixed #231 Datadog API
2 parents cd9f020 + 78a4830 commit d5ea9ce

File tree

2 files changed

+73
-30
lines changed

2 files changed

+73
-30
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ orjson = {version = "^3.6.1", optional = true}
1515

1616
[tool.poetry.dev-dependencies]
1717
pytest = "^6.2.5"
18-
black = {version = "^21.9b0", python = "^3.6.2"}
18+
black = {version = "^21.9b0", python = "^3.6.2"}
1919
isort = {version = "^5.9.3", python = "^3.6.1"}
2020
flake8 = "<4.0"
2121
requests = "^2.26.0"

pywhat/Data/regex.json

Lines changed: 72 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -819,35 +819,6 @@
819819
"Invalid": []
820820
}
821821
},
822-
{
823-
"Name": "Datadog API Key",
824-
"Regex": "^([a-f0-9]{32})$",
825-
"plural_name": false,
826-
"Description": null,
827-
"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",
828-
"Rarity": 1,
829-
"URL": null,
830-
"Tags": [
831-
"API Keys",
832-
"Bug Bounty",
833-
"Credentials",
834-
"Datadog"
835-
]
836-
},
837-
{
838-
"Name": "Datadog Client Token",
839-
"Regex": "^(pub[a-f0-9]{32})$",
840-
"plural_name": false,
841-
"Description": null,
842-
"Exploit": null,
843-
"Rarity": 1,
844-
"URL": null,
845-
"Tags": [
846-
"API Keys",
847-
"Bug Bounty",
848-
"Datadog"
849-
]
850-
},
851822
{
852823
"Name": "New Relic Admin API Key",
853824
"Regex": "(?i)^(NRAA-[a-f0-9]{27})$",
@@ -2374,6 +2345,26 @@
23742345
"Invalid": []
23752346
}
23762347
},
2348+
{
2349+
"Name": "Datadog Client Token",
2350+
"Regex": "^(pub[a-f0-9]{32})$",
2351+
"plural_name": false,
2352+
"Description": null,
2353+
"Exploit": null,
2354+
"Rarity": 0.3,
2355+
"URL": null,
2356+
"Tags": [
2357+
"API Keys",
2358+
"Bug Bounty",
2359+
"Datadog"
2360+
],
2361+
"Examples": {
2362+
"Valid": [
2363+
"pub8261e4a07b29d0a148e00a93106ae711"
2364+
],
2365+
"Invalid": []
2366+
}
2367+
},
23772368
{
23782369
"Name": "JSON Web Token (JWT)",
23792370
"Regex": "(?i)^((?=.*[a-z])(?=.*[0-9])(?:[a-z0-9_=]+\\.){2}(?:[a-z0-9_\\-\\+\\/=]*))$",
@@ -2621,6 +2612,58 @@
26212612
"Invalid": []
26222613
}
26232614
},
2615+
{
2616+
"Name": "Datadog API Key",
2617+
"Regex": "^([a-f0-9]{32})$",
2618+
"plural_name": false,
2619+
"Description": null,
2620+
"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",
2621+
"Rarity": 0,
2622+
"URL": null,
2623+
"Tags": [
2624+
"API Keys",
2625+
"Bug Bounty",
2626+
"Credentials",
2627+
"Datadog"
2628+
],
2629+
"Examples": {
2630+
"Valid": [
2631+
"68ec0cbd7d0da6770545614dfa573eec",
2632+
"683bba7d7f759e0907d35f39a7c36eb5",
2633+
"c8561e9b786a07855cbc2983d47eaf93"
2634+
],
2635+
"Invalid": [
2636+
"ba36266055c7495ce26bb12e86c7536b4a5e00cd",
2637+
"pub8261e4a07b29d0a148e00a93106ae711"
2638+
]
2639+
}
2640+
},
2641+
{
2642+
"Name": "Datadog Application Key",
2643+
"Regex": "^([a-f0-9]{40})$",
2644+
"plural_name": false,
2645+
"Description": null,
2646+
"Exploit": null,
2647+
"Rarity": 0,
2648+
"URL": null,
2649+
"Tags": [
2650+
"API Keys",
2651+
"Bug Bounty",
2652+
"Credentials",
2653+
"Datadog"
2654+
],
2655+
"Examples": {
2656+
"Valid": [
2657+
"ba36266055c7495ce26bb12e86c7536b4a5e00cd"
2658+
],
2659+
"Invalid": [
2660+
"68ec0cbd7d0da6770545614dfa573eec",
2661+
"683bba7d7f759e0907d35f39a7c36eb5",
2662+
"c8561e9b786a07855cbc2983d47eaf93",
2663+
"pub8261e4a07b29d0a148e00a93106ae711"
2664+
]
2665+
}
2666+
},
26242667
{
26252668
"Name": "YouTube Video ID",
26262669
"Regex": "^((?=.*[A-Z])(?=.*[a-z])[0-9A-Za-z_-]{10}[048AEIMQUYcgkosw]{1})$",

0 commit comments

Comments
 (0)