Commit dcecff4e391ffcf3a7da117b7e0d8c9957496b5e

Authored by decalage2
1 parent eecabc2a

rtfobj: disabled logging of each control word (issue #184)

oletools/rtfobj.py
@@ -73,8 +73,9 @@ http://www.decalage.info/python/oletools @@ -73,8 +73,9 @@ http://www.decalage.info/python/oletools
73 # 2017-05-04 PL: - fixed issue #164 to handle linked OLE objects 73 # 2017-05-04 PL: - fixed issue #164 to handle linked OLE objects
74 # 2017-06-08 PL: - fixed issue/PR #143: bin object with negative length 74 # 2017-06-08 PL: - fixed issue/PR #143: bin object with negative length
75 # 2017-06-29 PL: - temporary fix for issue #178 75 # 2017-06-29 PL: - temporary fix for issue #178
  76 +# 2017-07-14 v0.51.1 PL: - disabled logging of each control word (issue #184)
76 77
77 -__version__ = '0.51' 78 +__version__ = '0.51.1dev2'
78 79
79 # ------------------------------------------------------------------------------ 80 # ------------------------------------------------------------------------------
80 # TODO: 81 # TODO:
@@ -389,7 +390,7 @@ class RtfParser(object): @@ -389,7 +390,7 @@ class RtfParser(object):
389 param = None 390 param = None
390 if len(m.groups()) > 1: 391 if len(m.groups()) > 1:
391 param = m.group(2) 392 param = m.group(2)
392 - # log.debug('control word %r at index %Xh - cword=%r param=%r' % (m.group(), self.index, cword, param)) 393 + # log.debug('control word at index %Xh - cword=%r param=%r %r' % (self.index, cword, param, m.group()))
393 self._control_word(m, cword, param) 394 self._control_word(m, cword, param)
394 self.index += len(m.group()) 395 self.index += len(m.group())
395 # if it's \bin, call _bin after updating index 396 # if it's \bin, call _bin after updating index
@@ -632,7 +633,7 @@ class RtfObjParser(RtfParser): @@ -632,7 +633,7 @@ class RtfObjParser(RtfParser):
632 # TODO: extract useful cwords such as objclass 633 # TODO: extract useful cwords such as objclass
633 # TODO: keep track of cwords inside objdata, because it is unusual and indicates potential obfuscation 634 # TODO: keep track of cwords inside objdata, because it is unusual and indicates potential obfuscation
634 # TODO: same with control symbols, and opening bracket 635 # TODO: same with control symbols, and opening bracket
635 - log.debug('- Control word "%s", param=%s, level=%d' % (cword, param, self.group_level)) 636 + # log.debug('- Control word "%s", param=%s, level=%d' % (cword, param, self.group_level))
636 pass 637 pass
637 638
638 639
setup.py
@@ -41,7 +41,7 @@ import os, fnmatch @@ -41,7 +41,7 @@ import os, fnmatch
41 #--- METADATA ----------------------------------------------------------------- 41 #--- METADATA -----------------------------------------------------------------
42 42
43 name = "oletools" 43 name = "oletools"
44 -version = '0.51.1dev1' 44 +version = '0.51.1dev2'
45 desc = "Python tools to analyze security characteristics of MS Office and OLE files (also called Structured Storage, Compound File Binary Format or Compound Document File Format), for Malware Analysis and Incident Response #DFIR" 45 desc = "Python tools to analyze security characteristics of MS Office and OLE files (also called Structured Storage, Compound File Binary Format or Compound Document File Format), for Malware Analysis and Incident Response #DFIR"
46 long_desc = open('oletools/README.rst').read() 46 long_desc = open('oletools/README.rst').read()
47 author = "Philippe Lagadec" 47 author = "Philippe Lagadec"