mirror of
https://github.com/mandiant/capa.git
synced 2025-12-28 05:33:20 -08:00
pep8
This commit is contained in:
@@ -342,7 +342,9 @@ class CapaExplorerForm(idaapi.PluginForm):
|
||||
|
||||
meta = capa.ida.helpers.collect_metadata()
|
||||
|
||||
capabilities, counts = capa.main.find_capabilities(rules, capa.features.extractors.ida.IdaFeatureExtractor(), True)
|
||||
capabilities, counts = capa.main.find_capabilities(
|
||||
rules, capa.features.extractors.ida.IdaFeatureExtractor(), True
|
||||
)
|
||||
meta.update(counts)
|
||||
|
||||
# support binary files specifically for x86/AMD64 shellcode
|
||||
|
||||
@@ -96,12 +96,7 @@ def find_capabilities(ruleset, extractor, disable_progress=None):
|
||||
all_function_matches = collections.defaultdict(list)
|
||||
all_bb_matches = collections.defaultdict(list)
|
||||
|
||||
meta = {
|
||||
"counts": {
|
||||
"file": 0,
|
||||
"functions": {},
|
||||
}
|
||||
}
|
||||
meta = {"counts": {"file": 0, "functions": {},}}
|
||||
|
||||
for f in tqdm.tqdm(extractor.get_functions(), disable=disable_progress, unit=" functions"):
|
||||
function_matches, bb_matches, feature_count = find_function_capabilities(ruleset, extractor, f)
|
||||
|
||||
Reference in New Issue
Block a user