fix comment
This commit is contained in:
@@ -16,10 +16,11 @@ use std::{fs::File, sync::Arc};
|
|||||||
|
|
||||||
const DIRPATH_RULES: &str = "rules";
|
const DIRPATH_RULES: &str = "rules";
|
||||||
|
|
||||||
|
// イベントファイルの1レコード分の情報を保持する構造体
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub struct EvtxRecordInfo {
|
pub struct EvtxRecordInfo {
|
||||||
evtx_filepath: String,
|
evtx_filepath: String,// イベントファイルのファイルパス ログで出力するときに使う
|
||||||
record: Value,
|
record: Value, // 1レコード分のデータをJSON形式にシリアライズしたもの
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO テストケースかかなきゃ...
|
// TODO テストケースかかなきゃ...
|
||||||
@@ -128,7 +129,7 @@ impl Detection {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
// evtxファイルからxmlを生成する。
|
// evtxファイルからEvtxRecordInfoを生成する。
|
||||||
// 戻り値は「どのイベントファイルから生成されたXMLかを示すindex」と「変換されたXML」のタプルです。
|
// 戻り値は「どのイベントファイルから生成されたXMLかを示すindex」と「変換されたXML」のタプルです。
|
||||||
// タプルのindexは、引数で指定されるevtx_filesのindexに対応しています。
|
// タプルのindexは、引数で指定されるevtx_filesのindexに対応しています。
|
||||||
async fn evtx_to_json(
|
async fn evtx_to_json(
|
||||||
|
|||||||
Reference in New Issue
Block a user