[INFO] cloning repository https://github.com/mssky9527/Rscan [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mssky9527/Rscan" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmssky9527%2FRscan", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmssky9527%2FRscan'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 22bd8b222c360c7ea0bfbb0b62ede774d3bf9563 [INFO] checking mssky9527/Rscan against master#ca77504943887037504c7fc0b9bf06dab3910373 for pr-145181 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmssky9527%2FRscan" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mssky9527/Rscan [INFO] finished tweaking git repo https://github.com/mssky9527/Rscan [INFO] tweaked toml for git repo https://github.com/mssky9527/Rscan written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mssky9527/Rscan on toolchain ca77504943887037504c7fc0b9bf06dab3910373 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ca77504943887037504c7fc0b9bf06dab3910373" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mssky9527/Rscan 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" "+ca77504943887037504c7fc0b9bf06dab3910373" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cidr-utils v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+ca77504943887037504c7fc0b9bf06dab3910373" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4ce268d11ef47067652189377aff4ed5c4f645fbf61e0cb191e3cb2e5d659ff2 [INFO] running `Command { std: "docker" "start" "-a" "4ce268d11ef47067652189377aff4ed5c4f645fbf61e0cb191e3cb2e5d659ff2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4ce268d11ef47067652189377aff4ed5c4f645fbf61e0cb191e3cb2e5d659ff2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ce268d11ef47067652189377aff4ed5c4f645fbf61e0cb191e3cb2e5d659ff2", kill_on_drop: false }` [INFO] [stdout] 4ce268d11ef47067652189377aff4ed5c4f645fbf61e0cb191e3cb2e5d659ff2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:ae6f63d130afcfff7f91f5ba9fdb2a74d52830289c6a2ea2d23a94dcfb480a0d" "/opt/rustwide/cargo-home/bin/cargo" "+ca77504943887037504c7fc0b9bf06dab3910373" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 15c722eae258f5ed3426d083cb2f15e427ef49ba50fa090b3b4ced6710e3b687 [INFO] running `Command { std: "docker" "start" "-a" "15c722eae258f5ed3426d083cb2f15e427ef49ba50fa090b3b4ced6710e3b687", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling syn v2.0.103 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking litemap v0.8.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking tinyvec v1.9.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Checking dlv-list v0.3.0 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Checking ordered-multimap v0.4.3 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking winnow v0.5.40 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking clap_builder v4.5.40 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking rust-ini v0.18.0 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking pathdiff v0.2.3 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Checking resolv-conf v0.7.4 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking cidr v0.2.3 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking dirs v5.0.1 [INFO] [stderr] Checking colored v2.2.0 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking cidr-utils v0.6.1 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling metrics-macros v0.7.1 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Checking metrics v0.21.1 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking h2 v0.4.10 [INFO] [stderr] Checking clap v4.5.40 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking ron v0.7.1 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking trust-dns-proto v0.23.2 [INFO] [stderr] Checking config v0.13.4 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking trust-dns-resolver v0.23.2 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.20 [INFO] [stderr] Checking rscan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/scanner/web.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{Result, anyhow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ipv4Addr` [INFO] [stdout] --> src/scanner/network.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/scanner/network.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/scanner/network.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::stream::{self, StreamExt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/scanner/mod.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PortState`, `Protocol`, and `ServiceInfo` [INFO] [stdout] --> src/scanner/mod.rs:10:75 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::core::{ScanResult, ScanStatus, ScanType, ScanMetadata, Target, ServiceInfo, Protocol, PortState}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/subdomain.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Result, anyhow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/subdomain.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/vuln.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{Result, anyhow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/scanner/web.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{Result, anyhow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ipv4Addr` [INFO] [stdout] --> src/scanner/network.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/scanner/network.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/scanner/network.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::stream::{self, StreamExt}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/scanner/mod.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | use log::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PortState`, `Protocol`, and `ServiceInfo` [INFO] [stdout] --> src/scanner/mod.rs:10:75 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::core::{ScanResult, ScanStatus, ScanType, ScanMetadata, Target, ServiceInfo, Protocol, PortState}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/subdomain.rs:1:22 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{Result, anyhow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/subdomain.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/vuln.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow::{Result, anyhow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> src/scanner/network.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::stream::{self, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> src/scanner/network.rs:6:29 [INFO] [stdout] | [INFO] [stdout] 6 | use futures::stream::{self, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_error` is never used [INFO] [stdout] --> src/core/result.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl ScanResults { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn add_error(&mut self, target: String, error_type: ErrorType, message: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/core/target.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Target { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 39 | /// 从字符串解析目标 [INFO] [stdout] 40 | pub fn parse(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn parse_file(path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn parse_cidr(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn parse_range(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn parse_url(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn parse_ip(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn parse_domain(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn default_ports() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn expand_ips(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn get_ports(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn description(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_state`, `with_banner`, `with_service`, and `is_http_like` are never used [INFO] [stdout] --> src/core/service.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl ServiceInfo { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn with_state(mut self, state: PortState) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn with_banner(mut self, banner: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn with_service(mut self, service: ServiceDetails) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn is_http_like(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WafDetector` is never constructed [INFO] [stdout] --> src/detectors.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct WafDetector { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CdnDetector` is never constructed [INFO] [stdout] --> src/detectors.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CdnDetector { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OsDetector` is never constructed [INFO] [stdout] --> src/detectors.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct OsDetector { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WafResult` is never constructed [INFO] [stdout] --> src/detectors.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct WafResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CdnResult` is never constructed [INFO] [stdout] --> src/detectors.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CdnResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OsResult` is never constructed [INFO] [stdout] --> src/detectors.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct OsResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_timeout`, `detect`, and `test_waf_triggers` are never used [INFO] [stdout] --> src/detectors.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl WafDetector { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 59 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn with_timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub async fn detect(&self, target: &str, port: u16) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub async fn test_waf_triggers(&self, target: &str, port: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_timeout`, `detect`, and `detect_by_multi_ip` are never used [INFO] [stdout] --> src/detectors.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 246 | impl CdnDetector { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 247 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | pub fn with_timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub async fn detect(&self, target: &str, port: u16) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 342 | pub async fn detect_by_multi_ip(&self, domain: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_timeout`, `detect_by_ttl`, `detect_by_http`, and `detect` are never used [INFO] [stdout] --> src/detectors.rs:394:12 [INFO] [stdout] | [INFO] [stdout] 393 | impl OsDetector { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 394 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | pub fn with_timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 423 | pub async fn detect_by_ttl(&self, ip: IpAddr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | pub async fn detect_by_http(&self, target: &str, port: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 555 | pub async fn detect(&self, target: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fingerprint_engine` is never read [INFO] [stdout] --> src/engine.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ScanEngine { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 15 | config: Config, [INFO] [stdout] 16 | fingerprint_engine: FingerprintEngine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/engine.rs:369:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl ScanEngine { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 369 | pub async fn execute(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cpe` is never read [INFO] [stdout] --> src/fingerprint/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct DetectionResult { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub cpe: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DetectionResult` 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 `product_name`, `match_type`, `pattern`, and `compiled_regex` are never read [INFO] [stdout] --> src/fingerprint/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ExternalFingerprint { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 39 | pub product_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 40 | pub match_type: String, // "Body", "Header", "Title", etc. [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 41 | pub pattern: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 42 | pub compiled_regex: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExternalFingerprint` 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: methods `detect_service_enhanced`, `generic_port_detection`, `extract_title`, and `get_probe_for_port` are never used [INFO] [stdout] --> src/fingerprint/mod.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl ProtocolDetector { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn detect_service_enhanced(&self, port: u16, banner: &str, body: &str, headers: &HashMap) -> Result Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | fn extract_title(&self, body: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn get_probe_for_port(&self, port: u16) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SmbScanner` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:483:12 [INFO] [stdout] | [INFO] [stdout] 483 | pub struct SmbScanner; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `scan_smb` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:486:18 [INFO] [stdout] | [INFO] [stdout] 485 | impl SmbScanner { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 486 | pub async fn scan_smb(target: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SmbInfo` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:665:12 [INFO] [stdout] | [INFO] [stdout] 665 | pub struct SmbInfo { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WmiScanner` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:675:12 [INFO] [stdout] | [INFO] [stdout] 675 | pub struct WmiScanner; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `scan_wmi` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:678:18 [INFO] [stdout] | [INFO] [stdout] 677 | impl WmiScanner { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 678 | pub async fn scan_wmi(target: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WmiInfo` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:757:12 [INFO] [stdout] | [INFO] [stdout] 757 | pub struct WmiInfo { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SnmpScanner` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:764:12 [INFO] [stdout] | [INFO] [stdout] 764 | pub struct SnmpScanner; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `scan_snmp` and `extract_snmp_description` are never used [INFO] [stdout] --> src/fingerprint/mod.rs:767:18 [INFO] [stdout] | [INFO] [stdout] 766 | impl SnmpScanner { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 767 | pub async fn scan_snmp(target: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 873 | fn extract_snmp_description(data: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SnmpInfo` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:889:12 [INFO] [stdout] | [INFO] [stdout] 889 | pub struct SnmpInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetBiosScanner` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:896:12 [INFO] [stdout] | [INFO] [stdout] 896 | pub struct NetBiosScanner; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `scan_netbios`, `parse_netbios_response`, and `enumerate_shares` are never used [INFO] [stdout] --> src/fingerprint/mod.rs:899:18 [INFO] [stdout] | [INFO] [stdout] 898 | impl NetBiosScanner { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 899 | pub async fn scan_netbios(target: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 965 | fn parse_netbios_response(data: &[u8], info: &mut NetBiosInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1013 | async fn enumerate_shares(target: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetBiosInfo` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:1045:12 [INFO] [stdout] | [INFO] [stdout] 1045 | pub struct NetBiosInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_specialized_info` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:1099:18 [INFO] [stdout] | [INFO] [stdout] 1057 | impl FingerprintEngine { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1099 | pub async fn get_specialized_info(&self, target: &str, port: u16) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SpecializedInfo` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:1129:10 [INFO] [stdout] | [INFO] [stdout] 1129 | pub enum SpecializedInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsResolver` is never constructed [INFO] [stdout] --> src/network.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct DnsResolver { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkDiscovery` is never constructed [INFO] [stdout] --> src/network.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct NetworkDiscovery { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HostDiscoveryResult` is never constructed [INFO] [stdout] --> src/network.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct HostDiscoveryResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_timeout`, and `reverse_lookup` are never used [INFO] [stdout] --> src/network.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl DnsResolver { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 36 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn with_timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn reverse_lookup(&self, ip: IpAddr) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/network.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl NetworkDiscovery { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 71 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn with_timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn with_max_concurrent(mut self, max_concurrent: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub async fn ping(&self, ip: IpAddr) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub async fn tcp_probe(&self, ip: IpAddr, port: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | async fn reverse_dns_lookup(&self, ip: IpAddr) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | async fn get_mac_address(&self, ip: IpAddr) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub async fn scan_network(&self, cidr: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub async fn scan_network_tcp(&self, cidr: &str, ports: &[u16]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scanner` is never constructed [INFO] [stdout] --> src/scanner/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Scanner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `scan_target` are never used [INFO] [stdout] --> src/scanner/mod.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl Scanner { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 22 | pub async fn new(config: &Config) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub async fn scan_target(&self, target: &Target) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rate_limit` and `skip_ping` are never read [INFO] [stdout] --> src/scanner/port.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct PortScanConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | pub rate_limit: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub skip_ping: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortScanConfig` 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: struct `NetworkScanConfig` is never constructed [INFO] [stdout] --> src/scanner/network.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct NetworkScanConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkScanResult` is never constructed [INFO] [stdout] --> src/scanner/network.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct NetworkScanResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HostInfo` is never constructed [INFO] [stdout] --> src/scanner/network.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct HostInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkScanMetadata` is never constructed [INFO] [stdout] --> src/scanner/network.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct NetworkScanMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkScanner` is never constructed [INFO] [stdout] --> src/scanner/network.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct NetworkScanner { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/scanner/network.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 99 | impl NetworkScanner { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 100 | pub async fn new(config: &Config) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn with_config(mut self, scan_config: NetworkScanConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn discover_hosts(&self, network: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub async fn ping_host(&self, ip: IpAddr) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub async fn scan_network(&self, network: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | async fn perform_traceroute(&self, ip: IpAddr) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn is_valid_cidr(cidr: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clone` is never used [INFO] [stdout] --> src/scanner/network.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 307 | impl NetworkDiscovery { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 308 | fn clone(&self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exploit_available` is never read [INFO] [stdout] --> src/vuln.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct VulnInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub exploit_available: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VulnInfo` 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: variants `Medium`, `Low`, and `Info` are never constructed [INFO] [stdout] --> src/vuln.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum VulnSeverity { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 30 | Medium, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | Low, [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | Info, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VulnSeverity` 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: field `max_retries` is never read [INFO] [stdout] --> src/vuln.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct VulnScanner { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 68 | timeout: Duration, [INFO] [stdout] 69 | max_retries: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scan_all_vulns` is never used [INFO] [stdout] --> src/vuln.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 73 | impl VulnScanner { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub async fn scan_all_vulns(&self, target: IpAddr, ports: &[u16]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/detectors.rs:460:35 [INFO] [stdout] | [INFO] [stdout] 460 | } else if ttl <= 255 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `add_error` is never used [INFO] [stdout] --> src/core/result.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl ScanResults { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn add_error(&mut self, target: String, error_type: ErrorType, message: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/core/target.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Target { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 39 | /// 从字符串解析目标 [INFO] [stdout] 40 | pub fn parse(input: &str) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn parse_file(path: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn parse_cidr(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | fn parse_range(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | fn parse_url(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | fn parse_ip(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | fn parse_domain(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | fn default_ports() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn expand_ips(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub fn get_ports(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn description(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_state`, `with_banner`, `with_service`, and `is_http_like` are never used [INFO] [stdout] --> src/core/service.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl ServiceInfo { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn with_state(mut self, state: PortState) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn with_banner(mut self, banner: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn with_service(mut self, service: ServiceDetails) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn is_http_like(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WafDetector` is never constructed [INFO] [stdout] --> src/detectors.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct WafDetector { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CdnDetector` is never constructed [INFO] [stdout] --> src/detectors.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CdnDetector { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OsDetector` is never constructed [INFO] [stdout] --> src/detectors.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct OsDetector { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WafResult` is never constructed [INFO] [stdout] --> src/detectors.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct WafResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CdnResult` is never constructed [INFO] [stdout] --> src/detectors.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct CdnResult { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OsResult` is never constructed [INFO] [stdout] --> src/detectors.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct OsResult { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_timeout`, `detect`, and `test_waf_triggers` are never used [INFO] [stdout] --> src/detectors.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 58 | impl WafDetector { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 59 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn with_timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub async fn detect(&self, target: &str, port: u16) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 165 | pub async fn test_waf_triggers(&self, target: &str, port: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_timeout`, `detect`, and `detect_by_multi_ip` are never used [INFO] [stdout] --> src/detectors.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 246 | impl CdnDetector { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 247 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | pub fn with_timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub async fn detect(&self, target: &str, port: u16) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 342 | pub async fn detect_by_multi_ip(&self, domain: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_timeout`, `detect_by_ttl`, `detect_by_http`, and `detect` are never used [INFO] [stdout] --> src/detectors.rs:394:12 [INFO] [stdout] | [INFO] [stdout] 393 | impl OsDetector { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 394 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | pub fn with_timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 423 | pub async fn detect_by_ttl(&self, ip: IpAddr) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 481 | pub async fn detect_by_http(&self, target: &str, port: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 555 | pub async fn detect(&self, target: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fingerprint_engine` is never read [INFO] [stdout] --> src/engine.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ScanEngine { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 15 | config: Config, [INFO] [stdout] 16 | fingerprint_engine: FingerprintEngine, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/engine.rs:369:18 [INFO] [stdout] | [INFO] [stdout] 20 | impl ScanEngine { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 369 | pub async fn execute(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cpe` is never read [INFO] [stdout] --> src/fingerprint/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct DetectionResult { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub cpe: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DetectionResult` 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 `product_name`, `match_type`, `pattern`, and `compiled_regex` are never read [INFO] [stdout] --> src/fingerprint/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct ExternalFingerprint { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 39 | pub product_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 40 | pub match_type: String, // "Body", "Header", "Title", etc. [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 41 | pub pattern: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 42 | pub compiled_regex: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ExternalFingerprint` 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: methods `detect_service_enhanced`, `generic_port_detection`, `extract_title`, and `get_probe_for_port` are never used [INFO] [stdout] --> src/fingerprint/mod.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl ProtocolDetector { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn detect_service_enhanced(&self, port: u16, banner: &str, body: &str, headers: &HashMap) -> Result Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | fn extract_title(&self, body: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn get_probe_for_port(&self, port: u16) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SmbScanner` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:483:12 [INFO] [stdout] | [INFO] [stdout] 483 | pub struct SmbScanner; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `scan_smb` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:486:18 [INFO] [stdout] | [INFO] [stdout] 485 | impl SmbScanner { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 486 | pub async fn scan_smb(target: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SmbInfo` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:665:12 [INFO] [stdout] | [INFO] [stdout] 665 | pub struct SmbInfo { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WmiScanner` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:675:12 [INFO] [stdout] | [INFO] [stdout] 675 | pub struct WmiScanner; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `scan_wmi` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:678:18 [INFO] [stdout] | [INFO] [stdout] 677 | impl WmiScanner { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 678 | pub async fn scan_wmi(target: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `WmiInfo` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:757:12 [INFO] [stdout] | [INFO] [stdout] 757 | pub struct WmiInfo { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SnmpScanner` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:764:12 [INFO] [stdout] | [INFO] [stdout] 764 | pub struct SnmpScanner; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `scan_snmp` and `extract_snmp_description` are never used [INFO] [stdout] --> src/fingerprint/mod.rs:767:18 [INFO] [stdout] | [INFO] [stdout] 766 | impl SnmpScanner { [INFO] [stdout] | ---------------- associated functions in this implementation [INFO] [stdout] 767 | pub async fn scan_snmp(target: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 873 | fn extract_snmp_description(data: &[u8]) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SnmpInfo` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:889:12 [INFO] [stdout] | [INFO] [stdout] 889 | pub struct SnmpInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetBiosScanner` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:896:12 [INFO] [stdout] | [INFO] [stdout] 896 | pub struct NetBiosScanner; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `scan_netbios`, `parse_netbios_response`, and `enumerate_shares` are never used [INFO] [stdout] --> src/fingerprint/mod.rs:899:18 [INFO] [stdout] | [INFO] [stdout] 898 | impl NetBiosScanner { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 899 | pub async fn scan_netbios(target: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 965 | fn parse_netbios_response(data: &[u8], info: &mut NetBiosInfo) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1013 | async fn enumerate_shares(target: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetBiosInfo` is never constructed [INFO] [stdout] --> src/fingerprint/mod.rs:1045:12 [INFO] [stdout] | [INFO] [stdout] 1045 | pub struct NetBiosInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_specialized_info` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:1099:18 [INFO] [stdout] | [INFO] [stdout] 1057 | impl FingerprintEngine { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1099 | pub async fn get_specialized_info(&self, target: &str, port: u16) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SpecializedInfo` is never used [INFO] [stdout] --> src/fingerprint/mod.rs:1129:10 [INFO] [stdout] | [INFO] [stdout] 1129 | pub enum SpecializedInfo { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DnsResolver` is never constructed [INFO] [stdout] --> src/network.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct DnsResolver { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkDiscovery` is never constructed [INFO] [stdout] --> src/network.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct NetworkDiscovery { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HostDiscoveryResult` is never constructed [INFO] [stdout] --> src/network.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct HostDiscoveryResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_timeout`, and `reverse_lookup` are never used [INFO] [stdout] --> src/network.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl DnsResolver { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 36 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn with_timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn reverse_lookup(&self, ip: IpAddr) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/network.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 70 | impl NetworkDiscovery { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 71 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn with_timeout(mut self, timeout: Duration) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn with_max_concurrent(mut self, max_concurrent: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub async fn ping(&self, ip: IpAddr) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub async fn tcp_probe(&self, ip: IpAddr, port: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | async fn reverse_dns_lookup(&self, ip: IpAddr) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | async fn get_mac_address(&self, ip: IpAddr) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub async fn scan_network(&self, cidr: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | pub async fn scan_network_tcp(&self, cidr: &str, ports: &[u16]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scanner` is never constructed [INFO] [stdout] --> src/scanner/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Scanner { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `scan_target` are never used [INFO] [stdout] --> src/scanner/mod.rs:22:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl Scanner { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 22 | pub async fn new(config: &Config) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub async fn scan_target(&self, target: &Target) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rate_limit` and `skip_ping` are never read [INFO] [stdout] --> src/scanner/port.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct PortScanConfig { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | pub rate_limit: u64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub skip_ping: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PortScanConfig` 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: struct `NetworkScanConfig` is never constructed [INFO] [stdout] --> src/scanner/network.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct NetworkScanConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkScanResult` is never constructed [INFO] [stdout] --> src/scanner/network.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct NetworkScanResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HostInfo` is never constructed [INFO] [stdout] --> src/scanner/network.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct HostInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkScanMetadata` is never constructed [INFO] [stdout] --> src/scanner/network.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct NetworkScanMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkScanner` is never constructed [INFO] [stdout] --> src/scanner/network.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct NetworkScanner { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/scanner/network.rs:100:18 [INFO] [stdout] | [INFO] [stdout] 99 | impl NetworkScanner { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 100 | pub async fn new(config: &Config) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn with_config(mut self, scan_config: NetworkScanConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn discover_hosts(&self, network: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub async fn ping_host(&self, ip: IpAddr) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub async fn scan_network(&self, network: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | async fn perform_traceroute(&self, ip: IpAddr) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 302 | fn is_valid_cidr(cidr: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clone` is never used [INFO] [stdout] --> src/scanner/network.rs:308:8 [INFO] [stdout] | [INFO] [stdout] 307 | impl NetworkDiscovery { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 308 | fn clone(&self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `exploit_available` is never read [INFO] [stdout] --> src/vuln.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct VulnInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub exploit_available: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VulnInfo` 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: variants `Medium`, `Low`, and `Info` are never constructed [INFO] [stdout] --> src/vuln.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum VulnSeverity { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 30 | Medium, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 31 | Low, [INFO] [stdout] | ^^^ [INFO] [stdout] 32 | Info, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VulnSeverity` 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: field `max_retries` is never read [INFO] [stdout] --> src/vuln.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct VulnScanner { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 68 | timeout: Duration, [INFO] [stdout] 69 | max_retries: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `scan_all_vulns` is never used [INFO] [stdout] --> src/vuln.rs:93:18 [INFO] [stdout] | [INFO] [stdout] 73 | impl VulnScanner { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 93 | pub async fn scan_all_vulns(&self, target: IpAddr, ports: &[u16]) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/detectors.rs:460:35 [INFO] [stdout] | [INFO] [stdout] 460 | } else if ttl <= 255 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 41s [INFO] running `Command { std: "docker" "inspect" "15c722eae258f5ed3426d083cb2f15e427ef49ba50fa090b3b4ced6710e3b687", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15c722eae258f5ed3426d083cb2f15e427ef49ba50fa090b3b4ced6710e3b687", kill_on_drop: false }` [INFO] [stdout] 15c722eae258f5ed3426d083cb2f15e427ef49ba50fa090b3b4ced6710e3b687