From 782a526787afb7139b610009e50e3514f9f4d3a5 Mon Sep 17 00:00:00 2001 From: Philippe Lagadec Date: Sat, 17 Jan 2015 23:20:57 +0100 Subject: [PATCH] olevba: removed .com from the list of executable extensions, added scan_vba to run all detection algorithms, decoded hex strings are now also scanned --- oletools/olevba.py | 62 ++++++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 16 deletions(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index 18baff2..28e832c 100644 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -102,8 +102,11 @@ https://github.com/unixfreak0037/officeparser # 2015-01-16 v0.16 PL: - fix for issue #3 (exception when module name="text") # - added several suspicious keywords # - added option -i to analyze VBA source code directly +# 2015-01-17 v0.17 PL: - removed .com from the list of executable extensions +# - added scan_vba to run all detection algorithms +# - decoded hex strings are now also scanned -__version__ = '0.16' +__version__ = '0.17' #------------------------------------------------------------------------------ # TODO: @@ -248,7 +251,8 @@ RE_PATTERNS = ( ('IPv4 address', re.compile(r"\b(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\b")), ('E-mail address', re.compile(r'(?i)\b[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+(?:[A-Z]{2,12}|XN--[A-Z0-9]{4,18})\b')), # ('Domain name', re.compile(r'(?=^.{1,254}$)(^(?:(?!\d+\.|-)[a-zA-Z0-9_\-]{1,63}(?