[INFO] fetching crate rust-metasploit 1.1.0... [INFO] testing rust-metasploit-1.1.0 against 1.60.0 for beta-1.61-1 [INFO] extracting crate rust-metasploit 1.1.0 into /workspace/builds/worker-41/source [INFO] validating manifest of crates.io crate rust-metasploit 1.1.0 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rust-metasploit 1.1.0 [INFO] finished tweaking crates.io crate rust-metasploit 1.1.0 [INFO] tweaked toml for crates.io crate rust-metasploit 1.1.0 written to /workspace/builds/worker-41/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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 doc-cfg v0.1.0 [INFO] [stderr] Downloaded rmpv v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5cec29f2cca3091176c41abd08ee5f7c3bcd683ae46e46fe4cdba541220f3392 [INFO] running `Command { std: "docker" "start" "-a" "5cec29f2cca3091176c41abd08ee5f7c3bcd683ae46e46fe4cdba541220f3392", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5cec29f2cca3091176c41abd08ee5f7c3bcd683ae46e46fe4cdba541220f3392", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5cec29f2cca3091176c41abd08ee5f7c3bcd683ae46e46fe4cdba541220f3392", kill_on_drop: false }` [INFO] [stdout] 5cec29f2cca3091176c41abd08ee5f7c3bcd683ae46e46fe4cdba541220f3392 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b954dc8d012dde80f876164252ca8a35113d8308940fb73cb4dbc8da971ee61c [INFO] running `Command { std: "docker" "start" "-a" "b954dc8d012dde80f876164252ca8a35113d8308940fb73cb4dbc8da971ee61c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling httparse v1.7.0 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling tower-service v0.3.1 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling ipnet v2.4.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling tracing-core v0.1.25 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling mio v0.8.2 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling doc-cfg v0.1.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling rmp v0.8.10 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Compiling tracing v0.1.33 [INFO] [stderr] Compiling tokio-util v0.7.1 [INFO] [stderr] Compiling h2 v0.3.13 [INFO] [stderr] Compiling hyper v0.14.18 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling rmp-serde v1.0.0 [INFO] [stderr] Compiling rmpv v1.0.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.10 [INFO] [stderr] Compiling rust-metasploit v1.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 34s [INFO] running `Command { std: "docker" "inspect" "b954dc8d012dde80f876164252ca8a35113d8308940fb73cb4dbc8da971ee61c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b954dc8d012dde80f876164252ca8a35113d8308940fb73cb4dbc8da971ee61c", kill_on_drop: false }` [INFO] [stdout] b954dc8d012dde80f876164252ca8a35113d8308940fb73cb4dbc8da971ee61c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40806f047fd271733ce3f5c1771abc8ff0fd427f825c4680c2b8bec75dfcbf9e [INFO] running `Command { std: "docker" "start" "-a" "40806f047fd271733ce3f5c1771abc8ff0fd427f825c4680c2b8bec75dfcbf9e", kill_on_drop: false }` [INFO] [stderr] Compiling rust-metasploit v1.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 15.33s [INFO] running `Command { std: "docker" "inspect" "40806f047fd271733ce3f5c1771abc8ff0fd427f825c4680c2b8bec75dfcbf9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40806f047fd271733ce3f5c1771abc8ff0fd427f825c4680c2b8bec75dfcbf9e", kill_on_drop: false }` [INFO] [stdout] 40806f047fd271733ce3f5c1771abc8ff0fd427f825c4680c2b8bec75dfcbf9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-41/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 53691255710eb3ccae51923577daf15cc91a97c60a8825fc2b346c838c26f37b [INFO] running `Command { std: "docker" "start" "-a" "53691255710eb3ccae51923577daf15cc91a97c60a8825fc2b346c838c26f37b", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/metasploit-a227c5a7e79a7b7b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests metasploit [INFO] [stdout] [INFO] [stdout] running 156 tests [INFO] [stdout] test src/msf/auth.rs - msf::auth::remove_token (line 200) ... FAILED [INFO] [stdout] test src/msf/auth.rs - msf::auth::list_token (line 156) ... FAILED [INFO] [stdout] test src/./error.rs - error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/auth.rs - msf::blocking::auth::remove_token (line 188) ... FAILED [INFO] [stdout] test src/msf/blocking/auth.rs - msf::blocking::auth::generate_token (line 102) ... FAILED [INFO] [stdout] test src/./error.rs - client::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/console.rs - msf::blocking::console::create (line 16) ... FAILED [INFO] [stdout] test src/msf/blocking/console.rs - msf::blocking::console::tabs (line 331) ... FAILED [INFO] [stdout] test src/msf/blocking/console.rs - msf::blocking::console::list (line 106) ... FAILED [INFO] [stdout] test src/msf/blocking/auth.rs - msf::blocking::auth::list_token (line 147) ... FAILED [INFO] [stdout] test src/msf/blocking/auth.rs - msf::blocking::auth::logout (line 14) ... FAILED [INFO] [stdout] test src/msf/auth.rs - msf::auth::logout (line 14) ... FAILED [INFO] [stdout] test src/msf/../error.rs - msf::modules::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/core.rs - msf::blocking::core::add_module (line 17) ... FAILED [INFO] [stdout] test src/msf/blocking/console.rs - msf::blocking::console::read (line 194) ... FAILED [INFO] [stdout] test src/msf/blocking/core.rs - msf::blocking::core::kill_thread (line 345) ... FAILED [INFO] [stdout] test src/msf/blocking/core.rs - msf::blocking::core::version (line 389) ... FAILED [INFO] [stdout] test src/msf/blocking/core.rs - msf::blocking::core::reload_module (line 117) ... FAILED [INFO] [stdout] test src/msf/blocking/auth.rs - msf::blocking::auth::add_token (line 57) ... FAILED [INFO] [stdout] test src/msf/blocking/console.rs - msf::blocking::console::destroy (line 61) ... FAILED [INFO] [stdout] test src/msf/blocking/console.rs - msf::blocking::console::kill_session (line 286) ... FAILED [INFO] [stdout] test src/msf/auth.rs - msf::auth::add_token (line 60) ... FAILED [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::core::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::core::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/auth.rs - msf::auth::generate_token (line 108) ... FAILED [INFO] [stdout] test src/msf/../error.rs - msf::sessions::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::jobs::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::plugins::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::console::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::core::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::auth::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::console::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::jobs::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::auth::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::modules::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::sessions::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::sessions::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::auth::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::modules::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::jobs::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::console::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::plugins::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::modules::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::sessions::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/../error.rs - msf::plugins::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::jobs::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::console::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::core::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::auth::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/../../error.rs - msf::blocking::plugins::connect::error::MsfError (line 13) ... ok [INFO] [stdout] test src/msf/blocking/core.rs - msf::blocking::core::save (line 167) ... FAILED [INFO] [stdout] test src/msf/core.rs - msf::core::save (line 174) ... FAILED [INFO] [stdout] test src/msf/blocking/console.rs - msf::blocking::console::write (line 152) ... FAILED [INFO] [stdout] test src/msf/core.rs - msf::core::setg (line 220) ... FAILED [INFO] [stdout] test src/msf/jobs.rs - msf::jobs::stop (line 117) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::encoder (line 434) ... FAILED [INFO] [stdout] test src/msf/core.rs - msf::core::unsetg (line 268) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::compactible::target_payloads (line 320) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::list::exploits (line 71) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::list::encoders (line 163) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::list::nops (line 186) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::list::new (line 31) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::list::payloads (line 140) ... FAILED [INFO] [stdout] test src/msf/plugins.rs - msf::plugins::load (line 16) ... FAILED [INFO] [stdout] test src/msf/plugins.rs - msf::plugins::list (line 115) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::list::post (line 117) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::meterpreter::script (line 365) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::meterpreter::tabs (line 471) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::meterpreter::write (line 262) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::meterpreter::run_single (line 329) ... FAILED [INFO] [stdout] test src/msf/plugins.rs - msf::plugins::unload (line 67) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::meterpreter::new (line 224) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::ring::put (line 694) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::meterpreter::compactible_modules (line 503) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::meterpreter::kill_session (line 436) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::ring::last (line 663) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::meterpreter::detach_session (line 401) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::meterpreter::read (line 298) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::ring::new (line 592) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::shell_upgrade (line 535) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::list (line 17) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::ring::clear (line 628) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::shell::write (line 169) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::stop (line 62) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::option (line 387) ... FAILED [INFO] [stdout] test src/msf/sessions.rs - msf::sessions::shell::read (line 112) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::option (line 381) ... FAILED [INFO] [stdout] test src/msf/blocking/console.rs - msf::blocking::console::detach_session (line 241) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::execute (line 472) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::put (line 676) ... FAILED [INFO] [stdout] test src/msf/blocking/core.rs - msf::blocking::core::list_thread (line 302) ... FAILED [INFO] [stdout] test src/msf/blocking/plugins.rs - msf::blocking::plugins::load (line 16) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::last (line 645) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::compactible::payload (line 281) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::detach_session (line 388) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::compactible::payload (line 287) ... FAILED [INFO] [stdout] test src/msf/blocking/jobs.rs - msf::blocking::jobs::info (line 58) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::compactible::sessions (line 347) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::kill_session (line 423) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::shell::write (line 162) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::list (line 17) ... FAILED [INFO] [stdout] test src/msf/blocking/jobs.rs - msf::blocking::jobs::list (line 16) ... FAILED [INFO] [stdout] test src/msf/blocking/plugins.rs - msf::blocking::plugins::list (line 109) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::list::auxiliary (line 92) ... FAILED [INFO] [stdout] test src/msf/blocking/plugins.rs - msf::blocking::plugins::unload (line 64) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::list::encoders (line 161) ... FAILED [INFO] [stdout] test src/msf/console.rs - msf::console::tabs (line 352) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::compactible_modules (line 490) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::stop (line 59) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::list::auxiliary (line 94) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::read (line 285) ... FAILED [INFO] [stdout] test src/msf/blocking/core.rs - msf::blocking::core::unsetg (line 257) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::tabs (line 458) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::info (line 208) ... FAILED [INFO] [stdout] test src/msf/core.rs - msf::core::kill_thread (line 360) ... FAILED [INFO] [stdout] test src/msf/blocking/core.rs - msf::blocking::core::setg (line 211) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::script (line 352) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::shell_upgrade (line 522) ... FAILED [INFO] [stdout] test src/msf/console.rs - msf::console::kill_session (line 304) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::write (line 249) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::list::new (line 31) ... FAILED [INFO] [stdout] test src/msf/console.rs - msf::console::write (line 161) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::compactible::new (line 260) ... FAILED [INFO] [stdout] test src/msf/blocking/jobs.rs - msf::blocking::jobs::stop (line 113) ... FAILED [INFO] [stdout] test src/msf/console.rs - msf::console::detach_session (line 256) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::info (line 210) ... FAILED [INFO] [stdout] test src/msf/core.rs - msf::core::stop (line 452) ... FAILED [INFO] [stdout] test src/msf/jobs.rs - msf::jobs::list (line 16) ... FAILED [INFO] [stdout] test src/msf/console.rs - msf::console::destroy (line 64) ... FAILED [INFO] [stdout] test src/msf/console.rs - msf::console::read (line 206) ... FAILED [INFO] [stdout] test src/msf/console.rs - msf::console::list (line 112) ... FAILED [INFO] [stdout] test src/msf/core.rs - msf::core::add_module (line 17) ... FAILED [INFO] [stdout] test src/msf/jobs.rs - msf::jobs::info (line 60) ... FAILED [INFO] [stdout] test src/msf/core.rs - msf::core::list_thread (line 315) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::new (line 214) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::list::exploits (line 69) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::compactible::sessions (line 353) ... FAILED [INFO] [stdout] test src/msf/blocking/core.rs - msf::blocking::core::stop (line 433) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::run_single (line 316) ... FAILED [INFO] [stdout] test src/msf/core.rs - msf::core::version (line 406) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::clear (line 610) ... FAILED [INFO] [stdout] test src/msf/console.rs - msf::console::create (line 16) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::list::payloads (line 138) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::list::post (line 115) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::list::nops (line 184) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::encoder (line 426) ... FAILED [INFO] [stdout] test src/msf/blocking/core.rs - msf::blocking::core::module_status (line 67) ... FAILED [INFO] [stdout] test src/msf/core.rs - msf::core::reload_module (line 122) ... FAILED [INFO] [stdout] test src/msf/blocking/modules.rs - msf::blocking::modules::compactible::target_payloads (line 314) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::new (line 576) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::execute (line 482) ... FAILED [INFO] [stdout] test src/msf/core.rs - msf::core::module_status (line 70) ... FAILED [INFO] [stdout] test src/msf/modules.rs - msf::modules::compactible::new (line 264) ... FAILED [INFO] [stdout] test src/msf/blocking/sessions.rs - msf::blocking::sessions::shell::read (line 107) ... FAILED [INFO] [stdout] test src/client.rs - client (line 3) ... FAILED [INFO] [stdout] test src/lib.rs - (line 4) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/msf/auth.rs - msf::auth::remove_token (line 200) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/auth.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/auth.rs:206:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/auth.rs:206:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/auth.rs - msf::auth::list_token (line 156) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/auth.rs:161:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/auth.rs:162:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/auth.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/auth.rs - msf::blocking::auth::remove_token (line 188) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/auth.rs:190:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::auth; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/auth.rs - msf::blocking::auth::generate_token (line 102) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/auth.rs:104:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::auth; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/console.rs - msf::blocking::console::create (line 16) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/console.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{console,auth}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/console.rs - msf::blocking::console::tabs (line 331) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/console.rs:333:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,console}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/console.rs - msf::blocking::console::list (line 106) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/console.rs:108:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,console}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/auth.rs - msf::blocking::auth::list_token (line 147) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/auth.rs:149:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::auth; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/auth.rs - msf::blocking::auth::logout (line 14) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/auth.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::auth; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/auth.rs - msf::auth::logout (line 14) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/auth.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/auth.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/auth.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/core.rs - msf::blocking::core::add_module (line 17) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/core.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,core}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/console.rs - msf::blocking::console::read (line 194) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/console.rs:196:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,console}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/core.rs - msf::blocking::core::kill_thread (line 345) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/core.rs:347:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,core}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/core.rs - msf::blocking::core::version (line 389) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/core.rs:391:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,core}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/core.rs - msf::blocking::core::reload_module (line 117) stdout ---- [INFO] [stdout] error: expected `;`, found `auth` [INFO] [stdout] --> src/msf/blocking/core.rs:125:30 [INFO] [stdout] | [INFO] [stdout] 10 | println!("{:?}",response) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 11 | auth::logout(client.clone()).unwrap(); [INFO] [stdout] | ---- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/core.rs:119:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,core}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/auth.rs - msf::blocking::auth::add_token (line 57) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/auth.rs:59:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::auth; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/console.rs - msf::blocking::console::destroy (line 61) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/console.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,console}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/console.rs - msf::blocking::console::kill_session (line 286) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/console.rs:288:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,console}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/auth.rs - msf::auth::add_token (line 60) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/auth.rs:65:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/auth.rs:66:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/auth.rs:66:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/auth.rs - msf::auth::generate_token (line 108) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/auth.rs:113:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/auth.rs:114:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/auth.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/core.rs - msf::blocking::core::save (line 167) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/core.rs:169:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,core}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/core.rs - msf::core::save (line 174) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/core.rs:179:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/core.rs:180:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/core.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/console.rs - msf::blocking::console::write (line 152) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/console.rs:154:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,console}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/core.rs - msf::core::setg (line 220) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/core.rs:225:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/core.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/core.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/jobs.rs - msf::jobs::stop (line 117) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/jobs.rs:122:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cluent` [INFO] [stdout] --> src/msf/jobs.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 9 | let client=Cluent::mew("127.0.0.1",55552,"msf","password",true); [INFO] [stdout] | ^^^^^^ use of undeclared type `Cluent` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/jobs.rs:123:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/jobs.rs:123:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::encoder (line 434) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/modules.rs:440:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `module` [INFO] [stdout] --> src/msf/modules.rs:445:25 [INFO] [stdout] | [INFO] [stdout] 13 | let response:String=module::encoder(client.clone(),"data","encodermodule",option).await.unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `module` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/modules.rs:441:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/modules.rs:441:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/core.rs - msf::core::unsetg (line 268) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/core.rs:273:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/core.rs:274:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/core.rs:274:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::compactible::target_payloads (line 320) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `compactible` in this scope [INFO] [stdout] --> src/msf/modules.rs:321:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=compactible.target_payloads(1).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/modules.rs:321:44 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_modules_rs_320_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=compactible.target_payloads(1).await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::list::exploits (line 71) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/modules.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.exploits().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/modules.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_modules_rs_71_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 3 | let resp=list.exploits().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::list::encoders (line 163) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/modules.rs:164:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.encoders().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/modules.rs:164:25 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_modules_rs_163_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 3 | let resp=list.encoders().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::list::nops (line 186) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/modules.rs:187:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.nops().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/modules.rs:187:21 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_modules_rs_186_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 3 | let resp=list.nops().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::list::new (line 31) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/modules.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/modules.rs:37:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `resp` in this scope [INFO] [stdout] --> src/msf/modules.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 12 | println!("{:?}",resp); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/modules.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::list::payloads (line 140) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/modules.rs:141:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.payloads().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/modules.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_modules_rs_140_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 3 | let resp=list.payloads().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/plugins.rs - msf::plugins::load (line 16) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/plugins.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/plugins.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/plugins.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/plugins.rs - msf::plugins::list (line 115) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/plugins.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/plugins.rs:121:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/plugins.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::list::post (line 117) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/modules.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.posts().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/modules.rs:118:22 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_modules_rs_117_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 3 | let resp=list.posts().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::meterpreter::script (line 365) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/sessions.rs:366:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.script("name.rb").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:366:43 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_365_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=meterpreter.script("name.rb").await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::meterpreter::tabs (line 471) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/sessions.rs:472:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.tabs("hel").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:472:37 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_471_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=meterpreter.tabs("hel").await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::meterpreter::write (line 262) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/sessions.rs:263:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.write("help\n").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:263:41 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_262_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=meterpreter.write("help\n").await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::meterpreter::run_single (line 329) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/sessions.rs:330:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.run_single("help\n").await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:330:46 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_329_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=meterpreter.run_single("help\n").await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/plugins.rs - msf::plugins::unload (line 67) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/plugins.rs:72:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/plugins.rs:73:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/plugins.rs:73:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::meterpreter::new (line 224) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/sessions.rs:229:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/sessions.rs:230:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `response` in this scope [INFO] [stdout] --> src/msf/sessions.rs:234:21 [INFO] [stdout] | [INFO] [stdout] 12 | println!("{:?}",response); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/sessions.rs:230:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::ring::put (line 694) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ring` in this scope [INFO] [stdout] --> src/msf/sessions.rs:695:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=ring.put("data").await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:695:30 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_694_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=ring.put("data").await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::meterpreter::compactible_modules (line 503) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/sessions.rs:504:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.compactible_modules().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:504:47 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_503_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=meterpreter.compactible_modules().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::meterpreter::kill_session (line 436) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/sessions.rs:437:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.kill_session().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:437:40 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_436_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=meterpreter.kill_session().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::ring::last (line 663) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ring` in this scope [INFO] [stdout] --> src/msf/sessions.rs:664:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=ring.last().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:664:25 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_663_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=ring.last().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::meterpreter::detach_session (line 401) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/sessions.rs:402:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.detach_session().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:402:42 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_401_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=meterpreter.detach_session().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::meterpreter::read (line 298) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/sessions.rs:299:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.read().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:299:32 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_298_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=meterpreter.read().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::ring::new (line 592) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/sessions.rs:597:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/sessions.rs:598:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `response` in this scope [INFO] [stdout] --> src/msf/sessions.rs:602:21 [INFO] [stdout] | [INFO] [stdout] 12 | println!("{:?}",response); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/sessions.rs:598:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::shell_upgrade (line 535) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/sessions.rs:540:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/sessions.rs:541:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/sessions.rs:541:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::list (line 17) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/sessions.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/sessions.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/sessions.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::ring::clear (line 628) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ring` in this scope [INFO] [stdout] --> src/msf/sessions.rs:629:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=ring.clear().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/sessions.rs:629:26 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_sessions_rs_628_0() { [INFO] [stdout] | --------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=ring.clear().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::shell::write (line 169) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/sessions.rs:174:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/sessions.rs:175:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/sessions.rs:175:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::stop (line 62) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/sessions.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/sessions.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/sessions.rs:68:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::option (line 387) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/modules.rs:394:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/modules.rs:395:30 [INFO] [stdout] | [INFO] [stdout] 10 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/modules.rs:397:48 [INFO] [stdout] | [INFO] [stdout] 12 | let response:HashMap=modules::option(client.clone(),"moduletype","modulename").await.unwrap(); [INFO] [stdout] | ----------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `options`, found struct `metasploit::msf::modules::structs::response::modules::options` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap<_, options>` [INFO] [stdout] found struct `HashMap<_, metasploit::msf::modules::structs::response::modules::options>` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/modules.rs:395:1 [INFO] [stdout] | [INFO] [stdout] 10 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/sessions.rs - msf::sessions::shell::read (line 112) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/sessions.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/sessions.rs:119:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/sessions.rs:121:35 [INFO] [stdout] | [INFO] [stdout] 11 | let response:resp::shell_read=sessions::shell::read(client.clone(),"1",None).await.unwrap(); [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `shell_read`, found struct `metasploit::msf::sessions::structs::response::sessions::shell_read` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/sessions.rs:119:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::option (line 381) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/modules.rs:383:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,modules}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/console.rs - msf::blocking::console::detach_session (line 241) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/console.rs:243:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,console}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::execute (line 472) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/modules.rs:474:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,modules}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::put (line 676) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ring` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:677:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=ring.put("data").unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/core.rs - msf::blocking::core::list_thread (line 302) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/core.rs:304:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,core}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/plugins.rs - msf::blocking::plugins::load (line 16) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blcoking` [INFO] [stdout] --> src/msf/blocking/plugins.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blcoking::{auth,plugins}; [INFO] [stdout] | ^^^^^^^^ could not find `blcoking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::last (line 645) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ring` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:646:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=ring.last().unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::compactible::payload (line 281) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `compactible` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:282:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=compactible.payloads().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::detach_session (line 388) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:389:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.detach_session().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::compactible::payload (line 287) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `compactible` in this scope [INFO] [stdout] --> src/msf/modules.rs:288:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=compactible.payloads().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/modules.rs:288:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_modules_rs_287_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=compactible.payloads().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/jobs.rs - msf::blocking::jobs::info (line 58) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/jobs.rs:60:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,jobs}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::compactible::sessions (line 347) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `compactible` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:348:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=compactible.sessions().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::kill_session (line 423) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:424:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.kill_session().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::shell::write (line 162) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blcoking` [INFO] [stdout] --> src/msf/blocking/sessions.rs:164:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blcoking::{auth,sessions}; [INFO] [stdout] | ^^^^^^^^ could not find `blcoking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::list (line 17) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/sessions.rs:19:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,sessions}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/jobs.rs - msf::blocking::jobs::list (line 16) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/jobs.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,job}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jobs` [INFO] [stdout] --> src/msf/blocking/jobs.rs:23:41 [INFO] [stdout] | [INFO] [stdout] 9 | let response:HashMap=jobs::list(client.clone()).unwrap(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `jobs` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/plugins.rs - msf::blocking::plugins::list (line 109) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/plugins.rs:111:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,plugins}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::list::auxiliary (line 92) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:93:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.auxiliary().unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/plugins.rs - msf::blocking::plugins::unload (line 64) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/plugins.rs:66:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,plugins}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::list::encoders (line 161) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.encoders().unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/console.rs - msf::console::tabs (line 352) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/console.rs:357:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/console.rs:358:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/console.rs:358:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::compactible_modules (line 490) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:491:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.compactible_modules().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::stop (line 59) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/sessions.rs:61:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,sessions}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::list::auxiliary (line 94) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/modules.rs:95:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.auxiliary().await.unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/modules.rs:95:26 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_modules_rs_94_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 3 | let resp=list.auxiliary().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::read (line 285) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:286:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.read().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/core.rs - msf::blocking::core::unsetg (line 257) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/core.rs:259:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,core}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::tabs (line 458) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:459:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.tabs("hel").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::info (line 208) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/modules.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,modules}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `module` [INFO] [stdout] --> src/msf/blocking/modules.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 9 | let response:resp::info=module::info(client.clone(),"moduletype","modulename").unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `module` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/core.rs - msf::core::kill_thread (line 360) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/core.rs:365:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/core.rs:366:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/core.rs:366:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/core.rs - msf::blocking::core::setg (line 211) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/core.rs:213:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,core}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::script (line 352) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:353:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.script("name.rb").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::shell_upgrade (line 522) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/sessions.rs:524:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,sessions}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/console.rs - msf::console::kill_session (line 304) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/console.rs:309:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/console.rs:310:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/console.rs:310:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::write (line 249) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:250:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.write("help\n").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::list::new (line 31) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/modules.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,modules}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 6 | fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use rmp_serde::decode::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use rmp_serde::encode::Error; [INFO] [stdout] | [INFO] [stdout] and 13 other candidates [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `resp` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 10 | println!("{:?}",resp); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/console.rs - msf::console::write (line 161) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/console.rs:166:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/console.rs:167:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/console.rs:167:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::compactible::new (line 260) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `meetasploit` [INFO] [stdout] --> src/msf/blocking/modules.rs:261:5 [INFO] [stdout] | [INFO] [stdout] 3 | use meetasploit::client::Client; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `meetasploit` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 | use metasploit::client::Client; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/modules.rs:262:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,modules}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client` [INFO] [stdout] --> src/msf/blocking/modules.rs:265:16 [INFO] [stdout] | [INFO] [stdout] 7 | let client=Client::new("127.0.0.1",55552,"msf","password",true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use metasploit::client::Client; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Client; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::blocking::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `response` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:268:21 [INFO] [stdout] | [INFO] [stdout] 10 | println!("{:?}",response); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/jobs.rs - msf::blocking::jobs::stop (line 113) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/jobs.rs:115:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,jobs}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `mew` found for struct `Client` in the current scope [INFO] [stdout] --> src/msf/blocking/jobs.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 7 | let client=Client::mew("127.0.0.1",55552,"msf","password",true); [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | function or associated item not found in `Client` [INFO] [stdout] | help: there is an associated function with a similar name: `new` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/console.rs - msf::console::detach_session (line 256) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/console.rs:261:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/console.rs:262:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/console.rs:262:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::info (line 210) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/modules.rs:216:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `module` [INFO] [stdout] --> src/msf/modules.rs:219:29 [INFO] [stdout] | [INFO] [stdout] 11 | let response:resp::info=module::info(client.clone(),"moduletype","modulename").await.unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `module` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/modules.rs:217:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/modules.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/core.rs - msf::core::stop (line 452) stdout ---- [INFO] [stdout] error: expected expression, found `,` [INFO] [stdout] --> src/msf/core.rs:459:46 [INFO] [stdout] | [INFO] [stdout] 9 | let client=Client::new("127.0.0.1",55552,,"msf","password",true); [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/core.rs:457:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/core.rs:458:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/core.rs:458:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/jobs.rs - msf::jobs::list (line 16) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::job` [INFO] [stdout] --> src/msf/jobs.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::{auth,job}; [INFO] [stdout] | ^^^ [INFO] [stdout] | | [INFO] [stdout] | no `job` in `msf` [INFO] [stdout] | help: a similar name exists in the module: `jobs` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/jobs.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `jobs` [INFO] [stdout] --> src/msf/jobs.rs:25:41 [INFO] [stdout] | [INFO] [stdout] 11 | let response:HashMap=jobs::list(client.clone()).await.unwrap(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `jobs` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/jobs.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/jobs.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/console.rs - msf::console::destroy (line 64) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/console.rs:69:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/console.rs:70:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/console.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/console.rs - msf::console::read (line 206) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/console.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/console.rs:213:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/console.rs:215:29 [INFO] [stdout] | [INFO] [stdout] 11 | let response:resp::read=console::read(client.clone(),"1").await.unwrap(); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `read`, found struct `metasploit::msf::console::structs::response::console::read` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/console.rs:213:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/console.rs - msf::console::list (line 112) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/console.rs:118:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/console.rs:119:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/console.rs:121:29 [INFO] [stdout] | [INFO] [stdout] 11 | let response:resp::list=console::list(client.clone()).await.unwrap(); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `metasploit::response::console::list`, found struct `metasploit::msf::console::structs::response::console::list` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/console.rs:119:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/core.rs - msf::core::add_module (line 17) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/core.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/core.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/core.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 11 | let response:resp::addmodpath=core::add_module(client.clone(),"path").await.unwrap(); [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `addmodpath`, found struct `metasploit::msf::core::structs::response::core::addmodpath` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/core.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/jobs.rs - msf::jobs::info (line 60) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/jobs.rs:66:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/jobs.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/jobs.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 11 | let response:resp::info=jobs::info(client.clone(),"1").await.unwrap(); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `metasploit::response::jobs::info`, found struct `metasploit::msf::jobs::structs::response::jobs::info` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/jobs.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/core.rs - msf::core::list_thread (line 315) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/core.rs:322:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/core.rs:323:30 [INFO] [stdout] | [INFO] [stdout] 10 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/core.rs:325:48 [INFO] [stdout] | [INFO] [stdout] 12 | let response:HashMap=core::list_thread(client.clone()).await.unwrap(); [INFO] [stdout] | ----------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `threadlist`, found struct `metasploit::msf::core::structs::response::core::threadlist` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected struct `HashMap<_, threadlist>` [INFO] [stdout] found struct `HashMap<_, metasploit::msf::core::structs::response::core::threadlist>` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/core.rs:323:1 [INFO] [stdout] | [INFO] [stdout] 10 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::new (line 214) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/sessions.rs:216:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,sessions}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `response` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 10 | println!("{:?}",response); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::list::exploits (line 69) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:70:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.exploits().unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::compactible::sessions (line 353) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `compactible` in this scope [INFO] [stdout] --> src/msf/modules.rs:354:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=compactible.sessions().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/msf/modules.rs:354:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_msf_modules_rs_353_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] 3 | let response=compactible.sessions().await.unwrap(); [INFO] [stdout] | ^^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/core.rs - msf::blocking::core::stop (line 433) stdout ---- [INFO] [stdout] error: expected expression, found `,` [INFO] [stdout] --> src/msf/blocking/core.rs:438:46 [INFO] [stdout] | [INFO] [stdout] 7 | let client=Client::new("127.0.0.1",55552,,"msf","password",true); [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/core.rs:435:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,core}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::run_single (line 316) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `meterpreter` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:317:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=meterpreter.run_single("help\n").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/core.rs - msf::core::version (line 406) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/core.rs:411:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/core.rs:412:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `bool` with `metasploit::msf::core::structs::response::core::version` [INFO] [stdout] --> src/msf/core.rs:414:5 [INFO] [stdout] | [INFO] [stdout] 10 | assert_eq!(true,core::version(client.clone()).await.unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `bool == metasploit::msf::core::structs::response::core::version` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq` is not implemented for `bool` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/core.rs:412:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::clear (line 610) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `ring` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:611:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=ring.clear().unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/console.rs - msf::console::create (line 16) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/console.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/console.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error>{ [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/console.rs:25:33 [INFO] [stdout] | [INFO] [stdout] 11 | let newconsole:resp::create=console::create(client.clone()).await.unwrap(); [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `create`, found struct `metasploit::msf::console::structs::response::console::create` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/console.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error>{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::list::payloads (line 138) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:139:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.payloads().unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::list::post (line 115) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.posts().unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::list::nops (line 184) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `list` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:185:10 [INFO] [stdout] | [INFO] [stdout] 3 | let resp=list.nops().unwrap(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::console::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::jobs::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::plugins::list; [INFO] [stdout] | [INFO] [stdout] 2 | use metasploit::msf::sessions::list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::encoder (line 426) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/modules.rs:428:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,modules}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `module` [INFO] [stdout] --> src/msf/blocking/modules.rs:435:25 [INFO] [stdout] | [INFO] [stdout] 11 | let response:String=module::encoder(client.clone(),"data","encodermodule",option).unwrap(); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `module` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/core.rs - msf::blocking::core::module_status (line 67) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/core.rs:69:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,core}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/core.rs - msf::core::reload_module (line 122) stdout ---- [INFO] [stdout] error: expected `;`, found `auth` [INFO] [stdout] --> src/msf/core.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 12 | println!("{:?}",response) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 13 | auth::logout(client.clone()).await.unwrap(); [INFO] [stdout] | ---- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/core.rs:128:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/core.rs:129:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `reload_modules` in module `core` [INFO] [stdout] --> src/msf/core.rs:131:40 [INFO] [stdout] | [INFO] [stdout] 11 | let response:resp::reloadmod=core::reload_modules(client.clone()).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: a function with a similar name exists: `reload_module` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/msf/core.rs:136:1 [INFO] [stdout] | [INFO] [stdout] 136 | pub async fn reload_module(client:Client) -> Result { [INFO] [stdout] | ---------------------------------------------------------------------------------- similarly named function `reload_module` defined here [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/core.rs:129:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/modules.rs - msf::blocking::modules::compactible::target_payloads (line 314) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `compactible` in this scope [INFO] [stdout] --> src/msf/blocking/modules.rs:315:14 [INFO] [stdout] | [INFO] [stdout] 3 | let response=compactible.target_payloads(1).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::new (line 576) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/sessions.rs:578:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,sessions}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `response` in this scope [INFO] [stdout] --> src/msf/blocking/sessions.rs:584:21 [INFO] [stdout] | [INFO] [stdout] 10 | println!("{:?}",response); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::execute (line 482) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/modules.rs:489:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/modules.rs:490:30 [INFO] [stdout] | [INFO] [stdout] 10 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/modules.rs:490:1 [INFO] [stdout] | [INFO] [stdout] 10 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/core.rs - msf::core::module_status (line 70) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/core.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/core.rs:77:30 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/core.rs:79:35 [INFO] [stdout] | [INFO] [stdout] 11 | let response:resp::modulestat=core::module_status(client.clone()).await.unwrap(); [INFO] [stdout] | ---------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `modulestat`, found struct `metasploit::msf::core::structs::response::core::modulestat` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/core.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 9 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/modules.rs - msf::modules::compactible::new (line 264) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `meetasploit` [INFO] [stdout] --> src/msf/modules.rs:265:5 [INFO] [stdout] | [INFO] [stdout] 3 | use meetasploit::client::Client; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `meetasploit` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 3 | use metasploit::client::Client; [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio` [INFO] [stdout] --> src/msf/modules.rs:269:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | ^^^^ could not find `main` in `tokio` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Error` in this scope [INFO] [stdout] --> src/msf/modules.rs:270:30 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use core::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::io::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use crate::tokio::time::error::Error; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Error; [INFO] [stdout] | [INFO] [stdout] and 15 other candidates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Client` [INFO] [stdout] --> src/msf/modules.rs:271:16 [INFO] [stdout] | [INFO] [stdout] 9 | let client=Client::new("127.0.0.1",55552,"msf","password",true); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use metasploit::client::Client; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::Client; [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::blocking::Client; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `response` in this scope [INFO] [stdout] --> src/msf/modules.rs:274:21 [INFO] [stdout] | [INFO] [stdout] 12 | println!("{:?}",response); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/modules.rs:272:47 [INFO] [stdout] | [INFO] [stdout] 10 | let compactible=modules::compactible::new("modulename",client.clone()); [INFO] [stdout] | ^^^^^^^^^^^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found `&str` [INFO] [stdout] [INFO] [stdout] error[E0752]: `main` function is not allowed to be `async` [INFO] [stdout] --> src/msf/modules.rs:270:1 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(),Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `main` function is not allowed to be `async` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0425, E0433, E0752. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/msf/blocking/sessions.rs - msf::blocking::sessions::shell::read (line 107) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `metasploit::msf::blocking` [INFO] [stdout] --> src/msf/blocking/sessions.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 4 | use metasploit::msf::blocking::{auth,sessions}; [INFO] [stdout] | ^^^^^^^^ could not find `blocking` in `msf` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/msf/blocking/sessions.rs:117:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn main() { [INFO] [stdout] | - expected `()` because of default return type [INFO] [stdout] ... [INFO] [stdout] 12 | Ok(()) [INFO] [stdout] | ^^^^^^- help: consider using a semicolon here: `;` [INFO] [stdout] | | [INFO] [stdout] | expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result<(), _>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client (line 3) stdout ---- [INFO] [stdout] Test executable failed (exit code 101). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] thread 'main' panicked at 'Couldn't connect to the metasploit RPC Server at 127.0.0.1:4040', src/client.rs:55:17 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55658908fa6d - std::backtrace_rs::backtrace::libunwind::trace::hee598835bc88d35b [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x55658908fa6d - std::backtrace_rs::backtrace::trace_unsynchronized::h9cdc730ba5cf5d72 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55658908fa6d - std::sys_common::backtrace::_print_fmt::h75aeaf7ed30e43fa [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x55658908fa6d - ::fmt::h606862f787600875 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5565890b23bc - core::fmt::write::he803f0f418caf762 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/fmt/mod.rs:1190:17 [INFO] [stdout] 5: 0x556589089998 - std::io::Write::write_fmt::h70bc45872f37e7bb [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/io/mod.rs:1657:15 [INFO] [stdout] 6: 0x556589091a97 - std::sys_common::backtrace::_print::h64d038cf8ac3e13e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x556589091a97 - std::sys_common::backtrace::print::h359300b4a7fccf65 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x556589091a97 - std::panicking::default_hook::{{closure}}::hf51be35e2f510149 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x556589091760 - std::panicking::default_hook::h03ca0f22e1d2d25e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:314:9 [INFO] [stdout] 10: 0x5565890921e9 - std::panicking::rust_panic_with_hook::h3b7380e99b825b63 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x556589091ed7 - std::panicking::begin_panic_handler::{{closure}}::h8e849d0710154ce0 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x55658908ff34 - std::sys_common::backtrace::__rust_end_short_backtrace::hedcdaddbd4c46cc5 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x556589091be9 - rust_begin_unwind [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x556588be59e3 - core::panicking::panic_fmt::he1bbc7336d49a357 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x556588bea275 - metasploit::client::Client::new::hb398c19619f974f8 [INFO] [stdout] at /opt/rustwide/workdir/src/client.rs:55:5 [INFO] [stdout] 16: 0x556588be6409 - rust_out::main::he239c4229bb09803 [INFO] [stdout] 17: 0x556588be6353 - core::ops::function::FnOnce::call_once::h13013349529417b5 [INFO] [stdout] 18: 0x556588be64d9 - std::sys_common::backtrace::__rust_begin_short_backtrace::hf40d275ec09763ca [INFO] [stdout] 19: 0x556588be64a9 - std::rt::lang_start::{{closure}}::h3f8eb3e9838506c6 [INFO] [stdout] 20: 0x55658908f151 - core::ops::function::impls:: for &F>::call_once::hb7014f43484a8b4e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:259:13 [INFO] [stdout] 21: 0x55658908f151 - std::panicking::try::do_call::h7bc9dc436daeb8c7 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40 [INFO] [stdout] 22: 0x55658908f151 - std::panicking::try::h653d68a27ff5f175 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19 [INFO] [stdout] 23: 0x55658908f151 - std::panic::catch_unwind::h9d739f9f59895e68 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14 [INFO] [stdout] 24: 0x55658908f151 - std::rt::lang_start_internal::{{closure}}::hf006f2bc7ce22bbe [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/rt.rs:128:48 [INFO] [stdout] 25: 0x55658908f151 - std::panicking::try::do_call::hfb39d6df61a2e69f [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x55658908f151 - std::panicking::try::h13e2d225134958ac [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x55658908f151 - std::panic::catch_unwind::h3bd49b5a5dfb1a50 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x55658908f151 - std::rt::lang_start_internal::h2ba92edce36c035e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/rt.rs:128:20 [INFO] [stdout] 29: 0x556588be6491 - std::rt::lang_start::he6b3cd9500177830 [INFO] [stdout] 30: 0x556588be6533 - main [INFO] [stdout] 31: 0x7f1be94830b3 - __libc_start_main [INFO] [stdout] 32: 0x556588be626e - _start [INFO] [stdout] 33: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 4) stdout ---- [INFO] [stdout] Test executable failed (exit code 101). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] thread 'main' panicked at 'Couldn't connect to the metasploit RPC Server at 127.0.0.1:55552', src/client.rs:55:17 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x55c880d477fd - std::backtrace_rs::backtrace::libunwind::trace::hee598835bc88d35b [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x55c880d477fd - std::backtrace_rs::backtrace::trace_unsynchronized::h9cdc730ba5cf5d72 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55c880d477fd - std::sys_common::backtrace::_print_fmt::h75aeaf7ed30e43fa [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x55c880d477fd - ::fmt::h606862f787600875 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x55c880d6a47c - core::fmt::write::he803f0f418caf762 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/fmt/mod.rs:1190:17 [INFO] [stdout] 5: 0x55c880d41658 - std::io::Write::write_fmt::h70bc45872f37e7bb [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/io/mod.rs:1657:15 [INFO] [stdout] 6: 0x55c880d49a27 - std::sys_common::backtrace::_print::h64d038cf8ac3e13e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x55c880d49a27 - std::sys_common::backtrace::print::h359300b4a7fccf65 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x55c880d49a27 - std::panicking::default_hook::{{closure}}::hf51be35e2f510149 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x55c880d496f0 - std::panicking::default_hook::h03ca0f22e1d2d25e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:314:9 [INFO] [stdout] 10: 0x55c880d4a179 - std::panicking::rust_panic_with_hook::h3b7380e99b825b63 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x55c880d49e67 - std::panicking::begin_panic_handler::{{closure}}::h8e849d0710154ce0 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x55c880d47cc4 - std::sys_common::backtrace::__rust_end_short_backtrace::hedcdaddbd4c46cc5 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x55c880d49b79 - rust_begin_unwind [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x55c88089ca93 - core::panicking::panic_fmt::he1bbc7336d49a357 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x55c8808a15a5 - metasploit::client::Client::new::hb398c19619f974f8 [INFO] [stdout] at /opt/rustwide/workdir/src/client.rs:55:5 [INFO] [stdout] 16: 0x55c88089d4bc - rust_out::main::he239c4229bb09803 [INFO] [stdout] 17: 0x55c88089d403 - core::ops::function::FnOnce::call_once::h13013349529417b5 [INFO] [stdout] 18: 0x55c88089d689 - std::sys_common::backtrace::__rust_begin_short_backtrace::hf40d275ec09763ca [INFO] [stdout] 19: 0x55c88089d659 - std::rt::lang_start::{{closure}}::h3f8eb3e9838506c6 [INFO] [stdout] 20: 0x55c880d46ee1 - core::ops::function::impls:: for &F>::call_once::hb7014f43484a8b4e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:259:13 [INFO] [stdout] 21: 0x55c880d46ee1 - std::panicking::try::do_call::h7bc9dc436daeb8c7 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40 [INFO] [stdout] 22: 0x55c880d46ee1 - std::panicking::try::h653d68a27ff5f175 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19 [INFO] [stdout] 23: 0x55c880d46ee1 - std::panic::catch_unwind::h9d739f9f59895e68 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14 [INFO] [stdout] 24: 0x55c880d46ee1 - std::rt::lang_start_internal::{{closure}}::hf006f2bc7ce22bbe [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/rt.rs:128:48 [INFO] [stdout] 25: 0x55c880d46ee1 - std::panicking::try::do_call::hfb39d6df61a2e69f [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40 [INFO] [stdout] 26: 0x55c880d46ee1 - std::panicking::try::h13e2d225134958ac [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19 [INFO] [stdout] 27: 0x55c880d46ee1 - std::panic::catch_unwind::h3bd49b5a5dfb1a50 [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14 [INFO] [stdout] 28: 0x55c880d46ee1 - std::rt::lang_start_internal::h2ba92edce36c035e [INFO] [stdout] at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/rt.rs:128:20 [INFO] [stdout] 29: 0x55c88089d641 - std::rt::lang_start::he6b3cd9500177830 [INFO] [stdout] 30: 0x55c88089d7c3 - main [INFO] [stdout] 31: 0x7eff145ef0b3 - __libc_start_main [INFO] [stdout] 32: 0x55c88089d31e - _start [INFO] [stdout] 33: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client (line 3) [INFO] [stdout] src/lib.rs - (line 4) [INFO] [stdout] src/msf/auth.rs - msf::auth::add_token (line 60) [INFO] [stdout] src/msf/auth.rs - msf::auth::generate_token (line 108) [INFO] [stdout] src/msf/auth.rs - msf::auth::list_token (line 156) [INFO] [stdout] src/msf/auth.rs - msf::auth::logout (line 14) [INFO] [stdout] src/msf/auth.rs - msf::auth::remove_token (line 200) [INFO] [stdout] src/msf/blocking/auth.rs - msf::blocking::auth::add_token (line 57) [INFO] [stdout] src/msf/blocking/auth.rs - msf::blocking::auth::generate_token (line 102) [INFO] [stdout] src/msf/blocking/auth.rs - msf::blocking::auth::list_token (line 147) [INFO] [stdout] src/msf/blocking/auth.rs - msf::blocking::auth::logout (line 14) [INFO] [stdout] src/msf/blocking/auth.rs - msf::blocking::auth::remove_token (line 188) [INFO] [stdout] src/msf/blocking/console.rs - msf::blocking::console::create (line 16) [INFO] [stdout] src/msf/blocking/console.rs - msf::blocking::console::destroy (line 61) [INFO] [stdout] src/msf/blocking/console.rs - msf::blocking::console::detach_session (line 241) [INFO] [stdout] src/msf/blocking/console.rs - msf::blocking::console::kill_session (line 286) [INFO] [stdout] src/msf/blocking/console.rs - msf::blocking::console::list (line 106) [INFO] [stdout] src/msf/blocking/console.rs - msf::blocking::console::read (line 194) [INFO] [stdout] src/msf/blocking/console.rs - msf::blocking::console::tabs (line 331) [INFO] [stdout] src/msf/blocking/console.rs - msf::blocking::console::write (line 152) [INFO] [stdout] src/msf/blocking/core.rs - msf::blocking::core::add_module (line 17) [INFO] [stdout] src/msf/blocking/core.rs - msf::blocking::core::kill_thread (line 345) [INFO] [stdout] src/msf/blocking/core.rs - msf::blocking::core::list_thread (line 302) [INFO] [stdout] src/msf/blocking/core.rs - msf::blocking::core::module_status (line 67) [INFO] [stdout] src/msf/blocking/core.rs - msf::blocking::core::reload_module (line 117) [INFO] [stdout] src/msf/blocking/core.rs - msf::blocking::core::save (line 167) [INFO] [stdout] src/msf/blocking/core.rs - msf::blocking::core::setg (line 211) [INFO] [stdout] src/msf/blocking/core.rs - msf::blocking::core::stop (line 433) [INFO] [stdout] src/msf/blocking/core.rs - msf::blocking::core::unsetg (line 257) [INFO] [stdout] src/msf/blocking/core.rs - msf::blocking::core::version (line 389) [INFO] [stdout] src/msf/blocking/jobs.rs - msf::blocking::jobs::info (line 58) [INFO] [stdout] src/msf/blocking/jobs.rs - msf::blocking::jobs::list (line 16) [INFO] [stdout] src/msf/blocking/jobs.rs - msf::blocking::jobs::stop (line 113) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::compactible::new (line 260) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::compactible::payload (line 281) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::compactible::sessions (line 347) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::compactible::target_payloads (line 314) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::encoder (line 426) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::execute (line 472) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::info (line 208) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::list::auxiliary (line 92) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::list::encoders (line 161) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::list::exploits (line 69) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::list::new (line 31) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::list::nops (line 184) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::list::payloads (line 138) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::list::post (line 115) [INFO] [stdout] src/msf/blocking/modules.rs - msf::blocking::modules::option (line 381) [INFO] [stdout] src/msf/blocking/plugins.rs - msf::blocking::plugins::list (line 109) [INFO] [stdout] src/msf/blocking/plugins.rs - msf::blocking::plugins::load (line 16) [INFO] [stdout] src/msf/blocking/plugins.rs - msf::blocking::plugins::unload (line 64) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::list (line 17) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::compactible_modules (line 490) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::detach_session (line 388) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::kill_session (line 423) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::new (line 214) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::read (line 285) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::run_single (line 316) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::script (line 352) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::tabs (line 458) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::meterpreter::write (line 249) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::clear (line 610) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::last (line 645) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::new (line 576) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::ring::put (line 676) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::shell::read (line 107) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::shell::write (line 162) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::shell_upgrade (line 522) [INFO] [stdout] src/msf/blocking/sessions.rs - msf::blocking::sessions::stop (line 59) [INFO] [stdout] src/msf/console.rs - msf::console::create (line 16) [INFO] [stdout] src/msf/console.rs - msf::console::destroy (line 64) [INFO] [stdout] src/msf/console.rs - msf::console::detach_session (line 256) [INFO] [stdout] src/msf/console.rs - msf::console::kill_session (line 304) [INFO] [stdout] src/msf/console.rs - msf::console::list (line 112) [INFO] [stdout] src/msf/console.rs - msf::console::read (line 206) [INFO] [stdout] src/msf/console.rs - msf::console::tabs (line 352) [INFO] [stdout] src/msf/console.rs - msf::console::write (line 161) [INFO] [stdout] src/msf/core.rs - msf::core::add_module (line 17) [INFO] [stdout] src/msf/core.rs - msf::core::kill_thread (line 360) [INFO] [stdout] src/msf/core.rs - msf::core::list_thread (line 315) [INFO] [stdout] src/msf/core.rs - msf::core::module_status (line 70) [INFO] [stdout] src/msf/core.rs - msf::core::reload_module (line 122) [INFO] [stdout] src/msf/core.rs - msf::core::save (line 174) [INFO] [stdout] src/msf/core.rs - msf::core::setg (line 220) [INFO] [stdout] src/msf/core.rs - msf::core::stop (line 452) [INFO] [stdout] src/msf/core.rs - msf::core::unsetg (line 268) [INFO] [stdout] src/msf/core.rs - msf::core::version (line 406) [INFO] [stdout] src/msf/jobs.rs - msf::jobs::info (line 60) [INFO] [stdout] src/msf/jobs.rs - msf::jobs::list (line 16) [INFO] [stdout] src/msf/jobs.rs - msf::jobs::stop (line 117) [INFO] [stdout] src/msf/modules.rs - msf::modules::compactible::new (line 264) [INFO] [stdout] src/msf/modules.rs - msf::modules::compactible::payload (line 287) [INFO] [stdout] src/msf/modules.rs - msf::modules::compactible::sessions (line 353) [INFO] [stdout] src/msf/modules.rs - msf::modules::compactible::target_payloads (line 320) [INFO] [stdout] src/msf/modules.rs - msf::modules::encoder (line 434) [INFO] [stdout] src/msf/modules.rs - msf::modules::execute (line 482) [INFO] [stdout] src/msf/modules.rs - msf::modules::info (line 210) [INFO] [stdout] src/msf/modules.rs - msf::modules::list::auxiliary (line 94) [INFO] [stdout] src/msf/modules.rs - msf::modules::list::encoders (line 163) [INFO] [stdout] src/msf/modules.rs - msf::modules::list::exploits (line 71) [INFO] [stdout] src/msf/modules.rs - msf::modules::list::new (line 31) [INFO] [stdout] src/msf/modules.rs - msf::modules::list::nops (line 186) [INFO] [stdout] src/msf/modules.rs - msf::modules::list::payloads (line 140) [INFO] [stdout] src/msf/modules.rs - msf::modules::list::post (line 117) [INFO] [stdout] src/msf/modules.rs - msf::modules::option (line 387) [INFO] [stdout] src/msf/plugins.rs - msf::plugins::list (line 115) [INFO] [stdout] src/msf/plugins.rs - msf::plugins::load (line 16) [INFO] [stdout] src/msf/plugins.rs - msf::plugins::unload (line 67) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::list (line 17) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::meterpreter::compactible_modules (line 503) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::meterpreter::detach_session (line 401) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::meterpreter::kill_session (line 436) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::meterpreter::new (line 224) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::meterpreter::read (line 298) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::meterpreter::run_single (line 329) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::meterpreter::script (line 365) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::meterpreter::tabs (line 471) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::meterpreter::write (line 262) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::ring::clear (line 628) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::ring::last (line 663) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::ring::new (line 592) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::ring::put (line 694) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::shell::read (line 112) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::shell::write (line 169) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::shell_upgrade (line 535) [INFO] [stdout] src/msf/sessions.rs - msf::sessions::stop (line 62) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 30 passed; 126 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.57s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "53691255710eb3ccae51923577daf15cc91a97c60a8825fc2b346c838c26f37b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53691255710eb3ccae51923577daf15cc91a97c60a8825fc2b346c838c26f37b", kill_on_drop: false }` [INFO] [stdout] 53691255710eb3ccae51923577daf15cc91a97c60a8825fc2b346c838c26f37b