rayhunter-check improvements

This commit is contained in:
Will Greenberg
2024-08-12 13:32:38 -07:00
committed by Cooper Quintin
parent f6681a3703
commit 861aaedd47
2 changed files with 35 additions and 9 deletions

View File

@@ -60,19 +60,19 @@ pub trait Analyzer {
#[derive(Serialize, Debug)]
pub struct AnalyzerMetadata {
name: String,
description: String,
pub name: String,
pub description: String,
}
#[derive(Serialize, Debug)]
pub struct ReportMetadata {
analyzers: Vec<AnalyzerMetadata>,
pub analyzers: Vec<AnalyzerMetadata>,
}
#[derive(Serialize, Debug, Clone)]
pub struct PacketAnalysis {
timestamp: DateTime<FixedOffset>,
events: Vec<Option<Event>>,
pub timestamp: DateTime<FixedOffset>,
pub events: Vec<Option<Event>>,
}
#[derive(Serialize, Debug)]
@@ -175,7 +175,7 @@ impl Harness {
pub fn get_metadata(&self) -> ReportMetadata {
let names = self.get_names();
let descriptions = self.get_names();
let descriptions = self.get_descriptions();
let mut analyzers = Vec::new();
for (name, description) in names.iter().zip(descriptions.iter()) {
analyzers.push(AnalyzerMetadata {