MCPcopy Create free account
hub / github.com/KingOfBugbounty/enumrust / IpScanConfig

Class IpScanConfig

src/ip_scanner.rs:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48/// Configuration for IP scanning
49#[derive(Debug, Clone)]
50pub 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
61pub fn get_optimal_threads() -> usize {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected