Merge pull request #732 from Yamato-Security/730-dont-display-loading-detections-rules-please-wait-with-metrics-or-logon-summary-option

don't display loading detections rules please wait with metrics or logon summary option
This commit is contained in:
DustInDark
2022-10-07 20:42:09 +09:00
committed by GitHub
5 changed files with 19 additions and 8 deletions

View File

@@ -2,6 +2,10 @@
## 1.7.1 [2022/xx/xx]
**改善:**
- 検知ルールを利用しないオプション(`-M``-L`オプション)の時のメッセージの出力内容を修正した。 (#730) (@hitenkoku)
**バグ修正:**
- より正確な結果を出力するために、チャンネルとEIDの情報を`rules/config/channel_eid_info.txt`に基づいてチェックするようにした。 (#463) (@garigariganzy)

View File

@@ -2,6 +2,10 @@
## 1.7.1 [2022/xx/xx]
**Enhancements:**
- Do not display a message about loading detection rules when using the `-M` or `-L` options. (#730) (@hitenkoku)
**Bug Fixes:**
- Hayabusa now checks Channel and EID information based on `rules/config/channel_eid_info.txt` to provide more accurate results. (#463) (@garigariganzy)

2
rules

Submodule rules updated: a8c2008331...45262b3612

View File

@@ -257,7 +257,7 @@ impl App {
write_color_buffer(
&BufferWriter::stdout(ColorChoice::Always),
None,
"Generating Logons Summary",
"Generating Logon Summary",
true,
)
.ok();
@@ -623,8 +623,12 @@ impl App {
let total_size_output = format!("Total file size: {}", total_file_size.to_string_as(false));
println!("{}", total_size_output);
println!();
println!("Loading detections rules. Please wait.");
println!();
if !(configs::CONFIG.read().unwrap().args.metrics
|| configs::CONFIG.read().unwrap().args.logon_summary)
{
println!("Loading detections rules. Please wait.");
println!();
}
if configs::CONFIG.read().unwrap().args.html_report.is_some() {
let output_data = vec![

View File

@@ -48,7 +48,7 @@ impl Timeline {
}
// 出力メッセージ作成
let mut sammsges: Vec<String> = Vec::new();
let total_event_record = format!("\nTotal Event Records: {}\n", self.stats.total);
let total_event_record = format!("\n\nTotal Event Records: {}\n", self.stats.total);
if CONFIG.read().unwrap().args.filepath.is_some() {
sammsges.push(format!("Evtx File Path: {}", self.stats.filepath));
sammsges.push(total_event_record);
@@ -112,7 +112,7 @@ impl Timeline {
}
// 出力メッセージ作成
let mut sammsges: Vec<String> = Vec::new();
let total_event_record = format!("\nTotal Event Records: {}\n", self.stats.total);
let total_event_record = format!("\n\nTotal Event Records: {}\n", self.stats.total);
if CONFIG.read().unwrap().args.filepath.is_some() {
sammsges.push(format!("Evtx File Path: {}", self.stats.filepath));
sammsges.push(total_event_record);
@@ -184,7 +184,7 @@ impl Timeline {
/// ユーザ毎のログイン統計情報出力メッセージ生成
fn tm_loginstats_tb_set_msg(&self) {
println!("Logon Summary");
println!(" Logon Summary:");
if self.stats.stats_login_list.is_empty() {
let mut loginmsges: Vec<String> = Vec::new();
loginmsges.push("-----------------------------------------".to_string());
@@ -235,7 +235,6 @@ impl Timeline {
logins_stats_tb.add_row(record_data);
}
println!("{logins_stats_tb}");
println!();
}
}
}