Skip to content

Commit

Permalink
disable progress bar to exit gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
colton-gabertan committed Aug 8, 2023
1 parent e512d21 commit 6c717f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions capa/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1360,15 +1360,16 @@ def ghidra_main():

meta = capa.ghidra.helpers.collect_metadata([rules_path])

capabilities, counts = find_capabilities(rules, capa.features.extractors.ghidra.extractor.GhidraFeatureExtractor())
capabilities, counts = find_capabilities(
rules, capa.features.extractors.ghidra.extractor.GhidraFeatureExtractor(), True
)

meta.analysis.feature_counts = counts["feature_counts"]
meta.analysis.library_functions = counts["library_functions"]

if has_file_limitation(rules, capabilities, is_standalone=False):
logger.info("capa encountered warnings during analysis")

colorama.init(strip=True)
print(capa.render.default.render(meta, rules, capabilities))


Expand Down

0 comments on commit 6c717f9

Please sign in to comment.