mirror of
https://github.com/mandiant/capa.git
synced 2026-01-01 15:36:15 -08:00
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.
23 lines
610 B
Python
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
|