From 2f32d4fe4973f2cf8eaa4b910a66ce2cee55eb88 Mon Sep 17 00:00:00 2001 From: Yacine Elhamer <16624109+yelhamer@users.noreply.github.com> Date: Tue, 27 Jun 2023 11:20:02 +0100 Subject: [PATCH] Update base_extractor.py with review comments Co-authored-by: Willi Ballenthin --- capa/features/extractors/base_extractor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/capa/features/extractors/base_extractor.py b/capa/features/extractors/base_extractor.py index 798fa8be..c9977a24 100644 --- a/capa/features/extractors/base_extractor.py +++ b/capa/features/extractors/base_extractor.py @@ -339,9 +339,9 @@ class DynamicFeatureExtractor: example:: - extractor = VivisectFeatureExtractor(vw, path) - for feature, va in extractor.get_file_features(): - print('0x%x: %s', va, feature) + extractor = CapeFeatureExtractor.from_report(json.loads(buf)) + for feature, addr in extractor.get_file_features(): + print(addr, feature) yields: Tuple[Feature, Address]: feature and its location