From eb69c4bbf5e2dd624f0f3e428f008d2db5bdcd9d Mon Sep 17 00:00:00 2001 From: decalage2 Date: Sun, 23 May 2021 18:42:12 +0200 Subject: [PATCH] olevba: fixed bug in open_word2003xml (ElementTree getiterator not supported anymore) --- oletools/olevba.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index a0d052e..5e77043 100644 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -2931,7 +2931,7 @@ class VBA_Parser(object): # TODO: handle XML parsing exceptions et = ET.fromstring(data) # find all the binData elements: - for bindata in et.getiterator(TAG_BINDATA): + for bindata in et.iter(TAG_BINDATA): # the binData content is an OLE container for the VBA project, compressed # using the ActiveMime/MSO format (zlib-compressed), and Base64 encoded. # get the filename: -- libgit2 0.21.4