Implement shadowserver.org

This commit is contained in:
2024-10-10 10:30:01 +02:00
parent 1783fe5c93
commit 8acf084467
4 changed files with 16 additions and 74 deletions

View File

@ -14,6 +14,7 @@ use crate::worker::ip_addr::is_global_hardcoded;
pub enum Scanners {
Stretchoid,
Binaryedge,
Shadowserver,
Censys,
InternetMeasurement,
}
@ -66,6 +67,13 @@ pub fn detect_scanner_from_name(name: &Name) -> Result<Option<Scanners>, ()> {
{
Ok(Some(Scanners::Stretchoid))
}
ref name
if name
.trim_to(2)
.eq_case(&Name::from_str("shadowserver.org.").expect("Should parse")) =>
{
Ok(Some(Scanners::Shadowserver))
}
&_ => Ok(None),
}
}