From bd53eff6bfa08b256be4651a4d0c92967d68c59b Mon Sep 17 00:00:00 2001 From: Philippe Lagadec Date: Fri, 19 Jun 2015 21:48:42 +0200 Subject: [PATCH] olevba: improved display during long analysis --- oletools/olevba.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index 1aa0972..dc883b7 100755 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -1844,6 +1844,7 @@ def print_analysis(vba_code, show_decoded_strings=False): :param show_decoded_strings: bool, if True hex-encoded strings will be displayed with their decoded content. :return: None """ + sys.stderr.write('Analysis...\r') results = scan_vba(vba_code, show_decoded_strings) if results: t = prettytable.PrettyTable(('Type', 'Keyword', 'Description')) @@ -1957,6 +1958,7 @@ def process_file_triage(container, filename, data): nb_macros += 1 if vba_code.strip() != '': # analyse the whole code, filtered to avoid false positives: + sys.stderr.write('Analysis...\r') scanner = VBA_Scanner(filter_vba(vba_code)) autoexec, suspicious, iocs, hexstrings, base64strings, dridex, vbastrings = scanner.scan_summary() nb_autoexec += autoexec -- libgit2 0.21.4