[INFO] cloning repository https://github.com/LiquidZHR/DLLInjector-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LiquidZHR/DLLInjector-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiquidZHR%2FDLLInjector-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiquidZHR%2FDLLInjector-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9647c00c11e670f000e47f4ef4247476ae8952d0 [INFO] testing LiquidZHR/DLLInjector-rs against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLiquidZHR%2FDLLInjector-rs" "/workspace/builds/worker-32/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-32/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/LiquidZHR/DLLInjector-rs on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/LiquidZHR/DLLInjector-rs [INFO] finished tweaking git repo https://github.com/LiquidZHR/DLLInjector-rs [INFO] tweaked toml for git repo https://github.com/LiquidZHR/DLLInjector-rs written to /workspace/builds/worker-32/source/Cargo.toml [INFO] crate git repo https://github.com/LiquidZHR/DLLInjector-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-32/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-32/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" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2204ce30f686c28cf1493dfa412f9606dd15a1ef402825017b55a8119b76d17b [INFO] running `Command { std: "docker" "start" "-a" "2204ce30f686c28cf1493dfa412f9606dd15a1ef402825017b55a8119b76d17b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2204ce30f686c28cf1493dfa412f9606dd15a1ef402825017b55a8119b76d17b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2204ce30f686c28cf1493dfa412f9606dd15a1ef402825017b55a8119b76d17b", kill_on_drop: false }` [INFO] [stdout] 2204ce30f686c28cf1493dfa412f9606dd15a1ef402825017b55a8119b76d17b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-32/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-32/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" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9fa7286626b97969d3568ed6e82174ac91e8ecea4a85131b16687ce71cee5897 [INFO] running `Command { std: "docker" "start" "-a" "9fa7286626b97969d3568ed6e82174ac91e8ecea4a85131b16687ce71cee5897", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling sysinfo v0.20.5 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling DLLInjector v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use winapi::shared::{ [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::memoryapi::{VirtualAllocEx, WriteProcessMemory}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::libloaderapi::GetProcAddress; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::winuser::MessageBoxA; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use winapi::um::processthreadsapi::{CreateRemoteThread, OpenProcess}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::um::winnt::{HANDLE, MEM_COMMIT, PAGE_READWRITE, PROCESS_ALL_ACCESS}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::um::libloaderapi::{ [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | handle:HANDLE [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stdout] --> src/main.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | let handle:HANDLE = unsafe { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stdout] --> src/main.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | OpenProcess(PROCESS_ALL_ACCESS, 0, pid as u32) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_ALL_ACCESS` in this scope [INFO] [stdout] --> src/main.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 49 | OpenProcess(PROCESS_ALL_ACCESS, 0, pid as u32) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetProcAddress` in this scope [INFO] [stdout] --> src/main.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | GetProcAddress(GetModuleHandleA("kernel32.dll\0".as_ptr() as _), "LoadLibraryA\0".as_ptr() as _) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleHandleA` in this scope [INFO] [stdout] --> src/main.rs:64:28 [INFO] [stdout] | [INFO] [stdout] 64 | GetProcAddress(GetModuleHandleA("kernel32.dll\0".as_ptr() as _), "LoadLibraryA\0".as_ptr() as _) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAllocEx` in this scope [INFO] [stdout] --> src/main.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | VirtualAllocEx(self.handle, null_mut(), dll_path_len, MEM_COMMIT, PAGE_READWRITE) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stdout] --> src/main.rs:71:67 [INFO] [stdout] | [INFO] [stdout] 71 | VirtualAllocEx(self.handle, null_mut(), dll_path_len, MEM_COMMIT, PAGE_READWRITE) [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_READWRITE` in this scope [INFO] [stdout] --> src/main.rs:71:79 [INFO] [stdout] | [INFO] [stdout] 71 | VirtualAllocEx(self.handle, null_mut(), dll_path_len, MEM_COMMIT, PAGE_READWRITE) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stdout] --> src/main.rs:75:13 [INFO] [stdout] | [INFO] [stdout] 75 | WriteProcessMemory(self.handle, alloc_mem, dll_path_str.as_ptr() as _ , dll_path_len, null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> src/main.rs:76:58 [INFO] [stdout] | [INFO] [stdout] 76 | type thread_func = unsafe extern "system" fn(LPVOID)->DWORD; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stdout] --> src/main.rs:76:67 [INFO] [stdout] | [INFO] [stdout] 76 | type thread_func = unsafe extern "system" fn(LPVOID)->DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateRemoteThread` in this scope [INFO] [stdout] --> src/main.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | CreateRemoteThread(self.handle, null_mut(), 0, Some(func), alloc_mem, 0, null_mut()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `null` [INFO] [stdout] --> src/main.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::ptr::{null, null_mut}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `thread_func` should have an upper camel case name [INFO] [stdout] --> src/main.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | type thread_func = unsafe extern "system" fn(LPVOID)->DWORD; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ThreadFunc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 27 | fn get_process_by_name(pName:&str) -> Vec { [INFO] [stdout] | ---------- expected `Vec` because of return type [INFO] [stdout] ... [INFO] [stdout] 38 | process_vec [INFO] [stdout] | ^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `DLLInjector` due to 22 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9fa7286626b97969d3568ed6e82174ac91e8ecea4a85131b16687ce71cee5897", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fa7286626b97969d3568ed6e82174ac91e8ecea4a85131b16687ce71cee5897", kill_on_drop: false }` [INFO] [stdout] 9fa7286626b97969d3568ed6e82174ac91e8ecea4a85131b16687ce71cee5897