Skip to content

Commit

Permalink
olevba: uses plugin_biff to display DCONN objects and their URL
Browse files Browse the repository at this point in the history
  • Loading branch information
decalage2 committed Mar 22, 2020
1 parent c9e77c6 commit 889316b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion oletools/olevba.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@
# 2019-09-24 PL: - included DridexUrlDecode into olevba (issue #485)
# 2019-12-03 PL: - added support for SLK files and XLM macros in SLK
# 2020-01-31 v0.56 KS: - added option --no-xlm, improved MHT detection
# 2020-03-22 PL: - uses plugin_biff to display DCONN objects and their URL

__version__ = '0.56dev1'
__version__ = '0.56dev3'

#------------------------------------------------------------------------------
# TODO:
Expand Down Expand Up @@ -3252,6 +3253,10 @@ def detect_xlm_macros(self):
self.xlm_macros = biff_plugin.Analyze()
if len(self.xlm_macros)>0:
log.debug('Found XLM macros')
# we run plugin_biff again, this time to search DCONN objects and get their URLs, if any:
# ref: https://inquest.net/blog/2020/03/18/Getting-Sneakier-Hidden-Sheets-Data-Connections-and-XLM-Macros
biff_plugin = cBIFF(name=[excel_stream], stream=data, options='-o 876 -s')
self.xlm_macros += biff_plugin.Analyze()
return True
except:
log.exception('Error when running oledump.plugin_biff, please report to %s' % URL_OLEVBA_ISSUES)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#--- METADATA -----------------------------------------------------------------

name = "oletools"
version = '0.56dev2'
version = '0.56dev3'
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"
long_desc = open('oletools/README.rst').read()
author = "Philippe Lagadec"
Expand Down

0 comments on commit 889316b

Please # to comment.