def getRss(): api = tacytapp.TacytApp("PpQbU3AWa773ghLdf2YE", "9UWa3aqaJKrqTkYqtbyUUmyP8uT39NmUYH4HuQWJ") result = api.get_RSS_info('56cd790de4b03cbf45a334b8') print(result.data)
def getFilters(): api = tacytapp.TacytApp("PpQbU3AWa773ghLdf2YE", "9UWa3aqaJKrqTkYqtbyUUmyP8uT39NmUYH4HuQWJ") result = api.read_all_filters() list = result.data.get('result').get('filters') print(len(list)) for i in range(len(list)): app = list[i] print(str(app) + "\n")
def getApps(): api = tacytapp.TacytApp("PpQbU3AWa773ghLdf2YE", "9UWa3aqaJKrqTkYqtbyUUmyP8uT39NmUYH4HuQWJ") result_search = api.search_apps("links:\"http://www.emtvalencia.es\"", 1, 100, '', True) list = result_search.data.get('result').get('applications') g = result_search.data.get('result').get('numberOfGroups') #print (len(list)) #print (g) for i in range(len(list)): app = list[i] print(app.get('title'))
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Search apps by certificate fingerprints :param field: fingerprint to find :return: keys from the apps founds. """ from tacyt import TacytApp from maltego.MaltegoTransform import * from APIManagement import Tacyt from maltego.Entities import TacytEntities as te api = TacytApp.TacytApp(Tacyt.APP_ID, Tacyt.SECRET_KEY) m = MaltegoTransform() field = sys.argv[1] try: query = "certificateFingerprint:%s"%field result = api.search_apps(query=query,maxResults=100) data = result.get_data() if 'result' in data and data['result'] is not None and 'applications' in data['result'] and data['result']['applications']: for data in data['result']['applications']: if 'key' in data and data['key'] is not None: application = data['key'] m.addEntity(te.KEY, application.encode('utf-8')) else: m.addUIMessage("The key is not found in the results")