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

New Mailchimp keys #223

Merged
merged 2 commits into from Nov 1, 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: 2 additions & 0 deletions fixtures/file
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
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
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