Start work on generators

main
E. Almqvist 2 years ago
parent 8f70586cde
commit 6978f7d9c0
  1. 3
      src/ipv4.rs
  2. 1
      src/scanner.rs

@ -18,6 +18,9 @@ pub struct IPv4 {
pub id: u64, pub id: u64,
pub ip: [u8; 4], pub ip: [u8; 4],
pub ignore: bool, pub ignore: bool,
// pub enum __Generator {
// Start(&'static)
// }
} }
impl IPv4 { impl IPv4 {

@ -9,6 +9,7 @@ fn tcp_scan(mut target: ipv4::IPv4, target_port: u16) -> bool {
let dest = target.to_socketaddr(target_port).unwrap(); let dest = target.to_socketaddr(target_port).unwrap();
false false
// TODO: FIX
// if let Ok(res) = TcpStream::connect(dest) { // if let Ok(res) = TcpStream::connect(dest) {
// info!("* Got TCP ack from: {:?} | {:?}", dest, res); // info!("* Got TCP ack from: {:?} | {:?}", dest, res);
// return true; // return true;

Loading…
Cancel
Save