Open chchchchchchchch opened 5 years ago
Hi, could you please submit the sample file that triggers this error, so that I can reproduce the bug? It looks like the OLE file is malformed. Also, I will need to know which versions of olefile and oletools you are using. Thanks.
Hi, could you please submit the sample file that triggers this error, so that I can reproduce the bug? It looks like the OLE file is malformed. Also, I will need to know which versions of olefile and oletools you are using. Thanks.
File/Malware sample to reproduce the bug:https://github.com/chchchchchchchch/project/blob/master/3206C441BC1F9403D751BAB812F29EF7 Version information: windows10 python version :3.7/ 64bits oletools version: 0.54.2
File/Malware sample to reproduce the bug:https://github.com/chchchchchchchch/project/blob/master/3206C441BC1F9403D751BAB812F29EF7 Version information: windows10 python version :3.7/ 64bits oletools version: 0.54.2
File "E:/project/MaliciousMacroBot-master/obfuscatedbot/vbasamplemongo/vbatomongo.py", line 70, in extracted_vba if vbaparser.detect_vba_macros(): File "C:\Users\chenlu\AppData\Local\Programs\Python\Python37\lib\site-packages\oletools\olevba.py", line 3077, in detect_vba_macros data = ole._open(d.isectStart, d.size).read() File "C:\Users\chenlu\AppData\Local\Programs\Python\Python37\lib\site-packages\olefile\olefile.py", line 1793, in _open self.loadminifat() File "C:\Users\chenlu\AppData\Local\Programs\Python\Python37\lib\site-packages\olefile\olefile.py", line 1608, in loadminifat self.minifat = self.sect2array(s) File "C:\Users\chenlu\AppData\Local\Programs\Python\Python37\lib\site-packages\olefile\olefile.py", line 1455, in sect2array a = array.array(UINT32, sect) ValueError: bytes length not a multiple of item size