mirror of
https://github.com/mandiant/capa.git
synced 2026-01-18 15:47:06 -08:00
`args` and `value` are a duplication for most of the features: `args = [value]` get rid of `args` and introduce `value` for `Feature` (the main class instead of the subclasses). This makes the code simpler. Refactoring the `freeze_serialize` function to not use an array would simplify the code a bit more, but that needs a bit more of work.
20 lines
523 B
Python
20 lines
523 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)
|
|
|
|
|
|
class Import(Feature):
|
|
def __init__(self, value, description=None):
|
|
# value is import name
|
|
super(Import, self).__init__(value, description)
|
|
|
|
|
|
class Section(Feature):
|
|
def __init__(self, value, description=None):
|
|
# value is section name
|
|
super(Section, self).__init__(value, description)
|