(self, obj)
Perform a tracker lookup on the query value.
Perform a tracker lookup on the query value.
Perform a tracker lookup on the query value .
def do_tracker_query(self, obj):
        """Perform a tracker lookup on the query value."""
        client = self._generate_request_instance('attributes')
        query = self._get_query_type(obj)
        results = client.get_host_attribute_trackers(query=query)
        self._check_response(results)
        for record in results.get('results', []):
            stats = {
                'First Seen': record.get('firstSeen'),
                'Last Seen': record.get('lastSeen'),
                'Type': record.get('attributeType'),
                'Hostname': record.get('hostname')
            }
            self._add_result('Trackers', record.get('attributeValue'), stats)
def do_tracker_query ( self , obj ) : client = self . _generate_request_instance ( 'attributes' ) query = self . _get_query_type ( obj ) results = client . get_host_attribute_trackers ( query = query ) self . _check_response ( results ) for record in results . get ( 'results' , [ ] ) : stats = { 'First Seen' : record . get ( 'firstSeen' ) , 'Last Seen' : record . get ( 'lastSeen' ) , 'Type' : record . get ( 'attributeType' ) , 'Hostname' : record . get ( 'hostname' ) } self . _add_result ( 'Trackers' , record . get ( 'attributeValue' ) , stats )