Skip to content

Commit

Permalink
Merge pull request #196 from gruebel/add-datadog-client-token
Browse files Browse the repository at this point in the history
Add datadog client token
  • Loading branch information
bee-san authored Oct 9, 2021
2 parents ac3b4d5 + 86268bc commit e36b83a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pywhat/Data/regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,35 @@
"Zapier"
]
},
{
"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
10 changes: 10 additions & 0 deletions tests/test_regex_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,16 @@ def test_zapier_webhook():
_assert_match_first_item("Zapier Webhook Token", res)


def test_datadog_api_key():
res = r.check(["acb6d73d95a10d30aef9894603e90963"])
_assert_match_first_item("Datadog API Key", res)


def test_datadog_client_token():
res = r.check(["pub85abf45b82e2f86f25003d559bca07d9"])
_assert_match_first_item("Datadog Client Token", res)


def test_new_relic_rest_api_key():
res = r.check(["NRRA-2a2d50d7d9449f3bb7ef65ac1184c488bd4fe7a8bd"])
_assert_match_first_item("New Relic REST API Key", res)
Expand Down

0 comments on commit e36b83a

Please sign in to comment.