-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
An ERROR occurs in olevba when parsing a simple .xlsm. #808
Comments
yuichi-github
changed the title
An ERROR occurs in olevba when parsing a simple .xslm.
An ERROR occurs in olevba when parsing a simple .xlsm.
Feb 27, 2023
I also get same error. OS : "Kali GNU/Linux"
VERSION="2022.4"
olevba version : 0.60.1 ```
WARNING invalid value for PROJECTLCID_Id expected 0002 got 004A
WARNING invalid value for PROJECTLCID_Lcid expected 0409 got 0002
WARNING invalid value for PROJECTLCIDINVOKE_Id expected 0014 got 0002
WARNING invalid value for PROJECTCODEPAGE_Id expected 0003 got 0014
WARNING invalid value for PROJECTCODEPAGE_Size expected 0002 got 0004
WARNING invalid value for PROJECTNAME_Id expected 0004 got 0000
ERROR PROJECTNAME_SizeOfProjectName value not in range [1-128]: 131075
ERROR Error in _extract_vba
Traceback (most recent call last):
File "/home/user/Downloads/tools/oletools/venv/lib/python3.11/site-packages/oletools/olevba.py", line 3526, in extract_macros
for stream_path, vba_filename, vba_code in \
File "/home/user/Downloads/tools/oletools/venv/lib/python3.11/site-packages/oletools/olevba.py", line 2094, in _extract_vba
project = VBA_Project(ole, vba_root, project_path, dir_path, relaxed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Downloads/tools/oletools/venv/lib/python3.11/site-packages/oletools/olevba.py", line 1752, in __init__
projectdocstring_id = struct.unpack("<H", dir_stream.read(2))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 2 bytes |
Hi, getting this error too, any idea how to get around this?
|
Fixed by PR #723 |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Affected tool:
olevba
Describe the bug
An ERROR occurs in olevba when parsing a simple .xlsm.
Any support is highly appreciated.
Error Details
File/Malware sample to reproduce the bug
password: simple
Book1.zip
How To Reproduce the bug
Invoke the command below.
olevba book1.xlsm
Expected behavior
Parsing successfully.
Console output / Screenshots
See the 'Describe the bug' section
Version information:
Additional context
The text was updated successfully, but these errors were encountered: