def quick(context, api_client, api_key, input_file, output_file, output_format, ip_address): """Quickly check whether or not one or many IPs are "noise".""" ip_addresses = get_ip_addresses(context, input_file, ip_address) results = [] if ip_addresses: results.extend(api_client.quick(ip_addresses=ip_addresses)) return results
def interesting(context, api_client, api_key, input_file, ip_address): """Report one or more IP addresses as "interesting".""" ip_addresses = get_ip_addresses(context, input_file, ip_address) results = [ api_client.interesting(ip_address=ip_address) for ip_address in ip_addresses ] return results
def ip( context, api_client, api_key, input_file, output_file, output_format, verbose, ip_address, ): """Query GreyNoise for all information on a given IP.""" ip_addresses = get_ip_addresses(context, input_file, ip_address) results = [ api_client.ip(ip_address=ip_address) for ip_address in ip_addresses ] return results