| 48 | /// Configuration for IP scanning |
| 49 | #[derive(Debug, Clone)] |
| 50 | pub struct IpScanConfig { |
| 51 | pub ports: String, // Port range to scan (e.g., "1-65535" or "80,443,8080") |
| 52 | pub rate: u32, // Masscan rate |
| 53 | pub threads: usize, // Fuzzing threads |
| 54 | pub depth: u8, // Recursion depth for fuzzing |
| 55 | pub wordlist: Option<String>, // Custom wordlist path |
| 56 | pub timeout: u64, // Request timeout in seconds |
| 57 | pub fuzz_timeout_per_ip: u64, // Max time (seconds) to spend fuzzing each IP (0 = no limit) |
| 58 | } |
| 59 | |
| 60 | /// Get optimal thread count based on system resources |
| 61 | pub fn get_optimal_threads() -> usize { |
nothing calls this directly
no outgoing calls
no test coverage detected