コード例 #1
0
ファイル: api.py プロジェクト: Xen0ph0n/IOCextractor
def create_email_address_observable(email_address):
    '''Creates a CybOX Observable representing an IPv4 address'''
   
    email_address_object = address_helper.create_from_dict({'address_value':email_address, 'category':'e-mail'})
    observable = create_observable(email_address_object)
    
    return observable
コード例 #2
0
ファイル: api.py プロジェクト: Xen0ph0n/IOCextractor
def create_ipv4_observable(ipv4_address):
    '''Creates a CybOX Observable representing an IPv4 address'''
   
    ipv4_object = address_helper.create_from_dict({'address_value':ipv4_address, 'category':'ipv4-addr'})
    observable = create_observable(ipv4_object)
    
    return observable
コード例 #3
0
ファイル: api.py プロジェクト: raystyle/IOCextractor
def create_email_address_observable(email_address):
    '''Creates a CybOX Observable representing an IPv4 address'''

    email_address_object = address_helper.create_from_dict({
        'address_value': email_address,
        'category': 'e-mail'
    })
    observable = create_observable(email_address_object)

    return observable
コード例 #4
0
ファイル: api.py プロジェクト: raystyle/IOCextractor
def create_ipv4_observable(ipv4_address):
    '''Creates a CybOX Observable representing an IPv4 address'''

    ipv4_object = address_helper.create_from_dict({
        'address_value': ipv4_address,
        'category': 'ipv4-addr'
    })
    observable = create_observable(ipv4_object)

    return observable