Skip to content

Commit

Permalink
Merge pull request #223 from spicyyboi/mailchimp
Browse files Browse the repository at this point in the history
New Mailchimp keys
  • Loading branch information
bee-san authored Nov 1, 2021
2 parents 1bdab9e + 1e340f2 commit 6162ace
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions fixtures/file
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,5 @@ https://hooks.slack.com/services/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

doi:10.1392/BC1.0
10.1000/123

a80122b2565c3e26a61cbf58d1d1aad7-us5
12 changes: 10 additions & 2 deletions pywhat/Data/regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -1330,15 +1330,23 @@
"Regex": "(?i)^([0-9a-f]{32}-us[0-9]{1,2})$",
"plural_name": false,
"Description": null,
"Exploit": "Use the command below to verify that the API key is valid:\n $ curl --request GET --url 'https://<dc>.api.mailchimp.com/3.0/' --user 'anystring:API_KEY_HERE' --include\n",
"Exploit": "Use the command below to verify that the API key is valid (substitute <dc> for your datacenter, i. e. us5):\n $ curl --request GET --url 'https://<dc>.api.mailchimp.com/3.0/' --user 'anystring:API_KEY_HERE' --include\n",
"Rarity": 0.8,
"URL": null,
"Tags": [
"Bug Bounty",
"API Keys",
"Credentials",
"Mailchimp"
]
],
"Examples": {
"Valid": [
"d619ce3b691e29ec064fede7ff9afbff-us5",
"4bf6010e49fb0791f3940681791934e7-us5",
"a80122b2565c3e26a61cbf58d1d1aad7-us5"
],
"Invalid": []
}
},
{
"Name": "Notion Integration Token",
Expand Down
7 changes: 7 additions & 0 deletions tests/test_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,13 @@ def test_file_fixture_doi():
assert re.findall("DOI", str(result.output))


def test_file_fixture_mailchimp():
runner = CliRunner()
result = runner.invoke(main, ["-db", "fixtures/file"])
assert result.exit_code == 0
assert re.findall("Mailchimp", str(result.output))


def test_file_cors():
runner = CliRunner()
result = runner.invoke(main, ["-db", "Access-Control-Allow: *"])
Expand Down

0 comments on commit 6162ace

Please sign in to comment.