From 45ffe2d118423a104d305f38271c5c683f26f756 Mon Sep 17 00:00:00 2001 From: Philippe Lagadec Date: Thu, 11 Dec 2014 22:38:08 +0100 Subject: [PATCH] olevba: improved display --- oletools/olevba.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index 0c67d01..7ca0caa 100644 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -133,19 +133,19 @@ FORM_EXTENSION = "frm" # Keywords to detect auto-executable macros AUTOEXEC_KEYWORDS = { # MS Word: - 'Macro running automatically when the Word document is opened': + 'Macro triggered when the Word document is opened': ('AutoExec', 'AutoOpen', 'Document_Open', 'DocumentOpen'), - 'Macro running automatically when the Word document is closed': + 'Macro triggered when the Word document is closed': ('AutoExit', 'AutoClose', 'Document_Close', 'DocumentBeforeClose'), - 'Macro running automatically when the Word document is modified': + 'Macro triggered when the Word document is modified': ('DocumentChange',), - 'Macro running automatically when a new Word document is created': + 'Macro triggered when a new Word document is created': ('AutoNew', 'Document_New', 'NewDocument'), # MS Excel: - 'Macro running automatically when the Excel Workbook is opened': + 'Macro triggered when the Excel Workbook is opened': ('Auto_Open', 'Workbook_Open'), - 'Macro running automatically when the Excel Workbook is closed': + 'Macro triggered when the Excel Workbook is closed': ('Auto_Close', 'Workbook_Close'), #TODO: full list in MS specs?? @@ -949,6 +949,7 @@ if __name__ == '__main__': if autoexec_keywords: print 'Auto-executable macro keywords found:' t = prettytable.PrettyTable(('Keyword', 'Description')) + t.align = 'l' t.max_width['Keyword'] = 20 t.max_width['Description'] = 59 for keyword, description in autoexec_keywords: -- libgit2 0.21.4