Merge pull request #35 from YamatoSecurity/feature/credits

credits template
This commit is contained in:
nishikawaakira
2020-12-07 17:17:09 +00:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

1
credits.txt Normal file
View File

@@ -0,0 +1 @@
Zach Mathis (田中ザックYamato Security Yea! Project Leader

View File

@@ -17,6 +17,10 @@ fn main() -> Result<(), DeError> {
detect_files(evtx_files);
}
if configs::singleton().args.is_present("credits") {
print_credits();
}
after_fact();
Ok(())
@@ -53,6 +57,13 @@ fn collect_evtxfiles(dirpath: &str) -> Vec<PathBuf> {
return ret;
}
fn print_credits() {
match fs::read_to_string("./credits.txt") {
Ok(contents) => println!("{}", contents),
Err(err) => println!("{}", err),
}
}
fn detect_files(evtx_files: Vec<PathBuf>) {
let mut detection = detection::Detection::new();
&detection.start(evtx_files);