Coder Social home page Coder Social logo

0.6.0 introduced error about evtx HOT 6 CLOSED

omerbenamram avatar omerbenamram commented on September 17, 2024
0.6.0 introduced error

from evtx.

Comments (6)

forensicmatt avatar forensicmatt commented on September 17, 2024

Interesting, it works fine with the 0.6.0 evtx_dump using evtx_dump.exe --separate-json-attributes -o jsonl "E_ShadowCopy6_windows_system32_winevt_logs_Microsoft-Windows-CAPI2%4Operational.evtx".

Maybe it is something I am doing though the library. It's just strange that it works fine for me with 0.5.1 but panics on 0.6.0 using the library.

I will see if I can pin point with example code.

from evtx.

forensicmatt avatar forensicmatt commented on September 17, 2024

I am sorry, I was not using the 0.6.0 bin. The 0.6.0 bin does error out using the following:

>evtx_dump.exe --separate-json-attributes -o jsonl "E_ShadowCopy6_windows_system32_winevt_logs_Microsoft-Windows-CAPI2%4Operational.evtx"
thread 'thread '<unnamed><unnamed>' panicked at '' panicked at 'It can only be an object or null, and null was coveredIt can only be an object or null, and null was covered', ', src\libcore\option.rssrc\libcore\option.rs::11661166::55

stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: <unknown>
  26: <unknown>
  27: <unknown>
  28: BaseThreadInitThunk
  29: RtlUserThreadStart
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: <unknown>
  22: <unknown>
  23: <unknown>
  24: <unknown>
  25: <unknown>
  26: <unknown>
  27: <unknown>
  28: <unknown>
  29: <unknown>
  30: <unknown>
  31: <unknown>
  32: BaseThreadInitThunk
  33: RtlUserThreadStart

from evtx.

omerbenamram avatar omerbenamram commented on September 17, 2024

Huh! this is a regression. I'll fix it and push 0.6.1.
Sorry about that!

EDIT: this seems to only happen with --seperate-json-attributes.

from evtx.

omerbenamram avatar omerbenamram commented on September 17, 2024

Fixed with #66.
This regression was introduced because 0.6.0 is smarter about nodes that have multiple XML nodes with the same name (when converting to JSON), so some unexpected paths were hit twice in places where this shouldn't have happened.

Also changed all tests to cover this flag now.

Let me know if anything else is not working with this release :)

from evtx.

forensicmatt avatar forensicmatt commented on September 17, 2024

Thanks! Just curious, what are garbage nodes considered?

from evtx.

omerbenamram avatar omerbenamram commented on September 17, 2024

@forensicmatt it's stuff like this.

Notice the stuff between the nodes, I did notice them while adding support for EntityRef notes.

From what I've compared against the windows event explorer, they never contained any data that wasn't garbage (/ etc).
The data is there by all means, I'm just not certain of why it's there.

<URLCacheFlushInfo></URLCacheFlushInfo>&amp;quot&amp;<URLCacheResponseInfo></URLCacheResponseInfo> 

from evtx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.