[INFO] fetching crate hacktools 1.1.0... [INFO] testing hacktools-1.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate hacktools 1.1.0 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate hacktools 1.1.0 [INFO] finished tweaking crates.io crate hacktools 1.1.0 [INFO] tweaked toml for crates.io crate hacktools 1.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate hacktools 1.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate hacktools 1.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded text_placeholder v0.4.1 [INFO] [stderr] Downloaded rustscan v2.1.1 [INFO] [stderr] Downloaded cidr-utils v0.5.10 [INFO] [stderr] Downloaded trust-dns-rustls v0.19.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 391879e9ddb12492a42f2b3d1d98f5943ede6ddf9b1afa9160f187217f781f95 [INFO] running `Command { std: "docker" "start" "-a" "391879e9ddb12492a42f2b3d1d98f5943ede6ddf9b1afa9160f187217f781f95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "391879e9ddb12492a42f2b3d1d98f5943ede6ddf9b1afa9160f187217f781f95", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "391879e9ddb12492a42f2b3d1d98f5943ede6ddf9b1afa9160f187217f781f95", kill_on_drop: false }` [INFO] [stdout] 391879e9ddb12492a42f2b3d1d98f5943ede6ddf9b1afa9160f187217f781f95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29fe889ffae15530b15749ccd6e4163d3b9b41d5accff13c8950ba4a172c21c1 [INFO] running `Command { std: "docker" "start" "-a" "29fe889ffae15530b15749ccd6e4163d3b9b41d5accff13c8950ba4a172c21c1", kill_on_drop: false }` [INFO] [stderr] warning: hacktools v1.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `rustscan` which is missing a lib target [INFO] [stderr] Compiling proc-macro2 v1.0.64 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling quote v1.0.29 [INFO] [stderr] Compiling unicode-ident v1.0.10 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling pin-project-lite v0.2.10 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling itoa v1.0.8 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling futures-sink v0.3.28 [INFO] [stderr] Compiling tracing-core v0.1.31 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling openssl v0.10.55 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling syn v2.0.25 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling openssl-sys v0.9.90 [INFO] [stderr] Compiling value-bag v1.4.1 [INFO] [stderr] Compiling serde v1.0.171 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling log v0.4.19 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling ryu v1.0.14 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling is-docker v0.2.0 [INFO] [stderr] Compiling serde_json v1.0.102 [INFO] [stderr] Compiling is-wsl v0.4.0 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling pathdiff v0.2.1 [INFO] [stderr] Compiling base64 v0.21.2 [INFO] [stderr] Compiling ipnet v2.8.0 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling open v5.0.0 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling colorized v1.0.0 [INFO] [stderr] Compiling url v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.171 [INFO] [stderr] Compiling tokio-util v0.7.8 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.20 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.18 [INFO] [stderr] Compiling hacktools v1.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `execute_shellcode` and `msflist` [INFO] [stdout] --> src/main.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use hacktools::{*, tools::{execute_shellcode, msflist}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | msf("windows/meterpreter/reverse_tcp", "127.0.0.1", 909, "", 0, "c", "pop.c"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = msf("windows/meterpreter/reverse_tcp", "127.0.0.1", 909, "", 0, "c", "pop.c"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 56.81s [INFO] running `Command { std: "docker" "inspect" "29fe889ffae15530b15749ccd6e4163d3b9b41d5accff13c8950ba4a172c21c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29fe889ffae15530b15749ccd6e4163d3b9b41d5accff13c8950ba4a172c21c1", kill_on_drop: false }` [INFO] [stdout] 29fe889ffae15530b15749ccd6e4163d3b9b41d5accff13c8950ba4a172c21c1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bd86eff2c919a9173d6faa624dbd74024fe36f7a8553c5006ca8a93613b99add [INFO] running `Command { std: "docker" "start" "-a" "bd86eff2c919a9173d6faa624dbd74024fe36f7a8553c5006ca8a93613b99add", kill_on_drop: false }` [INFO] [stderr] warning: hacktools v1.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `rustscan` which is missing a lib target [INFO] [stderr] Compiling hacktools v1.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `execute_shellcode` and `msflist` [INFO] [stdout] --> src/main.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use hacktools::{*, tools::{execute_shellcode, msflist}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | msf("windows/meterpreter/reverse_tcp", "127.0.0.1", 909, "", 0, "c", "pop.c"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 10 | let _ = msf("windows/meterpreter/reverse_tcp", "127.0.0.1", 909, "", 0, "c", "pop.c"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.26s [INFO] running `Command { std: "docker" "inspect" "bd86eff2c919a9173d6faa624dbd74024fe36f7a8553c5006ca8a93613b99add", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bd86eff2c919a9173d6faa624dbd74024fe36f7a8553c5006ca8a93613b99add", kill_on_drop: false }` [INFO] [stdout] bd86eff2c919a9173d6faa624dbd74024fe36f7a8553c5006ca8a93613b99add [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6fbf47b018de57be53963255e135a98ebf0e41305b866b0bc07f6b7ed0273952 [INFO] running `Command { std: "docker" "start" "-a" "6fbf47b018de57be53963255e135a98ebf0e41305b866b0bc07f6b7ed0273952", kill_on_drop: false }` [INFO] [stderr] warning: hacktools v1.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `rustscan` which is missing a lib target [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/main.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Error` [INFO] [stderr] --> src/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `execute_shellcode` and `msflist` [INFO] [stderr] --> src/main.rs:4:28 [INFO] [stderr] | [INFO] [stderr] 4 | use hacktools::{*, tools::{execute_shellcode, msflist}}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | msf("windows/meterpreter/reverse_tcp", "127.0.0.1", 909, "", 0, "c", "pop.c"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 10 | let _ = msf("windows/meterpreter/reverse_tcp", "127.0.0.1", 909, "", 0, "c", "pop.c"); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `hacktools` (bin "hacktools" test) generated 4 warnings (run `cargo fix --bin "hacktools" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.31s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/hacktools-01c9645caad432fa) [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] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/hacktools-e6fd60a55086de66) [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 hacktools [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/lib.rs - tools::msf (line 182) ... FAILED [INFO] [stdout] test src/lib.rs - tools::scan (line 30) ... FAILED [INFO] [stdout] test src/lib.rs - tools::msflist (line 216) ... FAILED [INFO] [stdout] test src/lib.rs - tools::shell (line 147) ... FAILED [INFO] [stdout] test src/lib.rs - tools::dirf (line 241) ... ok [INFO] [stdout] test src/lib.rs - tools::press_scan (line 106) ... ok [INFO] [stdout] test src/lib.rs - tools::forbid (line 276) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - tools::msf (line 182) stdout ---- [INFO] [stdout] error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `number` [INFO] [stdout] --> src/lib.rs:186:51 [INFO] [stdout] | [INFO] [stdout] 6 | msf("exploit", "ip", port, encoder, iteration number, "format", "Name of File"); [INFO] [stdout] | -^^^^^^ expected one of 8 possible tokens [INFO] [stdout] | | [INFO] [stdout] | help: missing `,` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io` [INFO] [stdout] --> src/lib.rs:185:25 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() -> Result<(), io::Error> { [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `io` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml` [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 5 - fn main() -> Result<(), io::Error> { [INFO] [stdout] 5 + fn main() -> Result<(), i8::Error> { [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 4 + use std::io; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `port` in this scope [INFO] [stdout] --> src/lib.rs:186:26 [INFO] [stdout] | [INFO] [stdout] 6 | msf("exploit", "ip", port, encoder, iteration number, "format", "Name of File"); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `encoder` in this scope [INFO] [stdout] --> src/lib.rs:186:32 [INFO] [stdout] | [INFO] [stdout] 6 | msf("exploit", "ip", port, encoder, iteration number, "format", "Name of File"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `iteration` in this scope [INFO] [stdout] --> src/lib.rs:186:41 [INFO] [stdout] | [INFO] [stdout] 6 | msf("exploit", "ip", port, encoder, iteration number, "format", "Name of File"); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `number` in this scope [INFO] [stdout] --> src/lib.rs:186:51 [INFO] [stdout] | [INFO] [stdout] 6 | msf("exploit", "ip", port, encoder, iteration number, "format", "Name of File"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 7 arguments but 8 arguments were supplied [INFO] [stdout] --> src/lib.rs:186:5 [INFO] [stdout] | [INFO] [stdout] 6 | msf("exploit", "ip", port, encoder, iteration number, "format", "Name of File"); [INFO] [stdout] | ^^^ -------------- unexpected argument #8 of type `&'static str` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:189:12 [INFO] [stdout] | [INFO] [stdout] 189 | pub fn msf(exploit: &str, ip: &str, port: u16, encode: &str, iteration: u16, form: &str, nof: &str) -> Result<(), io::Error> { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 6 - msf("exploit", "ip", port, encoder, iteration number, "format", "Name of File"); [INFO] [stdout] 6 + msf("exploit", "ip", port, encoder, iteration number, "format"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - tools::scan (line 30) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `scan` in this scope [INFO] [stdout] --> src/lib.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 3 | scan("127.0.0.1", 80..81, duration::new(5,0)); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use hacktools::scan; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `duration` [INFO] [stdout] --> src/lib.rs:32:31 [INFO] [stdout] | [INFO] [stdout] 3 | scan("127.0.0.1", 80..81, duration::new(5,0)); [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `duration` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `duration`, use `cargo add duration` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - tools::msflist (line 216) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io` [INFO] [stdout] --> src/lib.rs:219:25 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() -> Result<(), io::Error> { [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `io` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml` [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 5 - fn main() -> Result<(), io::Error> { [INFO] [stdout] 5 + fn main() -> Result<(), i8::Error> { [INFO] [stdout] | [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 4 + use std::io; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `msflist` in this scope [INFO] [stdout] --> src/lib.rs:220:5 [INFO] [stdout] | [INFO] [stdout] 6 | msflist("encoders"); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 4 + use hacktools::tools::msflist; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - tools::shell (line 147) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `shell` in this scope [INFO] [stdout] --> src/lib.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 4 | shell(input, execute_shellcode); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use hacktools::shell; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `execute_shellcode` in this scope [INFO] [stdout] --> src/lib.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 4 | shell(input, execute_shellcode); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use hacktools::tools::execute_shellcode; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - tools::msf (line 182) [INFO] [stdout] src/lib.rs - tools::msflist (line 216) [INFO] [stdout] src/lib.rs - tools::scan (line 30) [INFO] [stdout] src/lib.rs - tools::shell (line 147) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.64s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "6fbf47b018de57be53963255e135a98ebf0e41305b866b0bc07f6b7ed0273952", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6fbf47b018de57be53963255e135a98ebf0e41305b866b0bc07f6b7ed0273952", kill_on_drop: false }` [INFO] [stdout] 6fbf47b018de57be53963255e135a98ebf0e41305b866b0bc07f6b7ed0273952