Created
October 22, 2016 08:30
-
-
Save Diviei/c3c2e475e19cde3461071206c7e4a58e to your computer and use it in GitHub Desktop.
Mergin amtrckr.info API with Koodous API to find samples
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
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