mirror of https://github.com/E-Almqvist/wwmap
parent
7a1ffdd700
commit
ef563d0b1a
@ -0,0 +1,4 @@ |
||||
|
||||
pub fn generate_ips() -> Vec<Vec<u8>> { |
||||
|
||||
} |
@ -1,3 +1,12 @@ |
||||
#![allow(
|
||||
dead_code, |
||||
unused_variables, |
||||
//unused_imports, // TODO: rm
|
||||
)] |
||||
|
||||
mod scanner; |
||||
mod ipv4_gen; |
||||
|
||||
fn main() { |
||||
println!("Hello, world!"); |
||||
} |
||||
|
@ -0,0 +1,35 @@ |
||||
use std::{net::{TcpStream, SocketAddr}, thread::JoinHandle}; |
||||
use log::info; |
||||
use std::thread; |
||||
use crate::ipv4_gen; |
||||
|
||||
async fn check_ack(dest: &SocketAddr) -> bool { |
||||
if let Ok(res) = TcpStream::connect(dest) { |
||||
info!("Got TCP ack from: {:?}", dest); |
||||
return true; |
||||
} |
||||
return false; |
||||
} |
||||
|
||||
pub fn start_scan(depth: u32) { |
||||
let threads: Vec<JoinHandle<()>> = Vec::new(); |
||||
|
||||
for i in 0..depth { |
||||
let thread = thread::spawn(|| { |
||||
println!("hi");
|
||||
}); |
||||
} |
||||
} |
||||
|
||||
|
||||
/* |
||||
|
||||
depth: u32 |
||||
blacklist_ips: Vec |
||||
|
||||
pre: |
||||
# generate IPs |
||||
ALL_IPS: Vec<Vecu8>> = ... |
||||
|
||||
*/ |
||||
|
Loading…
Reference in new issue