File tree Expand file tree Collapse file tree 3 files changed +21
-6
lines changed
Expand file tree Collapse file tree 3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 1212- チャンネルフィルタリングで ` logon-summary ` コマンドの速度を大幅に改善した。 (#1544 ) (@fukusuket )
1313- ` extract-base64 ` コマンドが` PowerShell Classic EID 400 ` イベントも対象するようになった。 (#1549 ) (@fukusuket )
1414
15+ ** バグ修正:**
16+
17+ - ` logon-summary ` と` pivot-keywords-list ` コマンドが不要なファイルを出力していた。 (#1553 ) (@fukusuket )
18+
1519## 3.0.1 [ 2024/12/29] - 3rd Year Anniversary Release
1620
1721** バグ修正:**
Original file line number Diff line number Diff line change 1212- Significantly improved the speed of the ` logon-summary ` command with channel filtering. (#1544 ) (@fukusuket )
1313- The ` extract-base64 ` command now also works on ` PowerShell Classic EID 400 ` events. (#1549 ) (@fukusuket )
1414
15+ ** Bug Fixes:**
16+
17+ - An unneeded file was being created with ` logon-summary ` and ` pivot-keywords-list ` commands. (#1553 ) (@fukusuket )
18+
1519## 3.0.1 [ 2024/12/29] - 3rd Year Anniversary Release
1620
1721** Bug Fixes:**
Original file line number Diff line number Diff line change @@ -165,12 +165,19 @@ pub fn init_writer(stored_static: &StoredStatic) -> AfterfactWriter {
165165
166166 let mut display_flag = false ;
167167 let target: Box < dyn io:: Write > = if let Some ( path) = & stored_static. output_path {
168- // output to file
169- match File :: create ( path) {
170- Ok ( file) => Box :: new ( BufWriter :: new ( file) ) ,
171- Err ( err) => {
172- AlertMessage :: alert ( & format ! ( "Failed to open file. {err}" ) ) . ok ( ) ;
173- process:: exit ( 1 ) ;
168+ if matches ! (
169+ stored_static. config. action. as_ref( ) . unwrap( ) ,
170+ Action :: PivotKeywordsList ( _) | Action :: LogonSummary ( _)
171+ ) {
172+ Box :: new ( BufWriter :: new ( io:: stdout ( ) ) )
173+ } else {
174+ // output to file
175+ match File :: create ( path) {
176+ Ok ( file) => Box :: new ( BufWriter :: new ( file) ) ,
177+ Err ( err) => {
178+ AlertMessage :: alert ( & format ! ( "Failed to open file. {err}" ) ) . ok ( ) ;
179+ process:: exit ( 1 ) ;
180+ }
174181 }
175182 }
176183 } else {
You can’t perform that action at this time.
0 commit comments