def create_entities(cls, request, response): env_config = get_credentials() api_id, api_secret = env_config.get('censys_api_id'), env_config.get('censys_api_secret') ev = request.Value ep = request.Properties response = Censys(api_id, api_secret, max_pages=env_config.get('max_pages', 1)).search_https_body_to_ip( body_text=ev, object_properties=ep )
def create_entities(cls, request, response): env_config = get_credentials() api_id, api_secret = env_config.get('censys_api_id'), env_config.get('censys_api_secret') ev = request.Value ep = request.Properties response = Censys(api_id, api_secret, max_pages=env_config.get('max_pages', 1)).search_hash_to_ipv4_address( hash_value=ev, object_properties=ep, hash_type='sha1' )
def create_entities(cls, request, response): env_config = get_credentials() api_id, api_secret = env_config.get('censys_api_id'), env_config.get( 'censys_api_secret') ev = request.Value ep = request.Properties response = Censys(api_id, api_secret, max_pages=env_config.get( 'max_pages', 1)).search_issuer_cn_to_certificate_hash( issuer_cn=ev, object_properties=ep)
hash_type='sha1' ) if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--censys_api_id", required=False, metavar='XXXXXXXXXX', help="(optional) You must provide your Censys API ID here or as an environmental variable CENSYS_API_ID") parser.add_argument("--censys_api_secret", required=False, metavar='XXXXXXXXXX', help="(optional) You must provide your Censys API SECRET here or as an environmental variable CENSYS_API_SECRET") parser.add_argument('entity_value') parser.add_argument('entity_properties') args = parser.parse_args() censys_api_id = os.getenv('CENSYS_API_ID', args.censys_api_id) censys_api_secret = os.getenv('CENSYS_API_SECRET', args.censys_api_secret) ev = args.entity_value ep = args.entity_properties Censys(censys_api_id, censys_api_secret).search_hash_to_ipv4_address( hash_value=ev, object_properties=ep, hash_type='sha1' )
object_properties=ep ) if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--censys_api_id", required=False, metavar='XXXXXXXXXX', help="(optional) You must provide your Censys API ID here or as an environmental variable CENSYS_API_ID") parser.add_argument("--censys_api_secret", required=False, metavar='XXXXXXXXXX', help="(optional) You must provide your Censys API SECRET here or as an environmental variable CENSYS_API_SECRET") parser.add_argument('entity_value') parser.add_argument('entity_properties') args = parser.parse_args() censys_api_id = os.getenv('CENSYS_API_ID', args.censys_api_id) censys_api_secret = os.getenv('CENSYS_API_SECRET', args.censys_api_secret) ev = args.entity_value ep = args.entity_properties Censys(censys_api_id, censys_api_secret).search_subject_dn_to_certificate_hash( subject_dn=ev, object_properties=ep )
parser = argparse.ArgumentParser() parser.add_argument( "--censys_api_id", required=False, metavar='XXXXXXXXXX', help= "(optional) You must provide your Censys API ID here or as an environmental variable CENSYS_API_ID" ) parser.add_argument( "--censys_api_secret", required=False, metavar='XXXXXXXXXX', help= "(optional) You must provide your Censys API SECRET here or as an environmental variable CENSYS_API_SECRET" ) parser.add_argument('entity_value') parser.add_argument('entity_properties') args = parser.parse_args() censys_api_id = os.getenv('CENSYS_API_ID', args.censys_api_id) censys_api_secret = os.getenv('CENSYS_API_SECRET', args.censys_api_secret) ev = args.entity_value ep = args.entity_properties Censys(censys_api_id, censys_api_secret).search_ipv4_to_domains(ip_address=ev, object_properties=ep)
object_properties=ep ) if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--censys_api_id", required=False, metavar='XXXXXXXXXX', help="(optional) You must provide your Censys API ID here or as an environmental variable CENSYS_API_ID") parser.add_argument("--censys_api_secret", required=False, metavar='XXXXXXXXXX', help="(optional) You must provide your Censys API SECRET here or as an environmental variable CENSYS_API_SECRET") parser.add_argument('entity_value') parser.add_argument('entity_properties') args = parser.parse_args() censys_api_id = os.getenv('CENSYS_API_ID', args.censys_api_id) censys_api_secret = os.getenv('CENSYS_API_SECRET', args.censys_api_secret) ev = args.entity_value ep = args.entity_properties Censys(censys_api_id, censys_api_secret).search_https_body_to_ip( body_text=ev, object_properties=ep )
parser = argparse.ArgumentParser() parser.add_argument( "--censys_api_id", required=False, metavar='XXXXXXXXXX', help= "(optional) You must provide your Censys API ID here or as an environmental variable CENSYS_API_ID" ) parser.add_argument( "--censys_api_secret", required=False, metavar='XXXXXXXXXX', help= "(optional) You must provide your Censys API SECRET here or as an environmental variable CENSYS_API_SECRET" ) parser.add_argument('entity_value') parser.add_argument('entity_properties') args = parser.parse_args() censys_api_id = os.getenv('CENSYS_API_ID', args.censys_api_id) censys_api_secret = os.getenv('CENSYS_API_SECRET', args.censys_api_secret) ev = args.entity_value ep = args.entity_properties Censys(censys_api_id, censys_api_secret).search_issuer_cn_to_certificate_hash( issuer_cn=ev, object_properties=ep)
parser = argparse.ArgumentParser() parser.add_argument( "--censys_api_id", required=False, metavar='XXXXXXXXXX', help= "(optional) You must provide your Censys API ID here or as an environmental variable CENSYS_API_ID" ) parser.add_argument( "--censys_api_secret", required=False, metavar='XXXXXXXXXX', help= "(optional) You must provide your Censys API SECRET here or as an environmental variable CENSYS_API_SECRET" ) parser.add_argument('entity_value') parser.add_argument('entity_properties') args = parser.parse_args() censys_api_id = os.getenv('CENSYS_API_ID', args.censys_api_id) censys_api_secret = os.getenv('CENSYS_API_SECRET', args.censys_api_secret) ev = args.entity_value ep = args.entity_properties Censys(censys_api_id, censys_api_secret).search_domain_to_ipv4(domain_name=ev, object_properties=ep)