From 7d0b649384c82533e3078baa6bc699b07b0510c7 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Sun, 6 Oct 2024 09:02:14 +0900 Subject: [PATCH 1/3] fix: remove unnecessary line break in search cmd --- src/timeline/search.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/timeline/search.rs b/src/timeline/search.rs index 80d6fcfd0..d713b15bc 100644 --- a/src/timeline/search.rs +++ b/src/timeline/search.rs @@ -568,6 +568,5 @@ pub fn search_result_dsp_msg( } } } - println!(); } } From 7c611c717fe10bbb4ed55c1e854d10d809a65d4f Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Sun, 6 Oct 2024 12:45:15 +0900 Subject: [PATCH 2/3] chg: output line break when no output option --- src/timeline/search.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/timeline/search.rs b/src/timeline/search.rs index d713b15bc..e20f66ab4 100644 --- a/src/timeline/search.rs +++ b/src/timeline/search.rs @@ -568,5 +568,8 @@ pub fn search_result_dsp_msg( } } } + if output.is_none() { + println!(); + } } } From b9dc946c32f1a5c28d37354bcb7153263f107144 Mon Sep 17 00:00:00 2001 From: Yamato Security <71482215+YamatoSecurity@users.noreply.github.com> Date: Mon, 7 Oct 2024 07:51:36 +0900 Subject: [PATCH 3/3] update changelog --- CHANGELOG-Japanese.md | 4 ++++ CHANGELOG.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG-Japanese.md b/CHANGELOG-Japanese.md index 7aafa22dd..c39e7f6f9 100644 --- a/CHANGELOG-Japanese.md +++ b/CHANGELOG-Japanese.md @@ -10,6 +10,10 @@ - 注意: -Hオプションで生成されるレポートは、ルールへのリンクを作成せず、ルール名だけが出力される。 - `rules/config`の設定ファイルが単一のファイル[rules_config_files.txt](https://github.com/Yamato-Security/hayabusa-encoded-rules/raw/refs/heads/main/rules_config_files.txt)からロードされるようになり、ライブ調査のためにターゲットシステムに保存する必要があるファイル数が減った。(#1420) (@fukusuket) +**バグ修正:** + +- `search`コマンドの`-o`オプションを使用した際に不要な改行が出力されていた。(#1425) (@fukusuket) + ## 2.17.0 [2024/08/23] "HITCON Community Release" **新機能:** diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d33d1801..a4093b315 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ - Note: The report generated by the `-H` option cannot create a link to the rule (only the rule name is outputted.) - `rules/config` config files are now loaded from a single file [rules_config_files.txt](https://github.com/Yamato-Security/hayabusa-encoded-rules/raw/refs/heads/main/rules_config_files.txt) to reduce the number of files needed to be stored on a target system for live response. (#1420) (@fukusuket) +**Bug Fixes:** + +- Unneeded line breaks when using `-o` in the `search` command. (#1425) (@fukusuket) + ## 2.17.0 [2024/08/23] "HITCON Community Release" **New Features:**