Files
capa/capa/features/file.py
Ana María Martínez Gómez 767a76d814 Allow to add a description for every feature
Enable associate context for all features. This was called symbol before
and only enabled for `number`, `offset` and `bytes`.

This is not enabled for strings with regular expressions, as they are
not a feature.
2020-07-02 11:31:31 +02:00

23 lines
610 B
Python

from capa.features import Feature
class Export(Feature):
def __init__(self, value, description=None):
# value is export name
super(Export, self).__init__([value], description)
self.value = value
class Import(Feature):
def __init__(self, value, description=None):
# value is import name
super(Import, self).__init__([value], description)
self.value = value
class Section(Feature):
def __init__(self, value, description=None):
# value is section name
super(Section, self).__init__([value], description)
self.value = value