Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
240 changes: 240 additions & 0 deletions samples/mta/test.csv

Large diffs are not rendered by default.

Binary file added samples/mta/test.evtx
Binary file not shown.
Binary file added samples/mta/test_1033.MTA
Binary file not shown.
2 changes: 2 additions & 0 deletions src/evtx_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ impl ParserSettings {
self
}


pub fn validate_checksums(mut self, validate_checksums: bool) -> Self {
self.validate_checksums = validate_checksums;

Expand Down Expand Up @@ -252,6 +253,7 @@ impl ParserSettings {
self.wevt_cache.as_ref()
}


pub fn should_separate_json_attributes(&self) -> bool {
self.separate_json_attributes
}
Expand Down
5 changes: 3 additions & 2 deletions src/evtx_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ pub struct EvtxRecord<'a> {
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct EvtxRecordHeader {
pub data_size: u32,
pub event_record_id: RecordId,
pub event_record_id: RecordId, // Not same as EventRecordId in payload
pub timestamp: Timestamp,
}

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct SerializedEvtxRecord<T> {
pub event_record_id: RecordId,
pub event_record_id: RecordId, // Not same as EventRecordId in payload
pub timestamp: Timestamp,
pub data: T,
}
Expand Down Expand Up @@ -273,3 +273,4 @@ impl<'a> EvtxRecord<'a> {
Ok(out)
}
}

2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ pub use evtx_file_header::{EvtxFileHeader, HeaderFlags};
pub use evtx_parser::{EvtxParser, IntoIterChunks, IterChunks, ParserSettings};
pub use evtx_record::{EvtxRecord, EvtxRecordHeader, RecordId, SerializedEvtxRecord};
pub use utils::utf16::{Utf16LeDecodeError, Utf16LeSlice};
pub use mta::{MtaError, MtaFile, MtaResult};

pub mod binxml;
pub mod err;
pub mod model;
pub mod mta;

// Optional: PE resource parsing to extract WEVT_TEMPLATE blobs (see issue #103).
#[cfg(feature = "wevt_templates")]
Expand Down
Loading