Commit f5e2e0a540b8434caf367fae9dfe0c1bf73f4f68

Authored by decalage2
1 parent 4552f684

mraptor: added more ActiveX trigger events (issue #95)

Showing 1 changed file with 3 additions and 2 deletions
oletools/mraptor.py
@@ -54,8 +54,9 @@ http://www.decalage.info/python/oletools @@ -54,8 +54,9 @@ http://www.decalage.info/python/oletools
54 # 2016-08-31 v0.50 PL: - added macro trigger InkPicture_Painted 54 # 2016-08-31 v0.50 PL: - added macro trigger InkPicture_Painted
55 # 2016-09-05 PL: - added Document_BeforeClose keyword for MS Publisher (.pub) 55 # 2016-09-05 PL: - added Document_BeforeClose keyword for MS Publisher (.pub)
56 # 2016-10-25 PL: - fixed print for Python 3 56 # 2016-10-25 PL: - fixed print for Python 3
  57 +# 2016-12-21 v0.51 PL: - added more ActiveX macro triggers
57 58
58 -__version__ = '0.50' 59 +__version__ = '0.51'
59 60
60 #------------------------------------------------------------------------------ 61 #------------------------------------------------------------------------------
61 # TODO: 62 # TODO:
@@ -96,7 +97,7 @@ MSG_ISSUES = 'Please report this issue on %s' % URL_ISSUES @@ -96,7 +97,7 @@ MSG_ISSUES = 'Please report this issue on %s' % URL_ISSUES
96 re_autoexec = re.compile(r'(?i)\b(?:Auto(?:Exec|_?Open|_?Close|Exit|New)' + 97 re_autoexec = re.compile(r'(?i)\b(?:Auto(?:Exec|_?Open|_?Close|Exit|New)' +
97 r'|Document(?:_?Open|_Close|_?BeforeClose|Change|_New)' + 98 r'|Document(?:_?Open|_Close|_?BeforeClose|Change|_New)' +
98 r'|NewDocument|Workbook(?:_Open|_Activate|_Close)' + 99 r'|NewDocument|Workbook(?:_Open|_Activate|_Close)' +
99 - r'|\w+_(?:Painted|GotFocus|LostFocus|MouseHover))\b') 100 + r'|\w+_(?:Painted|GotFocus|LostFocus|MouseHover|Layout|Click))\b')
100 101
101 # MS-VBAL 5.4.5.1 Open Statement: 102 # MS-VBAL 5.4.5.1 Open Statement:
102 RE_OPEN_WRITE = r'(?:\bOpen\b[^\n]+\b(?:Write|Append|Binary|Output|Random)\b)' 103 RE_OPEN_WRITE = r'(?:\bOpen\b[^\n]+\b(?:Write|Append|Binary|Output|Random)\b)'