diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dd237ce..3c47ae7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ **Bug Fixes:** - Hayabusa would crash with `-L` option (logon summary option). (#674) (@hitenkoku) -- Fixed custom config directory does not load files. (#681) (@hitenkoku) +- Hayabusa would continue to scan without the correct config files but now will print and error and gracefully terminate. (#681) (@hitenkoku) ## v1.5.1 [2022/08/20] diff --git a/src/detections/utils.rs b/src/detections/utils.rs index 25ed1caf..f7ee3a14 100644 --- a/src/detections/utils.rs +++ b/src/detections/utils.rs @@ -411,11 +411,11 @@ pub fn check_rule_config() -> Result<(), String> { // 各種ファイルを確認する let files = vec![ - "channgel_abbrevations.txt", + "channel_abbreviations.txt", "target_event_IDs.txt", "default_details.txt", "level_tuning.txt", - "statics_event_info.txt", + "statistics_event_info.txt", "eventkey_alias.txt", ]; let mut not_exist_file = vec![]; @@ -427,7 +427,7 @@ pub fn check_rule_config() -> Result<(), String> { if !not_exist_file.is_empty() { return Err(format!( - "Could not find the config file: {}¥nPlease specify a correct rules config directory", + "Could not find the following config files: {}\nPlease specify a correct rules config directory.\n", not_exist_file.join(", ") )); }