From 37a1abf9ec23ffe8a94932a4613bd44875b1a822 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Thu, 23 Jun 2022 09:24:15 +0900 Subject: [PATCH] adjusted execution path to pivot-keywords --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index bf6a4797..94593132 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,6 +23,7 @@ use hayabusa::detections::rule::{get_detection_keys, RuleNode}; use hayabusa::omikuji::Omikuji; use hayabusa::options::level_tuning::LevelTuning; use hayabusa::yaml::ParseYaml; +use hayabusa::detections::configs::CURRENT_EXE_PATH; use hayabusa::{afterfact::after_fact, detections::utils}; use hayabusa::{detections::configs, timeline::timelines::Timeline}; use hayabusa::{detections::utils::write_color_buffer, filter}; @@ -82,7 +83,7 @@ impl App { fn exec(&mut self) { if *PIVOT_KEYWORD_LIST_FLAG { - load_pivot_keywords("config/pivot_keywords.txt"); + load_pivot_keywords(CURRENT_EXE_PATH.join("config/pivot_keywords.txt").to_str().unwrap()); } let analysis_start_time: DateTime = Local::now();