[INFO] cloning repository https://github.com/fdx-xdf/Rust_Beacon [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fdx-xdf/Rust_Beacon" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffdx-xdf%2FRust_Beacon", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffdx-xdf%2FRust_Beacon'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fd2d046224dd72be9d2eb4cc0f29a99975d4c28f [INFO] checking fdx-xdf/Rust_Beacon against try#fc545c6b951a304df08b327c158f92678582f435 for pr-140557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffdx-xdf%2FRust_Beacon" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fdx-xdf/Rust_Beacon on toolchain fc545c6b951a304df08b327c158f92678582f435 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fdx-xdf/Rust_Beacon [INFO] finished tweaking git repo https://github.com/fdx-xdf/Rust_Beacon [INFO] tweaked toml for git repo https://github.com/fdx-xdf/Rust_Beacon written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/fdx-xdf/Rust_Beacon 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" "+fc545c6b951a304df08b327c158f92678582f435" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking fdx-xdf/Rust_Beacon against try#fc545c6b951a304df08b327c158f92678582f435 for pr-140557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffdx-xdf%2FRust_Beacon" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fdx-xdf/Rust_Beacon on toolchain fc545c6b951a304df08b327c158f92678582f435 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fdx-xdf/Rust_Beacon [INFO] finished tweaking git repo https://github.com/fdx-xdf/Rust_Beacon [INFO] tweaked toml for git repo https://github.com/fdx-xdf/Rust_Beacon written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/fdx-xdf/Rust_Beacon 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" "+fc545c6b951a304df08b327c158f92678582f435" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded printf-compat v0.1.1 [INFO] [stderr] Downloaded hexdump v0.1.2 [INFO] [stderr] Downloaded rsa v0.7.2 [INFO] [stderr] Downloaded sysinfo v0.31.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a48e9b0c57ac52e4bf5af49f3db2cb4088385ab4676f11ed3295b9da7c16bdd [INFO] running `Command { std: "docker" "start" "-a" "4a48e9b0c57ac52e4bf5af49f3db2cb4088385ab4676f11ed3295b9da7c16bdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a48e9b0c57ac52e4bf5af49f3db2cb4088385ab4676f11ed3295b9da7c16bdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a48e9b0c57ac52e4bf5af49f3db2cb4088385ab4676f11ed3295b9da7c16bdd", kill_on_drop: false }` [INFO] [stdout] 4a48e9b0c57ac52e4bf5af49f3db2cb4088385ab4676f11ed3295b9da7c16bdd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+fc545c6b951a304df08b327c158f92678582f435" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ef9a809a233fe2c5c030378e52d8530377d0c097a749ef65d9165039f882c4c [INFO] running `Command { std: "docker" "start" "-a" "0ef9a809a233fe2c5c030378e52d8530377d0c097a749ef65d9165039f882c4c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Compiling windows_x86_64_gnu v0.52.6 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Checking unicode-bidi v0.3.17 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking pem-rfc7468 v0.6.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking hashbrown v0.15.0 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking der v0.6.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking windows-targets v0.52.6 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling cookie v0.17.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking tokio v1.41.0 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking psl-types v2.0.11 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking spki v0.6.0 [INFO] [stderr] Compiling sys-info v0.9.1 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking windows-result v0.1.2 [INFO] [stderr] Checking pkcs8 v0.9.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking publicsuffix v2.2.3 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking cstr_core v0.2.6 [INFO] [stderr] Checking pkcs1 v0.4.1 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Checking itertools v0.9.0 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking neli v0.5.3 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling beacon-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking ipnet v2.10.1 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hexdump v0.1.2 [INFO] [stderr] Checking printf-compat v0.1.1 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking windows-sys v0.59.0 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking sysinfo v0.31.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling windows-implement v0.56.0 [INFO] [stderr] Compiling windows-interface v0.56.0 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking windows-core v0.56.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking local-ip-address v0.4.9 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking windows v0.56.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking cookie_store v0.20.0 [INFO] [stderr] Checking rsa v0.7.2 [INFO] [stderr] Checking hyper v0.14.31 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/beacon/bof/../../util/encode.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:55:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:120:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/beacon/bof/../../util/encode.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:55:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:120:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::beacon::file::list_drives` [INFO] [stdout] --> src/beacon/bof/../../util/jobs.rs:4:54 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::beacon::file::{cp, download, file_browse, list_drives, mkdir, mv, rm, upload}; [INFO] [stdout] | ^^^^^^^^^^^ no `list_drives` in `beacon::file` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/beacon/file.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn list_drives(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> src/beacon/file.rs:443:7 [INFO] [stdout] | [INFO] [stdout] 443 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/beacon/proc.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::raw::HANDLE; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:55:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:120:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/util/encode.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:55:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:120:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::beacon::bof::bof_api` [INFO] [stdout] --> src/beacon/bof/mod.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::beacon::bof::bof_api::{ [INFO] [stdout] | ^^^^^^^ could not find `bof_api` in `bof` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/beacon/bof/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod bof_api; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> src/beacon/bof/mod.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::beacon::file::list_drives` [INFO] [stdout] --> src/util/jobs.rs:4:54 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::beacon::file::{cp, download, file_browse, list_drives, mkdir, mv, rm, upload}; [INFO] [stdout] | ^^^^^^^^^^^ no `list_drives` in `beacon::file` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/beacon/file.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn list_drives(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> src/beacon/file.rs:443:7 [INFO] [stdout] | [INFO] [stdout] 443 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::beacon::file::list_drives` [INFO] [stdout] --> src/beacon/bof/../../util/jobs.rs:4:54 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::beacon::file::{cp, download, file_browse, list_drives, mkdir, mv, rm, upload}; [INFO] [stdout] | ^^^^^^^^^^^ no `list_drives` in `beacon::file` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/beacon/file.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn list_drives(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> src/beacon/file.rs:443:7 [INFO] [stdout] | [INFO] [stdout] 443 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/beacon/proc.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::raw::HANDLE; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:55:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:120:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> src/util/encode.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:63:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:55:1 [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:121:9 [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> /rustc/fc545c6b951a304df08b327c158f92678582f435/library/std/src/os/mod.rs:120:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::beacon::bof::bof_api` [INFO] [stdout] --> src/beacon/bof/mod.rs:13:25 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::beacon::bof::bof_api::{ [INFO] [stdout] | ^^^^^^^ could not find `bof_api` in `bof` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/beacon/bof/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod bof_api; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> src/beacon/bof/mod.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::beacon::file::list_drives` [INFO] [stdout] --> src/util/jobs.rs:4:54 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::beacon::file::{cp, download, file_browse, list_drives, mkdir, mv, rm, upload}; [INFO] [stdout] | ^^^^^^^^^^^ no `list_drives` in `beacon::file` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/beacon/file.rs:444:8 [INFO] [stdout] | [INFO] [stdout] 444 | pub fn list_drives(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `windows` feature [INFO] [stdout] --> src/beacon/file.rs:443:7 [INFO] [stdout] | [INFO] [stdout] 443 | #[cfg(target_os = "windows")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/beacon/bof/../../util/encode.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | if let Ok(locale) = env::var("LC_CTYPE") { [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/beacon/bof/../../util/encode.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(locale) = env::var("LANG") { [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/beacon/init.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | if fs::read("/etc/shadow").is_ok() { [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Command` [INFO] [stdout] --> src/beacon/init.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | if Command::new("uname").arg("-p").output().unwrap().stdout == b"x86_64\n" { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Command` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::process::Command; [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::Command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Command` [INFO] [stdout] --> src/beacon/init.rs:87:31 [INFO] [stdout] | [INFO] [stdout] 87 | String::from_utf8(Command::new("hostname").output().unwrap().stdout).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Command` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::process::Command; [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::Command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mem` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:79:59 [INFO] [stdout] | [INFO] [stdout] 79 | let mut proc_info: PROCESS_INFORMATION = unsafe { mem::zeroed() }; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mem` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mem`, use `cargo add mem` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::mem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mem` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:80:55 [INFO] [stdout] | [INFO] [stdout] 80 | let mut startup_info: STARTUPINFOW = unsafe { mem::zeroed() }; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mem` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mem`, use `cargo add mem` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::mem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mem` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | startup_info.cb = mem::size_of::() as u32; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mem` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mem`, use `cargo add mem` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::mem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mem` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:346:18 [INFO] [stdout] | [INFO] [stdout] 346 | Some(mem::transmute(addr.add(offset as usize))), [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mem` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mem`, use `cargo add mem` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::mem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `thread` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:451:18 [INFO] [stdout] | [INFO] [stdout] 451 | let handle = thread::spawn(move || unsafe { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `thread` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thread`, use `cargo add thread` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `thread` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:458:5 [INFO] [stdout] | [INFO] [stdout] 458 | thread::sleep(std::time::Duration::from_millis(100)); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `thread` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thread`, use `cargo add thread` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `thread` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:476:9 [INFO] [stdout] | [INFO] [stdout] 476 | thread::sleep(std::time::Duration::from_millis(100)); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `thread` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thread`, use `cargo add thread` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cursor` in this scope [INFO] [stdout] --> src/beacon/token.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn get_privs(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use crate::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_i32` in this scope [INFO] [stdout] --> src/beacon/token.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let _ = beacon_read_i32(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_i32` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn beacon_read_i32(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::beacon_read_i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_short` in this scope [INFO] [stdout] --> src/beacon/token.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let privs_cnt = beacon_read_short(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_short` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn beacon_read_short(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_short; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | let (_, priv_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | beacon_send_result(error_message.as_bytes(), &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | beacon_send_result(b"OK", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cursor` in this scope [INFO] [stdout] --> src/beacon/token.rs:66:42 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn steal_token(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use crate::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_i32` in this scope [INFO] [stdout] --> src/beacon/token.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let _ = beacon_read_i32(&mut decrypted_cursor).unwrap() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_i32` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn beacon_read_i32(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::beacon_read_i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_i32` in this scope [INFO] [stdout] --> src/beacon/token.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | let pid = beacon_read_i32(&mut decrypted_cursor).unwrap() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_i32` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn beacon_read_i32(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::beacon_read_i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | beacon_send_result(b"Failed to open process", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | beacon_send_result(b"Failed to open process token", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | beacon_send_result( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/beacon/bof/../../util/encode.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | if let Ok(locale) = env::var("LC_CTYPE") { [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | beacon_send_result(b"Failed to duplicate token", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/beacon/bof/../../util/encode.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(locale) = env::var("LANG") { [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | beacon_send_result(b"Failed to create pipe", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | beacon_send_result(b"Failed to create process", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/beacon/init.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | if fs::read("/etc/shadow").is_ok() { [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | beacon_send_result(b"Failed to read from pipe", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Command` [INFO] [stdout] --> src/beacon/init.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | if Command::new("uname").arg("-p").output().unwrap().stdout == b"x86_64\n" { [INFO] [stdout] | ^^^^^^^ use of undeclared type `Command` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::process::Command; [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::Command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | beacon_send_result(message.as_bytes(), &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Command` [INFO] [stdout] --> src/beacon/init.rs:87:31 [INFO] [stdout] | [INFO] [stdout] 87 | String::from_utf8(Command::new("hostname").output().unwrap().stdout).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Command` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use crate::process::Command; [INFO] [stdout] | [INFO] [stdout] 1 + use std::process::Command; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:241:21 [INFO] [stdout] | [INFO] [stdout] 241 | beacon_send_result(b"Failed to revert to self", &BEACON, CALLBACK_OUTPUT) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mem` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:79:59 [INFO] [stdout] | [INFO] [stdout] 79 | let mut proc_info: PROCESS_INFORMATION = unsafe { mem::zeroed() }; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mem` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mem`, use `cargo add mem` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::mem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | beacon_send_result(b"ok", &BEACON, CALLBACK_OUTPUT).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mem` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:80:55 [INFO] [stdout] | [INFO] [stdout] 80 | let mut startup_info: STARTUPINFOW = unsafe { mem::zeroed() }; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mem` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mem`, use `cargo add mem` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::mem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mem` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:81:27 [INFO] [stdout] | [INFO] [stdout] 81 | startup_info.cb = mem::size_of::() as u32; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mem` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mem`, use `cargo add mem` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::mem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:269:17 [INFO] [stdout] | [INFO] [stdout] 269 | beacon_send_result(b"Failed to open process token", &BEACON, CALLBACK_OUTPUT) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `mem` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:346:18 [INFO] [stdout] | [INFO] [stdout] 346 | Some(mem::transmute(addr.add(offset as usize))), [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `mem` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `mem`, use `cargo add mem` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::mem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cursor` in this scope [INFO] [stdout] --> src/beacon/token.rs:329:36 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn runas(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use crate::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_i32` in this scope [INFO] [stdout] --> src/beacon/token.rs:330:13 [INFO] [stdout] | [INFO] [stdout] 330 | let _ = beacon_read_i32(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_i32` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn beacon_read_i32(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::beacon_read_i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `thread` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:451:18 [INFO] [stdout] | [INFO] [stdout] 451 | let handle = thread::spawn(move || unsafe { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `thread` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thread`, use `cargo add thread` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:331:27 [INFO] [stdout] | [INFO] [stdout] 331 | let (_, domain_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `thread` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:458:5 [INFO] [stdout] | [INFO] [stdout] 458 | thread::sleep(std::time::Duration::from_millis(100)); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `thread` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thread`, use `cargo add thread` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `thread` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:476:9 [INFO] [stdout] | [INFO] [stdout] 476 | thread::sleep(std::time::Duration::from_millis(100)); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `thread` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `thread`, use `cargo add thread` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::thread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:332:29 [INFO] [stdout] | [INFO] [stdout] 332 | let (_, username_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:333:29 [INFO] [stdout] | [INFO] [stdout] 333 | let (_, password_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cursor` in this scope [INFO] [stdout] --> src/beacon/token.rs:35:40 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn get_privs(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use crate::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:334:28 [INFO] [stdout] | [INFO] [stdout] 334 | let (_, command_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_i32` in this scope [INFO] [stdout] --> src/beacon/token.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let _ = beacon_read_i32(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_i32` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn beacon_read_i32(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::beacon_read_i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_short` in this scope [INFO] [stdout] --> src/beacon/token.rs:37:21 [INFO] [stdout] | [INFO] [stdout] 37 | let privs_cnt = beacon_read_short(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_short` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn beacon_read_short(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_short; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:413:9 [INFO] [stdout] | [INFO] [stdout] 413 | beacon_send_result(output.as_bytes(), &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cursor` in this scope [INFO] [stdout] --> src/beacon/token.rs:423:41 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn make_token(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use crate::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | let (_, priv_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_i32` in this scope [INFO] [stdout] --> src/beacon/token.rs:424:13 [INFO] [stdout] | [INFO] [stdout] 424 | let _ = beacon_read_i32(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_i32` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn beacon_read_i32(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::beacon_read_i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:57:21 [INFO] [stdout] | [INFO] [stdout] 57 | beacon_send_result(error_message.as_bytes(), &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:425:27 [INFO] [stdout] | [INFO] [stdout] 425 | let (_, domain_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | beacon_send_result(b"OK", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:426:29 [INFO] [stdout] | [INFO] [stdout] 426 | let (_, username_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cursor` in this scope [INFO] [stdout] --> src/beacon/token.rs:66:42 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn steal_token(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use crate::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_i32` in this scope [INFO] [stdout] --> src/beacon/token.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let _ = beacon_read_i32(&mut decrypted_cursor).unwrap() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_i32` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn beacon_read_i32(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::beacon_read_i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:427:29 [INFO] [stdout] | [INFO] [stdout] 427 | let (_, password_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_i32` in this scope [INFO] [stdout] --> src/beacon/token.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 68 | let pid = beacon_read_i32(&mut decrypted_cursor).unwrap() as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_i32` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn beacon_read_i32(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::beacon_read_i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | beacon_send_result(b"Failed to open process", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:474:9 [INFO] [stdout] | [INFO] [stdout] 474 | beacon_send_result( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | beacon_send_result(b"Failed to open process token", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 509 | beacon_send_result(b"make token success", &BEACON, CALLBACK_OUTPUT).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | beacon_send_result( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/util/encode.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | if let Ok(locale) = env::var("LC_CTYPE") { [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/util/encode.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(locale) = env::var("LANG") { [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | beacon_send_result(b"Failed to duplicate token", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | beacon_send_result(b"Failed to create pipe", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | beacon_send_result(b"Failed to create process", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | beacon_send_result(b"Failed to read from pipe", &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | beacon_send_result(message.as_bytes(), &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:241:21 [INFO] [stdout] | [INFO] [stdout] 241 | beacon_send_result(b"Failed to revert to self", &BEACON, CALLBACK_OUTPUT) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | beacon_send_result(b"ok", &BEACON, CALLBACK_OUTPUT).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:269:17 [INFO] [stdout] | [INFO] [stdout] 269 | beacon_send_result(b"Failed to open process token", &BEACON, CALLBACK_OUTPUT) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cursor` in this scope [INFO] [stdout] --> src/beacon/token.rs:329:36 [INFO] [stdout] | [INFO] [stdout] 329 | pub fn runas(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use crate::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_i32` in this scope [INFO] [stdout] --> src/beacon/token.rs:330:13 [INFO] [stdout] | [INFO] [stdout] 330 | let _ = beacon_read_i32(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_i32` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn beacon_read_i32(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::beacon_read_i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PublicKey` and `pkcs8::DecodePublicKey` [INFO] [stdout] --> src/main.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use rsa::{pkcs8::DecodePublicKey, PublicKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:331:27 [INFO] [stdout] | [INFO] [stdout] 331 | let (_, domain_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LE` [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use byteorder::{ReadBytesExt, BE, LE}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::Globalization::GetACP` [INFO] [stdout] --> src/beacon/bof/../../util/encode.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use windows_sys::Win32::Globalization::GetACP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:332:29 [INFO] [stdout] | [INFO] [stdout] 332 | let (_, username_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:333:29 [INFO] [stdout] | [INFO] [stdout] 333 | let (_, password_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:334:28 [INFO] [stdout] | [INFO] [stdout] 334 | let (_, command_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:413:9 [INFO] [stdout] | [INFO] [stdout] 413 | beacon_send_result(output.as_bytes(), &BEACON, CALLBACK_OUTPUT).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Cursor` in this scope [INFO] [stdout] --> src/beacon/token.rs:423:41 [INFO] [stdout] | [INFO] [stdout] 423 | pub fn make_token(mut decrypted_cursor: Cursor>) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 3 + use crate::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_map::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::btree_set::Cursor; [INFO] [stdout] | [INFO] [stdout] 3 + use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_i32` in this scope [INFO] [stdout] --> src/beacon/token.rs:424:13 [INFO] [stdout] | [INFO] [stdout] 424 | let _ = beacon_read_i32(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_i32` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn beacon_read_i32(decrypted_cursor: &mut R) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 3 + use crate::beacon_read_i32; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:425:27 [INFO] [stdout] | [INFO] [stdout] 425 | let (_, domain_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:426:29 [INFO] [stdout] | [INFO] [stdout] 426 | let (_, username_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_read_length_and_string` in this scope [INFO] [stdout] --> src/beacon/token.rs:427:29 [INFO] [stdout] | [INFO] [stdout] 427 | let (_, password_vec) = beacon_read_length_and_string(&mut decrypted_cursor).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_read_length_and_string` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / pub fn beacon_read_length_and_string( [INFO] [stdout] 14 | | decrypted_cursor: &mut R, [INFO] [stdout] 15 | | ) -> io::Result<(u32, Vec)> { [INFO] [stdout] 16 | | let size = decrypted_cursor.read_u32::()?; [INFO] [stdout] ... | [INFO] [stdout] 19 | | Ok((size, buffer)) [INFO] [stdout] 20 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_read_length_and_string; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:474:9 [INFO] [stdout] | [INFO] [stdout] 474 | beacon_send_result( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `beacon_send_result` in this scope [INFO] [stdout] --> src/beacon/token.rs:509:5 [INFO] [stdout] | [INFO] [stdout] 509 | beacon_send_result(b"make token success", &BEACON, CALLBACK_OUTPUT).unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: function `crate::beacon::bof::util::data_parse::beacon_send_result` exists but is inaccessible [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | / pub fn beacon_send_result( [INFO] [stdout] 45 | | result: &[u8], [INFO] [stdout] 46 | | beacon: &Beacon, [INFO] [stdout] 47 | | reply_type: u32, [INFO] [stdout] ... | [INFO] [stdout] 90 | | Ok(()) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_^ not accessible [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use crate::util::data_parse::beacon_send_result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/util/encode.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 53 | if let Ok(locale) = env::var("LC_CTYPE") { [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `env` [INFO] [stdout] --> src/util/encode.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 58 | if let Ok(locale) = env::var("LANG") { [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `env` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `env`, use `cargo add env` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 1 + use std::env; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/beacon/bof/../../util/jobs.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | /// 有问题 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 76 | CMD_TYPE_JOB_REGISTER_MSGMODE => job_handle(cmd), [INFO] [stdout] | ------------------------------------------------ rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bail` [INFO] [stdout] --> src/beacon/bof/../../util/os_command.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{anyhow, bail}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stdio` [INFO] [stdout] --> src/beacon/bof/../../util/os_command.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::{Command, Stdio}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::C2_PROTOCOL` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::config::C2_PROTOCOL; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(protocol = "http")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("http"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"http\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PublicKey` and `pkcs8::DecodePublicKey` [INFO] [stdout] --> src/main.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | use rsa::{pkcs8::DecodePublicKey, PublicKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LE` [INFO] [stdout] --> src/beacon/bof/../../util/data_parse.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use byteorder::{ReadBytesExt, BE, LE}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[cfg(protocol = "http")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("http"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"http\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::Globalization::GetACP` [INFO] [stdout] --> src/beacon/bof/../../util/encode.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use windows_sys::Win32::Globalization::GetACP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(protocol = "https")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("https"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"https\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | #[cfg(protocol = "https")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("https"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"https\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/beacon/bof/../../util/jobs.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | /// 有问题 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 76 | CMD_TYPE_JOB_REGISTER_MSGMODE => job_handle(cmd), [INFO] [stdout] | ------------------------------------------------ rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bail` [INFO] [stdout] --> src/beacon/bof/../../util/os_command.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{anyhow, bail}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr` and `c_void` [INFO] [stdout] --> src/beacon/bof/mod.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ffi::{c_char, c_void, CStr}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stdio` [INFO] [stdout] --> src/beacon/bof/../../util/os_command.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::{Command, Stdio}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/beacon/bof/mod.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{Cursor, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/beacon/bof/mod.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{io, ptr, slice}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::C2_PROTOCOL` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::config::C2_PROTOCOL; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::util::strike` [INFO] [stdout] --> src/beacon/bof/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::util::strike; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `COUNTER` [INFO] [stdout] --> src/beacon/bof/mod.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::{BEACON, COUNTER}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(protocol = "http")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("http"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"http\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::Storage::FileSystem::GetLogicalDrives` [INFO] [stdout] --> src/beacon/file.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use windows_sys::Win32::Storage::FileSystem::GetLogicalDrives; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[cfg(protocol = "http")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("http"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"http\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(protocol = "https")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("https"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"https\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `COUNTER` [INFO] [stdout] --> src/beacon/file.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::{BEACON, COUNTER}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/beacon/init.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/beacon/bof/../../util/strike.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | #[cfg(protocol = "https")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("https"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"https\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/beacon/init.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr` and `c_void` [INFO] [stdout] --> src/beacon/bof/mod.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use std::ffi::{c_char, c_void, CStr}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/beacon/init.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `local_ip_address::local_ip` [INFO] [stdout] --> src/beacon/init.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use local_ip_address::local_ip; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/beacon/bof/mod.rs:7:23 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::{Cursor, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/beacon/bof/mod.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use std::{io, ptr, slice}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GetNativeSystemInfo` and `SYSTEM_INFO` [INFO] [stdout] --> src/beacon/init.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | use windows_sys::Win32::System::SystemInformation::{GetNativeSystemInfo, SYSTEM_INFO}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::util::strike` [INFO] [stdout] --> src/beacon/bof/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::util::strike; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GetCurrentProcess` [INFO] [stdout] --> src/beacon/init.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | use windows_sys::Win32::System::Threading::{GetCurrentProcess, IsWow64Process}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::UI::Shell::IsUserAnAdmin` [INFO] [stdout] --> src/beacon/init.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use windows_sys::Win32::UI::Shell::IsUserAnAdmin; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `COUNTER` [INFO] [stdout] --> src/beacon/bof/mod.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::{BEACON, COUNTER}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr` and `CString` [INFO] [stdout] --> src/beacon/proc.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::Storage::FileSystem::GetLogicalDrives` [INFO] [stdout] --> src/beacon/file.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use windows_sys::Win32::Storage::FileSystem::GetLogicalDrives; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null_mut` [INFO] [stdout] --> src/beacon/proc.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::null_mut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `COUNTER` [INFO] [stdout] --> src/beacon/file.rs:21:21 [INFO] [stdout] | [INFO] [stdout] 21 | use crate::{BEACON, COUNTER}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::core::PCSTR` [INFO] [stdout] --> src/beacon/proc.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use windows_sys::core::PCSTR; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/beacon/init.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BOOL` and `GetLastError` [INFO] [stdout] --> src/beacon/proc.rs:8:38 [INFO] [stdout] | [INFO] [stdout] 8 | use windows_sys::Win32::Foundation::{GetLastError, BOOL}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::Security::Authorization::ConvertStringSidToSidA` [INFO] [stdout] --> src/beacon/proc.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use windows_sys::Win32::Security::Authorization::ConvertStringSidToSidA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/beacon/init.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/beacon/init.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LookupAccountSidA`, `PSID`, and `SID_NAME_USE` [INFO] [stdout] --> src/beacon/proc.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | use windows_sys::Win32::Security::{LookupAccountSidA, PSID, SID_NAME_USE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `local_ip_address::local_ip` [INFO] [stdout] --> src/beacon/init.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use local_ip_address::local_ip; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::System::RemoteDesktop::ProcessIdToSessionId` [INFO] [stdout] --> src/beacon/proc.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use windows_sys::Win32::System::RemoteDesktop::ProcessIdToSessionId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GetNativeSystemInfo` and `SYSTEM_INFO` [INFO] [stdout] --> src/beacon/init.rs:12:53 [INFO] [stdout] | [INFO] [stdout] 12 | use windows_sys::Win32::System::SystemInformation::{GetNativeSystemInfo, SYSTEM_INFO}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IsWow64Process`, `OpenProcess`, `PROCESS_QUERY_INFORMATION`, and `PROCESS_VM_READ` [INFO] [stdout] --> src/beacon/proc.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | IsWow64Process, OpenProcess, PROCESS_QUERY_INFORMATION, PROCESS_VM_READ, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GetCurrentProcess` [INFO] [stdout] --> src/beacon/init.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | use windows_sys::Win32::System::Threading::{GetCurrentProcess, IsWow64Process}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/beacon/proc.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::UI::Shell::IsUserAnAdmin` [INFO] [stdout] --> src/beacon/init.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use windows_sys::Win32::UI::Shell::IsUserAnAdmin; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WaitForSingleObject` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | GetCurrentProcessId, OpenProcess, WaitForSingleObject, CREATE_NO_WINDOW, CREATE_SUSPENDED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr` and `CString` [INFO] [stdout] --> src/beacon/proc.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ffi::{CStr, CString}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null_mut` [INFO] [stdout] --> src/beacon/proc.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::ptr::null_mut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LE` [INFO] [stdout] --> src/util/data_parse.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use byteorder::{ReadBytesExt, BE, LE}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::core::PCSTR` [INFO] [stdout] --> src/beacon/proc.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use windows_sys::core::PCSTR; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::Globalization::GetACP` [INFO] [stdout] --> src/util/encode.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use windows_sys::Win32::Globalization::GetACP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/util/jobs.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | /// 有问题 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 76 | CMD_TYPE_JOB_REGISTER_MSGMODE => job_handle(cmd), [INFO] [stdout] | ------------------------------------------------ rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BOOL` and `GetLastError` [INFO] [stdout] --> src/beacon/proc.rs:8:38 [INFO] [stdout] | [INFO] [stdout] 8 | use windows_sys::Win32::Foundation::{GetLastError, BOOL}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bail` [INFO] [stdout] --> src/util/os_command.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{anyhow, bail}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::Security::Authorization::ConvertStringSidToSidA` [INFO] [stdout] --> src/beacon/proc.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use windows_sys::Win32::Security::Authorization::ConvertStringSidToSidA; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LookupAccountSidA`, `PSID`, and `SID_NAME_USE` [INFO] [stdout] --> src/beacon/proc.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | use windows_sys::Win32::Security::{LookupAccountSidA, PSID, SID_NAME_USE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::System::RemoteDesktop::ProcessIdToSessionId` [INFO] [stdout] --> src/beacon/proc.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use windows_sys::Win32::System::RemoteDesktop::ProcessIdToSessionId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IsWow64Process`, `OpenProcess`, `PROCESS_QUERY_INFORMATION`, and `PROCESS_VM_READ` [INFO] [stdout] --> src/beacon/proc.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | IsWow64Process, OpenProcess, PROCESS_QUERY_INFORMATION, PROCESS_VM_READ, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/beacon/proc.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WaitForSingleObject` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | GetCurrentProcessId, OpenProcess, WaitForSingleObject, CREATE_NO_WINDOW, CREATE_SUSPENDED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LE` [INFO] [stdout] --> src/util/data_parse.rs:5:35 [INFO] [stdout] | [INFO] [stdout] 5 | use byteorder::{ReadBytesExt, BE, LE}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `windows_sys::Win32::Globalization::GetACP` [INFO] [stdout] --> src/util/encode.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use windows_sys::Win32::Globalization::GetACP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/util/jobs.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | /// 有问题 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 76 | CMD_TYPE_JOB_REGISTER_MSGMODE => job_handle(cmd), [INFO] [stdout] | ------------------------------------------------ rustdoc does not generate documentation for match arms [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stdio` [INFO] [stdout] --> src/util/os_command.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::{Command, Stdio}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bail` [INFO] [stdout] --> src/util/os_command.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use anyhow::{anyhow, bail}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> src/util/strike.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stdio` [INFO] [stdout] --> src/util/os_command.rs:3:29 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::{Command, Stdio}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::C2_PROTOCOL` [INFO] [stdout] --> src/util/strike.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::config::C2_PROTOCOL; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `url::Url` [INFO] [stdout] --> src/util/strike.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use url::Url; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::C2_PROTOCOL` [INFO] [stdout] --> src/util/strike.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::config::C2_PROTOCOL; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/util/strike.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(protocol = "http")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("http"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"http\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/util/strike.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | #[cfg(protocol = "http")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("http"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"http\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/util/strike.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[cfg(protocol = "http")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("http"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"http\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/util/strike.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[cfg(protocol = "http")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("http"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"http\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/util/strike.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(protocol = "https")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("https"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"https\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/util/strike.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | #[cfg(protocol = "https")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("https"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"https\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/util/strike.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | #[cfg(protocol = "https")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("https"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"https\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `protocol` [INFO] [stdout] --> src/util/strike.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | #[cfg(protocol = "https")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(protocol, values("https"))'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(protocol, values(\"https\"))");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/beacon/bof/../../util/encode.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | OsStr::new(s).encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/beacon/bof/../../util/encode.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | OsStr::new(s).encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/beacon/proc.rs:39:49 [INFO] [stdout] | [INFO] [stdout] 39 | let session_id = get_process_session_id(pid.as_u32()).unwrap_or(0); // 获取会话 ID [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/beacon/proc.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn get_process_session_id(_pid: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ --------- [INFO] [stdout] help: you can convert a `u32` to an `i32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 39 | let session_id = get_process_session_id(pid.as_u32().try_into().unwrap()).unwrap_or(0); // 获取会话 ID [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/beacon/proc.rs:39:49 [INFO] [stdout] | [INFO] [stdout] 39 | let session_id = get_process_session_id(pid.as_u32()).unwrap_or(0); // 获取会话 ID [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/beacon/proc.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn get_process_session_id(_pid: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ --------- [INFO] [stdout] help: you can convert a `u32` to an `i32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 39 | let session_id = get_process_session_id(pid.as_u32().try_into().unwrap()).unwrap_or(0); // 获取会话 ID [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/beacon/proc.rs:133:40 [INFO] [stdout] | [INFO] [stdout] 133 | fn get_username_from_sid(sid: &str) -> Result { [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/beacon/proc.rs:133:40 [INFO] [stdout] | [INFO] [stdout] 133 | fn get_username_from_sid(sid: &str) -> Result { [INFO] [stdout] | --------------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/util/encode.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | OsStr::new(s).encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> src/util/encode.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | OsStr::new(s).encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sha2::Digest` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use sha2::Digest; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sha2::Digest` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use sha2::Digest; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/exit.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | Ok(_) => unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | Ok(_) => unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/exit.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:33:18 [INFO] [stdout] | [INFO] [stdout] 33 | Ok(_) => unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | Ok(_) => unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | unsafe { beacon_send_result(&dir_result, &BEACON, CALLBACK_PENDING).unwrap() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/file.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | unsafe { beacon_send_result(&dir_result, &BEACON, CALLBACK_PENDING).unwrap() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/beacon/file.rs:389:9 [INFO] [stdout] | [INFO] [stdout] 389 | let handle = thread::spawn(move || unsafe { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> src/beacon/file.rs:389:9 [INFO] [stdout] | [INFO] [stdout] 389 | let handle = thread::spawn(move || unsafe { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/beacon/file.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | let mut request_id = FILE_COUNTER; // 示例请求 ID [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/beacon/file.rs:406:9 [INFO] [stdout] | [INFO] [stdout] 406 | let mut request_id = FILE_COUNTER; // 示例请求 ID [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/shell.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/shell.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/shell.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/beacon/shell.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let output = match os_system(&args) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/shell.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_x64` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:114:58 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn inject_dll(mut decrypted_cursor: Cursor>, is_x64: bool) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/beacon/shell.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let output = match os_system(&args) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_x64` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:114:58 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn inject_dll(mut decrypted_cursor: Cursor>, is_x64: bool) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_x64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_ignore_token` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | is_ignore_token: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_ignore_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_ignore_token` [INFO] [stdout] --> src/beacon/spawn_and_inject.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | is_ignore_token: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_ignore_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/sleep.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/beacon/sleep.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | .unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:68:84 [INFO] [stdout] | [INFO] [stdout] 68 | ... beacon_read_i32(&mut decrypted_cursor).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:73:84 [INFO] [stdout] | [INFO] [stdout] 73 | ... beacon_read_i32(&mut decrypted_cursor).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:83:83 [INFO] [stdout] | [INFO] [stdout] 83 | ... decrypted_cursor.read_u32::().unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:88:88 [INFO] [stdout] | [INFO] [stdout] 88 | ... beacon_read_i32(&mut decrypted_cursor).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:94:54 [INFO] [stdout] | [INFO] [stdout] 94 | ... .unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:100:74 [INFO] [stdout] | [INFO] [stdout] 100 | ... cmd.write_i32::(cmd_len).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:103:69 [INFO] [stdout] | [INFO] [stdout] 103 | ... cmd.write_all(&cmd_buf).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:118:25 [INFO] [stdout] | [INFO] [stdout] 118 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:35:26 [INFO] [stdout] | [INFO] [stdout] 35 | .unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:68:84 [INFO] [stdout] | [INFO] [stdout] 68 | ... beacon_read_i32(&mut decrypted_cursor).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:73:84 [INFO] [stdout] | [INFO] [stdout] 73 | ... beacon_read_i32(&mut decrypted_cursor).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:83:83 [INFO] [stdout] | [INFO] [stdout] 83 | ... decrypted_cursor.read_u32::().unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:88:88 [INFO] [stdout] | [INFO] [stdout] 88 | ... beacon_read_i32(&mut decrypted_cursor).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:94:54 [INFO] [stdout] | [INFO] [stdout] 94 | ... .unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:100:74 [INFO] [stdout] | [INFO] [stdout] 100 | ... cmd.write_i32::(cmd_len).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:103:69 [INFO] [stdout] | [INFO] [stdout] 103 | ... cmd.write_all(&cmd_buf).unwrap_or_else(|err| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `beacon-rust` (bin "beacon-rust") due to 58 previous errors; 76 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `beacon-rust` (bin "beacon-rust" test) due to 58 previous errors; 76 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0ef9a809a233fe2c5c030378e52d8530377d0c097a749ef65d9165039f882c4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ef9a809a233fe2c5c030378e52d8530377d0c097a749ef65d9165039f882c4c", kill_on_drop: false }` [INFO] [stdout] 0ef9a809a233fe2c5c030378e52d8530377d0c097a749ef65d9165039f882c4c