DynamicFeatureExtractor: remove get_base_address() method

Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
Yacine Elhamer
2023-06-27 11:22:35 +01:00
committed by GitHub
parent 92734416a6
commit a99ff813cb
2 changed files with 0 additions and 11 deletions

View File

@@ -309,13 +309,6 @@ class DynamicFeatureExtractor:
This class is not instantiated directly; it is the base class for other implementations.
"""
@abc.abstractmethod
def get_base_address(self) -> Union[AbsoluteVirtualAddress, capa.features.address._NoAddress]:
"""
fetch the preferred load address at which the sample was analyzed.
"""
raise NotImplementedError()
@abc.abstractmethod
def extract_global_features(self) -> Iterator[Tuple[Feature, Address]]:
"""

View File

@@ -26,10 +26,6 @@ class CapeExtractor(DynamicFeatureExtractor):
self.behavior = behavior
self.global_features = capa.features.extractors.cape.global_.extract_features(self.static)
def get_base_address(self):
return NO_ADDRESS
def extract_global_features(self) -> Iterator[Tuple[Feature, Address]]:
yield from self.global_features