Closed Brassrat closed 4 years ago
If you have an example evtx file that you can share that would be useful.
Thanks for your reply.
Not sure if I can share the whole file.
There only a few such events mostly from a long time ago
However, I have since determined that it is the event file itself.
i.e., the windows event viewer refuses to create XML for these events – so not sure what libevtx could do
Here is the ‘raw text’ for one of them: (from windows event viewer)
4739001356900x80200000000000008530Security666666-WIN7VMLockout Policy666666-WIN7VMS-1-5-21-1424057555-4072980066-844447911S-1-5-18666666-WIN7VM$W0x3e7----0---
(I replaced some characters in the above text )
I am currently piping the output of evtxexport into a sax parser. I plan on wrapping the stream with my own class and just throwing away characters between 0 and 7.
This gets me going.
BTW – we tried using the native windows 64 build vs a Cygwin-based build. The native windows exe ran orders of magnitude slower (>5 minutes vs 30 seconds.)
Any ideas? We figure it’s a buffering issue but don’t know where to begin to debug it.
Not sure if I can share the whole file. (I replaced some characters in the above text )
alas I would need the original data to see what is the culprit
another option is to provide me with the debug output for the offending event log entries. Also see: https://github.com/libyal/libevtx/wiki/Troubleshooting#verbose-and-debug-output
BTW – we tried using the native windows 64 build vs a Cygwin-based build. The native windows exe ran orders of magnitude slower (>5 minutes vs 30 seconds.)
please run with code profiling to determine what is slower on WINAPI + VS C runtime
Closing issue, unable to solve without reproducing the issue
I haven't traced down the root cause of this, but i am getting a number of Events with ^C characters for the LockoutObservationWindow and/or the MinPasswordLength. These are not valid XML characters and cause xml parsers to fail, event with an xml 1.1 parser these would have to at least be character entity references not simple bytes. Not sure if this is some issue with the virtual machine setup. It is a windows 7 vmware-based vm.
Could someone give me a pointer in the code where such characters would be generated so i can prevent them from getting into the xml stream. Thanks,
an example: