Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why olevba.py can not extract a strange sample's VBA code #61

Open
shenhuanageshei opened this issue Jul 8, 2016 · 1 comment
Open

Comments

@shenhuanageshei
Copy link

shenhuanageshei commented Jul 8, 2016

Hello,when I use olevba.py -d to analyze a .xls sample,it return these:


ERROR Unhandled exception in main: 'ProcessingError' object has no attribute
'orig_exception'
Traceback (most recent call last):
File "******\oletools\olevba.py", line 3292, in main
print '%-12s %s - %s' % ('!ERROR', filename, exc.orig_exception)
AttributeError: 'ProcessingError' object has no attribute 'orig_exception'


The sample's macro code can runing..
Sample's md5:c759babcfd296235e63f56ef8e3fd93d

@shenhuanageshei shenhuanageshei changed the title olevba can not why olevba.py can not extract a strange sample's VBA code Jul 8, 2016
@fooofei
Copy link

fooofei commented Jul 26, 2016

yes , when I use
vbaparser = VBA_Parser (this_file)
for v in vbaparser.extract_all_macros():
pass
I got same exception :
File "C:\Python27\lib\site-packages\oletools\olevba.py", line 1350, in _extract_vba
check_value('REFERENCE_Reserved', 0x003E, reference_reserved)
File "C:\Python27\lib\site-packages\oletools\olevba.py", line 1206, in check_value
raise UnexpectedDataError(dir_path, name, expected, value)
oletools.olevba.UnexpectedDataError: <exception str() failed>

I read the [MS-OVBA].pdf document , in
2.3.4.2.2.2 REFERENCENAME Record ,
It write :
Reserved (2 bytes): MUST be 0x003E. MUST be ignored.

so the olevba.py handle it right . hope someone give some advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants