Skip to content

Instantly share code, notes, and snippets.

@superducktoes
Created April 6, 2023 15:52
Show Gist options
  • Save superducktoes/d1b373d164eb9e02e5fff76ed9fae3ce to your computer and use it in GitHub Desktop.
Save superducktoes/d1b373d164eb9e02e5fff76ed9fae3ce to your computer and use it in GitHub Desktop.
import requests
import json
url = "https://api.greynoise.io/v2/meta/metadata"
headers = {
"accept": "application/json",
"key": ""
}
response = requests.get(url, headers=headers).json()
malicious_tags = [x for x in response["metadata"] if "malicious" in x["intention"]]
for i in malicious_tags:
print("Name: {}, Category: {}, CVEs: {cve}".format(i["name"], i["category"], cve=i["cves"] if i["cves"] else "None"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment