[INFO] cloning repository https://github.com/genc-murat/portscanner [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/genc-murat/portscanner" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgenc-murat%2Fportscanner", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgenc-murat%2Fportscanner'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0732a21773ed5729edd368dd4f95f9bf6d9e06cf [INFO] checking genc-murat/portscanner against try#e071e73523bfcdcab2878dbf652ac8ebb9b9eee4 for pr-144386 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgenc-murat%2Fportscanner" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/genc-murat/portscanner [INFO] finished tweaking git repo https://github.com/genc-murat/portscanner [INFO] tweaked toml for git repo https://github.com/genc-murat/portscanner written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/genc-murat/portscanner on toolchain e071e73523bfcdcab2878dbf652ac8ebb9b9eee4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/genc-murat/portscanner already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 330d7e4dd1bd144c5087358971e3063c97b82a61696f00ed88d514ecdb6e5f5c [INFO] running `Command { std: "docker" "start" "-a" "330d7e4dd1bd144c5087358971e3063c97b82a61696f00ed88d514ecdb6e5f5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "330d7e4dd1bd144c5087358971e3063c97b82a61696f00ed88d514ecdb6e5f5c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "330d7e4dd1bd144c5087358971e3063c97b82a61696f00ed88d514ecdb6e5f5c", kill_on_drop: false }` [INFO] [stdout] 330d7e4dd1bd144c5087358971e3063c97b82a61696f00ed88d514ecdb6e5f5c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e071e73523bfcdcab2878dbf652ac8ebb9b9eee4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd2a488b87c4592ec9ba3a6071b34b99457070294825ba3bc145321c5a612b28 [INFO] running `Command { std: "docker" "start" "-a" "dd2a488b87c4592ec9ba3a6071b34b99457070294825ba3bc145321c5a612b28", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking unicode-width v0.2.1 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking linux-raw-sys v0.9.4 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking shell-words v1.1.0 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking colored v2.2.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking clap_builder v4.5.41 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking console v0.15.11 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking crossterm v0.27.0 [INFO] [stderr] Checking tempfile v3.20.0 [INFO] [stderr] Checking dialoguer v0.10.4 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tokio v1.46.1 [INFO] [stderr] Checking clap v4.5.41 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking portscanner v0.4.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/progress.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsRawFd` [INFO] [stdout] --> src/stealth/network.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::io::{AsRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/stealth/packet_builder.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ipv4Addr` and `Ipv6Addr` [INFO] [stdout] --> src/stealth/packet_parser.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/progress.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsRawFd` [INFO] [stdout] --> src/stealth/network.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::io::{AsRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/stealth/packet_builder.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ipv4Addr` and `Ipv6Addr` [INFO] [stdout] --> src/stealth/packet_parser.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eta` [INFO] [stdout] --> src/progress.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | let eta = Duration::from_secs_f64((self.total_ports - *completed) as f64 / rate); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_eta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eta` [INFO] [stdout] --> src/progress.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | let eta = Duration::from_secs_f64((self.total_ports - *completed) as f64 / rate); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_eta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `detector` [INFO] [stdout] --> src/os_fingerprinting/tests.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let detector = OSDetector::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_detector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_port` [INFO] [stdout] --> src/stealth/packet_parser.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | target_port: u16, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_error` is assigned to, but never used [INFO] [stdout] --> src/stealth/scan_engines.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut last_error = None; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last_error` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_error` is never read [INFO] [stdout] --> src/stealth/scan_engines.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | last_error = Some(e); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_signature` is never used [INFO] [stdout] --> src/os_fingerprinting/signatures.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl OSSignatureDatabase { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_signature(&mut self, signature: OSSignature) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize_os_name` is never used [INFO] [stdout] --> src/os_fingerprinting/utils.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | pub(crate) fn normalize_os_name(os_name: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_target` is never read [INFO] [stdout] --> src/progress.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct ScanProgress { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | current_target: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_ip` is never read [INFO] [stdout] --> src/stealth/packet_parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TcpPacketParser { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 6 | target_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_ip` is never read [INFO] [stdout] --> src/stealth/packet_parser.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct IcmpPacketParser { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 173 | target_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connector` [INFO] [stdout] --> src/stealth/network.rs:463:13 [INFO] [stdout] | [INFO] [stdout] 463 | let connector = TcpConnector::new(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_port` [INFO] [stdout] --> src/stealth/packet_parser.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | target_port: u16, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_error` is assigned to, but never used [INFO] [stdout] --> src/stealth/scan_engines.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut last_error = None; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last_error` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_error` is never read [INFO] [stdout] --> src/stealth/scan_engines.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | last_error = Some(e); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/stealth/mod.rs:317:14 [INFO] [stdout] | [INFO] [stdout] 317 | for (i, result) in results.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_signature` is never used [INFO] [stdout] --> src/os_fingerprinting/signatures.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl OSSignatureDatabase { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_signature(&mut self, signature: OSSignature) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `current_target` is never read [INFO] [stdout] --> src/progress.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct ScanProgress { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 37 | current_target: Arc>, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_ip` is never read [INFO] [stdout] --> src/stealth/packet_parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TcpPacketParser { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 6 | target_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_ip` is never read [INFO] [stdout] --> src/stealth/packet_parser.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct IcmpPacketParser { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 173 | target_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `merge_os_fingerprints` [INFO] [stdout] --> src/os_fingerprinting/mod.rs:14:64 [INFO] [stdout] | [INFO] [stdout] 14 | pub use utils::{is_mobile_os, is_network_device, is_server_os, merge_os_fingerprints}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/progress.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/scanner/config.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ssl::format_ssl_analysis` [INFO] [stdout] --> src/scanner/display.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ssl::format_ssl_analysis; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/scanner/display.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/scanner/display.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/scanner/display.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::service_detection::ServiceInfo` [INFO] [stdout] --> src/scanner/risk_assessment.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service_detection::ServiceInfo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ScanConfig` and `ScanType` [INFO] [stdout] --> src/scanner/mod.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | pub use config::{Protocol, ScanConfig, ScanType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ScanSummary` [INFO] [stdout] --> src/scanner/mod.rs:11:56 [INFO] [stdout] | [INFO] [stdout] 11 | pub use scan_results::{CompleteScanResult, ScanResult, ScanSummary}; // Priority'yi de re-export et [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsRawFd` [INFO] [stdout] --> src/stealth/network.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::io::{AsRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/stealth/packet_builder.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ipv4Addr` and `Ipv6Addr` [INFO] [stdout] --> src/stealth/packet_parser.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NetworkUtils`, `PacketBuilder`, and `PacketParser` [INFO] [stdout] --> src/stealth/mod.rs:251:18 [INFO] [stdout] | [INFO] [stdout] 251 | pub use traits::{NetworkUtils, PacketBuilder, PacketParser, ScanEngineFactory}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InteractiveScanner` [INFO] [stdout] --> src/main.rs:15:40 [INFO] [stdout] | [INFO] [stdout] 15 | show_completion_celebration, Args, InteractiveScanner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `udp::UdpScanner` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use udp::UdpScanner; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `merge_os_fingerprints` [INFO] [stdout] --> src/os_fingerprinting/mod.rs:14:64 [INFO] [stdout] | [INFO] [stdout] 14 | pub use utils::{is_mobile_os, is_network_device, is_server_os, merge_os_fingerprints}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/progress.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/scanner/config.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ssl::format_ssl_analysis` [INFO] [stdout] --> src/scanner/display.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ssl::format_ssl_analysis; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/scanner/display.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/scanner/display.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Instant` [INFO] [stdout] --> src/scanner/display.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::time::Instant; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::service_detection::ServiceInfo` [INFO] [stdout] --> src/scanner/risk_assessment.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::service_detection::ServiceInfo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ScanConfig` and `ScanType` [INFO] [stdout] --> src/scanner/mod.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | pub use config::{Protocol, ScanConfig, ScanType}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ScanSummary` [INFO] [stdout] --> src/scanner/mod.rs:11:56 [INFO] [stdout] | [INFO] [stdout] 11 | pub use scan_results::{CompleteScanResult, ScanResult, ScanSummary}; // Priority'yi de re-export et [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsRawFd` [INFO] [stdout] --> src/stealth/network.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | use std::os::unix::io::{AsRawFd, RawFd}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/stealth/packet_builder.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Ipv4Addr` and `Ipv6Addr` [INFO] [stdout] --> src/stealth/packet_parser.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::net::{IpAddr, Ipv4Addr, Ipv6Addr}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NetworkUtils`, `PacketBuilder`, and `PacketParser` [INFO] [stdout] --> src/stealth/mod.rs:251:18 [INFO] [stdout] | [INFO] [stdout] 251 | pub use traits::{NetworkUtils, PacketBuilder, PacketParser, ScanEngineFactory}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `InteractiveScanner` [INFO] [stdout] --> src/main.rs:15:40 [INFO] [stdout] | [INFO] [stdout] 15 | show_completion_celebration, Args, InteractiveScanner, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `udp::UdpScanner` [INFO] [stdout] --> src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use udp::UdpScanner; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eta` [INFO] [stdout] --> src/progress.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | let eta = Duration::from_secs_f64((self.total_ports - *completed) as f64 / rate); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_eta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `eta` [INFO] [stdout] --> src/progress.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | let eta = Duration::from_secs_f64((self.total_ports - *completed) as f64 / rate); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_eta` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/main.rs:519:19 [INFO] [stdout] | [INFO] [stdout] 519 | if let Ok(ip) = inner.parse::() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip` [INFO] [stdout] --> src/main.rs:519:19 [INFO] [stdout] | [INFO] [stdout] 519 | if let Ok(ip) = inner.parse::() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ip` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `udp_results` [INFO] [stdout] --> src/scanner/display.rs:692:5 [INFO] [stdout] | [INFO] [stdout] 692 | udp_results: &[&ScanResult], [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_udp_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/scanner/display.rs:693:5 [INFO] [stdout] | [INFO] [stdout] 693 | config: &ScanConfig, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `detector` [INFO] [stdout] --> src/os_fingerprinting/tests.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let detector = OSDetector::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_detector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `udp_results` [INFO] [stdout] --> src/scanner/display.rs:692:5 [INFO] [stdout] | [INFO] [stdout] 692 | udp_results: &[&ScanResult], [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_udp_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/scanner/display.rs:693:5 [INFO] [stdout] | [INFO] [stdout] 693 | config: &ScanConfig, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `framework` [INFO] [stdout] --> src/scanner/risk_assessment.rs:1076:21 [INFO] [stdout] | [INFO] [stdout] 1076 | if let Some(framework) = self.compliance_frameworks.get("PCI_DSS") { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_framework` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ssl_analysis` [INFO] [stdout] --> src/scanner/risk_assessment.rs:1155:9 [INFO] [stdout] | [INFO] [stdout] 1155 | ssl_analysis: &[SslAnalysisResult], [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssl_analysis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple ranges are one apart [INFO] [stdout] --> src/scanner/risk_assessment.rs:1226:25 [INFO] [stdout] | [INFO] [stdout] 1225 | 60..79 => Severity::High, [INFO] [stdout] | ------ this could appear to continue range `40_u8..59_u8`, but `59_u8` isn't matched by either of them [INFO] [stdout] 1226 | 40..59 => Severity::Medium, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this range doesn't match `59_u8` because `..` is an exclusive range [INFO] [stdout] | help: use an inclusive range instead: `40_u8..=59_u8` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_contiguous_range_endpoints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple ranges are one apart [INFO] [stdout] --> src/scanner/risk_assessment.rs:1225:25 [INFO] [stdout] | [INFO] [stdout] 1224 | 80.. => Severity::Critical, [INFO] [stdout] | ---- this could appear to continue range `60_u8..79_u8`, but `79_u8` isn't matched by either of them [INFO] [stdout] 1225 | 60..79 => Severity::High, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this range doesn't match `79_u8` because `..` is an exclusive range [INFO] [stdout] | help: use an inclusive range instead: `60_u8..=79_u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `os_fingerprint` [INFO] [stdout] --> src/scanner/risk_assessment.rs:1291:9 [INFO] [stdout] | [INFO] [stdout] 1291 | os_fingerprint: &Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_os_fingerprint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `framework` [INFO] [stdout] --> src/scanner/risk_assessment.rs:1076:21 [INFO] [stdout] | [INFO] [stdout] 1076 | if let Some(framework) = self.compliance_frameworks.get("PCI_DSS") { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_framework` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ssl_analysis` [INFO] [stdout] --> src/scanner/risk_assessment.rs:1155:9 [INFO] [stdout] | [INFO] [stdout] 1155 | ssl_analysis: &[SslAnalysisResult], [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ssl_analysis` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple ranges are one apart [INFO] [stdout] --> src/scanner/risk_assessment.rs:1226:25 [INFO] [stdout] | [INFO] [stdout] 1225 | 60..79 => Severity::High, [INFO] [stdout] | ------ this could appear to continue range `40_u8..59_u8`, but `59_u8` isn't matched by either of them [INFO] [stdout] 1226 | 40..59 => Severity::Medium, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this range doesn't match `59_u8` because `..` is an exclusive range [INFO] [stdout] | help: use an inclusive range instead: `40_u8..=59_u8` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_contiguous_range_endpoints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple ranges are one apart [INFO] [stdout] --> src/scanner/risk_assessment.rs:1225:25 [INFO] [stdout] | [INFO] [stdout] 1224 | 80.. => Severity::Critical, [INFO] [stdout] | ---- this could appear to continue range `60_u8..79_u8`, but `79_u8` isn't matched by either of them [INFO] [stdout] 1225 | 60..79 => Severity::High, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this range doesn't match `79_u8` because `..` is an exclusive range [INFO] [stdout] | help: use an inclusive range instead: `60_u8..=79_u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `os_fingerprint` [INFO] [stdout] --> src/scanner/risk_assessment.rs:1291:9 [INFO] [stdout] | [INFO] [stdout] 1291 | os_fingerprint: &Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_os_fingerprint` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_port` [INFO] [stdout] --> src/stealth/packet_parser.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | target_port: u16, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_error` is assigned to, but never used [INFO] [stdout] --> src/stealth/scan_engines.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut last_error = None; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last_error` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_error` is never read [INFO] [stdout] --> src/stealth/scan_engines.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | last_error = Some(e); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `connector` [INFO] [stdout] --> src/stealth/network.rs:463:13 [INFO] [stdout] | [INFO] [stdout] 463 | let connector = TcpConnector::new(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_connector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_port` [INFO] [stdout] --> src/stealth/packet_parser.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | target_port: u16, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `last_error` is assigned to, but never used [INFO] [stdout] --> src/stealth/scan_engines.rs:75:17 [INFO] [stdout] | [INFO] [stdout] 75 | let mut last_error = None; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_last_error` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `last_error` is never read [INFO] [stdout] --> src/stealth/scan_engines.rs:97:21 [INFO] [stdout] | [INFO] [stdout] 97 | last_error = Some(e); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `feature_showcase` is never used [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn feature_showcase() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_scan_progress` is never used [INFO] [stdout] --> src/main.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn print_scan_progress(current: usize, total: usize, target: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_scan_tips` is never used [INFO] [stdout] --> src/main.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn print_scan_tips() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_scan_summary_header` is never used [INFO] [stdout] --> src/main.rs:376:4 [INFO] [stdout] | [INFO] [stdout] 376 | fn print_scan_summary_header(target: &str, ports: &str, protocol: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_and_resolve_target` is never used [INFO] [stdout] --> src/main.rs:505:10 [INFO] [stdout] | [INFO] [stdout] 505 | async fn validate_and_resolve_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_ipv6_target` is never used [INFO] [stdout] --> src/main.rs:563:4 [INFO] [stdout] | [INFO] [stdout] 563 | fn is_ipv6_target(target: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize_ipv6_display` is never used [INFO] [stdout] --> src/main.rs:567:4 [INFO] [stdout] | [INFO] [stdout] 567 | fn normalize_ipv6_display(addr: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_root` is never used [INFO] [stdout] --> src/main.rs:630:4 [INFO] [stdout] | [INFO] [stdout] 630 | fn is_root() -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_version`, `add_detail`, and `is_high_confidence` are never used [INFO] [stdout] --> src/os_fingerprinting/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl OSFingerprint { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn with_version(mut self, version: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn add_detail(&mut self, detail: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn is_high_confidence(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tcp_flags_response`, `icmp_response`, and `sequence_predictability` are never read [INFO] [stdout] --> src/os_fingerprinting/characteristics.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct NetworkCharacteristics { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | pub tcp_flags_response: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub icmp_response: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub closed_port_response: Option, [INFO] [stdout] 10 | pub sequence_predictability: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkCharacteristics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tcp_options_patterns` and `common_flags` are never read [INFO] [stdout] --> src/os_fingerprinting/characteristics.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct OSSignature { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | pub tcp_options_patterns: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 100 | pub sequence_predictability_range: (f64, f64), [INFO] [stdout] 101 | pub common_flags: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OSSignature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_signature` is never used [INFO] [stdout] --> src/os_fingerprinting/signatures.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl OSSignatureDatabase { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_signature(&mut self, signature: OSSignature) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_os_fingerprints` is never used [INFO] [stdout] --> src/os_fingerprinting/utils.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn merge_os_fingerprints(fingerprints: &[OSFingerprint]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize_os_name` is never used [INFO] [stdout] --> src/os_fingerprinting/utils.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | pub(crate) fn normalize_os_name(os_name: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScanProgress` is never constructed [INFO] [stdout] --> src/progress.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct ScanProgress { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/progress.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl ScanProgress { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 45 | pub fn new(total_ports: usize, target: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn create_tcp_bar(&self, tcp_port_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub async fn create_udp_bar(&self, udp_port_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn create_ssl_bar(&self, ssl_port_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub async fn create_os_bar(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub async fn update_tcp_progress(&self, completed: u64, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub async fn update_udp_progress(&self, completed: u64, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub async fn update_ssl_progress(&self, completed: u64, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn update_os_progress(&self, percent: u64, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub async fn increment_main(&self, port: u16, is_open: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub async fn finish_tcp(&self, open_count: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub async fn finish_udp(&self, open_count: usize, open_filtered_count: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub async fn finish_ssl(&self, analyzed_count: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub async fn finish_os(&self, confidence: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub async fn finish_all(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub fn get_multi_progress(&self) -> Arc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InteractiveScanner` is never constructed [INFO] [stdout] --> src/progress.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 245 | pub struct InteractiveScanner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OutputFormat` is never used [INFO] [stdout] --> src/progress.rs:264:10 [INFO] [stdout] | [INFO] [stdout] 264 | pub enum OutputFormat { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `interactive_setup`, `get_top_ports`, `get_enabled_features`, and `to_args` are never used [INFO] [stdout] --> src/progress.rs:271:12 [INFO] [stdout] | [INFO] [stdout] 270 | impl InteractiveScanner { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 271 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn interactive_setup(&mut self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | fn get_top_ports(&self, count: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 485 | fn get_enabled_features(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 520 | pub fn to_args(&self) -> Args { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vulnerability_database` is never read [INFO] [stdout] --> src/scanner/risk_assessment.rs:263:5 [INFO] [stdout] | [INFO] [stdout] 261 | pub struct RiskAssessmentEngine { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 262 | port_risk_database: HashMap, [INFO] [stdout] 263 | vulnerability_database: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mitigation_difficulty` is never read [INFO] [stdout] --> src/scanner/risk_assessment.rs:272:5 [INFO] [stdout] | [INFO] [stdout] 268 | struct PortRiskProfile { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 272 | mitigation_difficulty: ImplementationEffort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortRiskProfile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cvss_score`, `exploit_complexity`, `common_exploits`, and `detection_signatures` are never read [INFO] [stdout] --> src/scanner/risk_assessment.rs:277:5 [INFO] [stdout] | [INFO] [stdout] 276 | struct VulnerabilityProfile { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 277 | cvss_score: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 278 | exploit_complexity: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 279 | common_exploits: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 280 | detection_signatures: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VulnerabilityProfile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `controls`, and `criticality_weights` are never read [INFO] [stdout] --> src/scanner/risk_assessment.rs:285:5 [INFO] [stdout] | [INFO] [stdout] 284 | struct ComplianceFramework { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 285 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 286 | controls: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 287 | criticality_weights: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComplianceFramework` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `control_id`, `requirement`, `validation_rules`, and `severity_if_failed` are never read [INFO] [stdout] --> src/scanner/risk_assessment.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 291 | struct ComplianceControl { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 292 | control_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 293 | requirement: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 294 | validation_rules: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 295 | severity_if_failed: Severity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComplianceControl` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_stealth_scanner_with_fallback` is never used [INFO] [stdout] --> src/scanner/scan_engine.rs:275:14 [INFO] [stdout] | [INFO] [stdout] 275 | pub async fn create_stealth_scanner_with_fallback( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `ssl_ports` are never read [INFO] [stdout] --> src/service_detection.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct ServiceProbe { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 23 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub ssl_ports: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceProbe` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_ssl_analysis` is never used [INFO] [stdout] --> src/ssl.rs:726:8 [INFO] [stdout] | [INFO] [stdout] 726 | pub fn format_ssl_analysis(analysis: &SslAnalysisResult) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `config` is never read [INFO] [stdout] --> src/stealth/mod.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct StealthScanner { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 61 | config: ScanConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/stealth/mod.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl StealthScanner { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn with_factory( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn scan_ports( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn scan_ports_concurrent( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | async fn scan_ports_sequential( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn get_technique(&self) -> ScanTechnique { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn requires_privileges(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn target(&self) -> IpAddr { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn config(&self) -> &ScanConfig { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `requires_privileges` is never used [INFO] [stdout] --> src/stealth/network.rs:435:8 [INFO] [stdout] | [INFO] [stdout] 435 | pub fn requires_privileges() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `total_length` is never read [INFO] [stdout] --> src/stealth/packet_builder.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TcpPacket { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 8 | pub data: Vec, [INFO] [stdout] 9 | pub total_length: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TcpPacket` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_ip` is never read [INFO] [stdout] --> src/stealth/packet_parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TcpPacketParser { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 6 | target_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IcmpPacketParser` is never constructed [INFO] [stdout] --> src/stealth/packet_parser.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct IcmpPacketParser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `parse_icmp_unreachable` are never used [INFO] [stdout] --> src/stealth/packet_parser.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl IcmpPacketParser { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 177 | pub fn new(target_ip: IpAddr) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | fn parse_icmp_unreachable( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `scan_ports`, `get_technique`, and `is_privileged` are never used [INFO] [stdout] --> src/stealth/traits.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait ScanEngine: Send + Sync + std::fmt::Debug { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | async fn scan_ports( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn get_technique(&self) -> ScanTechnique; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 27 | fn is_privileged(&self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_local_ip` is never used [INFO] [stdout] --> src/stealth/traits.rs:53:14 [INFO] [stdout] | [INFO] [stdout] 52 | pub trait NetworkUtils: Send + Sync { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 53 | async fn get_local_ip(&self, target: IpAddr) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create_engine`, `supported_techniques`, and `requires_privileges` are never used [INFO] [stdout] --> src/stealth/traits.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub trait ScanEngineFactory { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 78 | fn create_engine( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn supported_techniques(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 92 | fn requires_privileges(&self, technique: &ScanTechnique) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `source_port_range` and `randomize_order` are never read [INFO] [stdout] --> src/stealth/types.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct ScanConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 69 | pub source_port_range: Option<(u16, u16)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 70 | pub randomize_order: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScanConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `supported_techniques` is never used [INFO] [stdout] --> src/stealth/mod.rs:192:12 [INFO] [stdout] | [INFO] [stdout] 192 | pub fn supported_techniques() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `requires_privileges` is never used [INFO] [stdout] --> src/stealth/mod.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | pub fn requires_privileges(technique: &ScanTechnique) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_platform_supported` is never used [INFO] [stdout] --> src/stealth/mod.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn is_platform_supported() -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_privileges` is never used [INFO] [stdout] --> src/stealth/mod.rs:209:12 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn validate_privileges() -> Result<(), StealthScanError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_basic_config` is never used [INFO] [stdout] --> src/stealth/mod.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn create_basic_config(technique: ScanTechnique) -> ScanConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_aggressive_config` is never used [INFO] [stdout] --> src/stealth/mod.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn create_aggressive_config(technique: ScanTechnique) -> ScanConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_stealth_config` is never used [INFO] [stdout] --> src/stealth/mod.rs:236:12 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn create_stealth_config(technique: ScanTechnique) -> ScanConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_common_udp_ports` is never used [INFO] [stdout] --> src/udp.rs:356:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl UdpScanner { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 356 | pub fn get_common_udp_ports() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/stealth/mod.rs:317:14 [INFO] [stdout] | [INFO] [stdout] 317 | for (i, result) in results.iter().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `feature_showcase` is never used [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn feature_showcase() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_scan_progress` is never used [INFO] [stdout] --> src/main.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn print_scan_progress(current: usize, total: usize, target: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_scan_tips` is never used [INFO] [stdout] --> src/main.rs:330:4 [INFO] [stdout] | [INFO] [stdout] 330 | fn print_scan_tips() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_scan_summary_header` is never used [INFO] [stdout] --> src/main.rs:376:4 [INFO] [stdout] | [INFO] [stdout] 376 | fn print_scan_summary_header(target: &str, ports: &str, protocol: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_and_resolve_target` is never used [INFO] [stdout] --> src/main.rs:505:10 [INFO] [stdout] | [INFO] [stdout] 505 | async fn validate_and_resolve_target( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_ipv6_target` is never used [INFO] [stdout] --> src/main.rs:563:4 [INFO] [stdout] | [INFO] [stdout] 563 | fn is_ipv6_target(target: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `normalize_ipv6_display` is never used [INFO] [stdout] --> src/main.rs:567:4 [INFO] [stdout] | [INFO] [stdout] 567 | fn normalize_ipv6_display(addr: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_root` is never used [INFO] [stdout] --> src/main.rs:630:4 [INFO] [stdout] | [INFO] [stdout] 630 | fn is_root() -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_detail` is never used [INFO] [stdout] --> src/os_fingerprinting/mod.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl OSFingerprint { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn add_detail(&mut self, detail: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `icmp_response` and `sequence_predictability` are never read [INFO] [stdout] --> src/os_fingerprinting/characteristics.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct NetworkCharacteristics { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub icmp_response: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub closed_port_response: Option, [INFO] [stdout] 10 | pub sequence_predictability: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NetworkCharacteristics` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tcp_options_patterns` and `common_flags` are never read [INFO] [stdout] --> src/os_fingerprinting/characteristics.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 93 | pub struct OSSignature { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 99 | pub tcp_options_patterns: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 100 | pub sequence_predictability_range: (f64, f64), [INFO] [stdout] 101 | pub common_flags: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OSSignature` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_signature` is never used [INFO] [stdout] --> src/os_fingerprinting/signatures.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl OSSignatureDatabase { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn add_signature(&mut self, signature: OSSignature) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ScanProgress` is never constructed [INFO] [stdout] --> src/progress.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct ScanProgress { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/progress.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl ScanProgress { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 45 | pub fn new(total_ports: usize, target: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn create_tcp_bar(&self, tcp_port_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub async fn create_udp_bar(&self, udp_port_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn create_ssl_bar(&self, ssl_port_count: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub async fn create_os_bar(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub async fn update_tcp_progress(&self, completed: u64, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub async fn update_udp_progress(&self, completed: u64, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub async fn update_ssl_progress(&self, completed: u64, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub async fn update_os_progress(&self, percent: u64, message: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub async fn increment_main(&self, port: u16, is_open: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub async fn finish_tcp(&self, open_count: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub async fn finish_udp(&self, open_count: usize, open_filtered_count: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | pub async fn finish_ssl(&self, analyzed_count: usize) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | pub async fn finish_os(&self, confidence: u8) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub async fn finish_all(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub fn get_multi_progress(&self) -> Arc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InteractiveScanner` is never constructed [INFO] [stdout] --> src/progress.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 245 | pub struct InteractiveScanner { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OutputFormat` is never used [INFO] [stdout] --> src/progress.rs:264:10 [INFO] [stdout] | [INFO] [stdout] 264 | pub enum OutputFormat { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `interactive_setup`, `get_top_ports`, `get_enabled_features`, and `to_args` are never used [INFO] [stdout] --> src/progress.rs:271:12 [INFO] [stdout] | [INFO] [stdout] 270 | impl InteractiveScanner { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 271 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn interactive_setup(&mut self) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | fn get_top_ports(&self, count: usize) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 485 | fn get_enabled_features(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 520 | pub fn to_args(&self) -> Args { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `vulnerability_database` is never read [INFO] [stdout] --> src/scanner/risk_assessment.rs:263:5 [INFO] [stdout] | [INFO] [stdout] 261 | pub struct RiskAssessmentEngine { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] 262 | port_risk_database: HashMap, [INFO] [stdout] 263 | vulnerability_database: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `mitigation_difficulty` is never read [INFO] [stdout] --> src/scanner/risk_assessment.rs:272:5 [INFO] [stdout] | [INFO] [stdout] 268 | struct PortRiskProfile { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 272 | mitigation_difficulty: ImplementationEffort, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortRiskProfile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `cvss_score`, `exploit_complexity`, `common_exploits`, and `detection_signatures` are never read [INFO] [stdout] --> src/scanner/risk_assessment.rs:277:5 [INFO] [stdout] | [INFO] [stdout] 276 | struct VulnerabilityProfile { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 277 | cvss_score: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 278 | exploit_complexity: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 279 | common_exploits: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 280 | detection_signatures: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VulnerabilityProfile` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `controls`, and `criticality_weights` are never read [INFO] [stdout] --> src/scanner/risk_assessment.rs:285:5 [INFO] [stdout] | [INFO] [stdout] 284 | struct ComplianceFramework { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 285 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 286 | controls: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 287 | criticality_weights: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComplianceFramework` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `control_id`, `requirement`, `validation_rules`, and `severity_if_failed` are never read [INFO] [stdout] --> src/scanner/risk_assessment.rs:292:5 [INFO] [stdout] | [INFO] [stdout] 291 | struct ComplianceControl { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 292 | control_id: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 293 | requirement: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 294 | validation_rules: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 295 | severity_if_failed: Severity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComplianceControl` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `ssl_ports` are never read [INFO] [stdout] --> src/service_detection.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct ServiceProbe { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 23 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub ssl_ports: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceProbe` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_factory` and `config` are never used [INFO] [stdout] --> src/stealth/mod.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl StealthScanner { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn with_factory( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn config(&self) -> &ScanConfig { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_receive_error` is never used [INFO] [stdout] --> src/stealth/network.rs:390:12 [INFO] [stdout] | [INFO] [stdout] 373 | impl MockNetworkUtils { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 390 | pub fn set_receive_error(&mut self, error: StealthScanError) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `total_length` is never read [INFO] [stdout] --> src/stealth/packet_builder.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TcpPacket { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 8 | pub data: Vec, [INFO] [stdout] 9 | pub total_length: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TcpPacket` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_ip` is never read [INFO] [stdout] --> src/stealth/packet_parser.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TcpPacketParser { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 6 | target_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `target_ip` is never read [INFO] [stdout] --> src/stealth/packet_parser.rs:173:5 [INFO] [stdout] | [INFO] [stdout] 172 | pub struct IcmpPacketParser { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 173 | target_ip: IpAddr, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scan_ports` is never used [INFO] [stdout] --> src/stealth/traits.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait ScanEngine: Send + Sync + std::fmt::Debug { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | async fn scan_ports( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `source_port_range` is never read [INFO] [stdout] --> src/stealth/types.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct ScanConfig { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 69 | pub source_port_range: Option<(u16, u16)>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ScanConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.82s [INFO] running `Command { std: "docker" "inspect" "dd2a488b87c4592ec9ba3a6071b34b99457070294825ba3bc145321c5a612b28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd2a488b87c4592ec9ba3a6071b34b99457070294825ba3bc145321c5a612b28", kill_on_drop: false }` [INFO] [stdout] dd2a488b87c4592ec9ba3a6071b34b99457070294825ba3bc145321c5a612b28