Merge pull request #35 from YamatoSecurity/feature/credits
credits template
This commit is contained in:
1
credits.txt
Normal file
1
credits.txt
Normal file
@@ -0,0 +1 @@
|
||||
Zach Mathis (田中ザック)Yamato Security Yea! Project Leader
|
||||
11
src/main.rs
11
src/main.rs
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user