Created
April 25, 2023 13:49
-
-
Save superducktoes/d4ec26164c6321e60262673263053aa2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python3 ip_hash_query.py 36.106.167.25 | |
# takes an ip address as an argument and displays a list of ja3 fingerprints | |
# paste fingerprint into prompt to get a list of IP's associated with it | |
import requests | |
import sys | |
ip = sys.argv[1] | |
url = "https://api.greynoise.io/v2/noise/context/" + ip | |
API_KEY = "" | |
headers = { | |
"accept": "application/json", | |
"key": API_KEY | |
} | |
response = requests.get(url, headers=headers).json() | |
for i in response["raw_data"]["ja3"]: | |
print(i["fingerprint"]) | |
ja3_fingerprint = input("fingerprint: ") | |
url = "https://api.greynoise.io/v2/experimental/gnql?query={}&size=10000".format(ja3_fingerprint) | |
response = requests.get(url, headers=headers).json() | |
for i in response["data"]: | |
print(i["ip"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment