コード例 #1
0
class Hash(Entity):
    _category_ = 'Malware'
    hash = StringEntityField('properties.hash',
                             display_name='Hash',
                             is_value=True)
    type = StringEntityField('type', display_name='Hash Type')
    owner = StringEntityField('owner', display_name='Owner')
    before = DateEntityField('before', display_name='Before')
    after = DateEntityField('after', display_name='After')
    included_media_types = StringEntityField(
        'includeMediaType', display_name='Included Media Types')
    excluded_media_types = StringEntityField(
        'excludeMediaType', display_name='Excluded Media Types')
コード例 #2
0
ファイル: test_entities.py プロジェクト: wtfuzz/canari3
 class TestEntity(Entity):
     str = StringEntityField('type.str')
     int = IntegerEntityField('type.int')
     float = FloatEntityField('type.float')
     bool = BooleanEntityField('type.bool')
     enum = EnumEntityField('type.enum', choices=[2, 1, 0])
     date = DateEntityField('type.date')
     datetime = DateTimeEntityField('type.datetime')
     timespan = TimeSpanEntityField('type.timespan')
     color = ColorEntityField('type.color')