Skip to content

Instantly share code, notes, and snippets.

@TheSkallywag
Forked from ACK-J/metrix_block.py
Created October 21, 2022 00:04
Show Gist options
  • Save TheSkallywag/5e3b92b89912ba504e12aee2f21fa666 to your computer and use it in GitHub Desktop.
Save TheSkallywag/5e3b92b89912ba504e12aee2f21fa666 to your computer and use it in GitHub Desktop.
Find all the domains ThreatMetrix is using to exfil user tracking data
from shodan import Shodan
api = Shodan('API-KEY')
results = api.search('org:"Threat Metrix" port:443 Bad Request')
for banner in results['matches']:
# Only care about services that use SSL
if 'ssl' in banner:
print(banner['ssl']['cert']['subject']['CN'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment