Skip to content

Instantly share code, notes, and snippets.

@Diviei
Created October 22, 2016 08:30
Show Gist options
  • Save Diviei/c3c2e475e19cde3461071206c7e4a58e to your computer and use it in GitHub Desktop.
Save Diviei/c3c2e475e19cde3461071206c7e4a58e to your computer and use it in GitHub Desktop.
Mergin amtrckr.info API with Koodous API to find samples
import requests
r = requests.get("https://amtrckr.info/json/live")
matches = []
for row in r.json():
koodous_r = requests.get("https://api.koodous.com/apks?search=network.hosts:'%s'" % row.get("ip"))
for apk in koodous_r.json().get("results"):
matches.append(apk.get("sha256"))
matches = list(set(matches))
print str(len(matches)) + " samples recovered from " + str(len(r.json())) + " urls"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment