Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import sys
- import urllib2
- import json as simplejson
- if len(sys.argv)<=1:
- print 'Usage: nt-search.py <md5>'
- sys.exit()
- input_hash = sys.argv[1]
- response = urllib2.urlopen('https://networktotal.com/search.php?q='+input_hash+'&json=1')
- result = response.read()
- response_dict = simplejson.loads(result)
- #print response_dict
- md5 = response_dict.get("md5")
- print '\nMD5: '+md5+'\n'
- events = response_dict.get("events")
- for lala in events:
- print lala
Add Comment
Please, Sign In to add comment