diff --git a/src/main.rs b/src/main.rs index a7015c3..8c6fa48 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,7 +6,6 @@ mod alienvault; mod anubis; mod crtsh; mod hackertarget; -mod omnisint; mod threatminer; mod structs; @@ -77,8 +76,7 @@ async fn main() -> Result<(), Box> { alienvault, anubis, crtsh, - hackertarget, - omnisint, + hackertarget, threatminer ) = futures::join!( @@ -87,7 +85,6 @@ async fn main() -> Result<(), Box> { anubis::get_anubis_subdomains(&cleaned_target), crtsh::get_crt_domains(&cleaned_target), hackertarget::get_hackertarget_domains(&cleaned_target), - omnisint::get_omnisint_subdomains(&cleaned_target), threatminer::get_threatminer_subdomains(&cleaned_target), ); @@ -99,7 +96,6 @@ async fn main() -> Result<(), Box> { .chain(anubis.iter().flatten()) .chain(crtsh.iter().flatten()) .chain(hackertarget.iter().flatten()) - .chain(omnisint.iter().flatten()) .chain(threatminer.iter().flatten()) .unique_by(|s| &s.url) .collect(); diff --git a/src/omnisint.rs b/src/omnisint.rs deleted file mode 100644 index f0a5072..0000000 --- a/src/omnisint.rs +++ /dev/null @@ -1,75 +0,0 @@ -use crate::structs::Subdomain; - -use std::thread; -use std::time::Duration; - -use indicatif::ProgressBar; -use indicatif::ProgressStyle; - -// get subdomains from omnisint.io -pub async fn get_omnisint_subdomains( - domain: &str, -) -> Result, Box> { - - println!("[darkscout]> Grabbing domains from OmnisInt..."); - println!(); - - let response: Vec = - reqwest::get(format!("https://sonar.omnisint.io/subdomains/{}", domain)) - .await? - .json() - .await?; - - // Generate progress bar - let pb = ProgressBar::new_spinner(); - pb.enable_steady_tick(Duration::from_millis(120)); - pb.set_style( - ProgressStyle::with_template("{spinner:.blue} {msg}") - .unwrap() - .tick_strings(&[ - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸▹", - "▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▹▸", - "▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪", - ]), - ); - - pb.set_message("Scraping OmnisInt..."); - thread::sleep(Duration::from_secs(5)); - - // Parse response from OmnisInt - let subdomains: Vec = response - .into_iter() - .map(|sub| Subdomain { url: sub }) - .collect(); - - // Stop progress bar once task completes - pb.finish_with_message("Done: Omnisint Complete!"); - - //println!("[darkscout]> Finished grabbing domains from OmnisInt..."); - - Ok(subdomains) -}