Closed forensicmatt closed 8 years ago
Can you check with which version of libfwnt your version of pyevtx is compiled. I've addressed this issue in https://github.com/libyal/libfwnt/commit/3d370d059d31a49c02be7f1091e0b4e78814194c (Apr 13, 2015)
20150105
It is fixed. Looks like I should keep up to date. Sorry about that.
I am getting the following error within strings inside the record class (record.strings).
object[1] failed - <type 'exceptions.IOError'>: pyevtx_record_get_string_by_index: unable to retrieve string: 1 size. libfwnt_security_identifier_copy_from_byte_stream: unsupported security identifier contains more than 10 sub authoritites.
This prevents record.xml_string from being generated it would appear.Here is an example file, script, and output from evtxexport.exe: EVTX file: https://www.dropbox.com/s/1j5e6qnrs45di1u/Archive-Security-2013-10-01-20-02-28-916.evtx?dl=0
Here is example script:
When passing these params to test script:
Archive-Security-2013-10-01-20-02-28-916.evtx 10613
I get the following Error:
EventRecordID: 1397257 Traceback (most recent call last): File "debug_evtx_record.py", l ine 21, in <module> print 'XML String: {}'.format(record.xml_string) IOError: pyevtx_record_get_xml_string: unable to retrieve XML string size.
If I look at this in a debugger I see that one of the record.strings has the error:
object[1] failed - <type 'exceptions.IOError'>: pyevtx_record_get_string_by_index: unable to retrieve string: 1 size. libfwnt_security_identifier_copy_from_byte_stream: unsupported security identifier contains more than 10 sub authoritites.
Here is debug vars:
However, when I run evtxexport.exe, I get all the xml, and strings. Here is the example of the same record: