[INFO] cloning repository https://github.com/0rphon/Farcry5MiniHack [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0rphon/Farcry5MiniHack" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0rphon%2FFarcry5MiniHack", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0rphon%2FFarcry5MiniHack'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 99acf5b74977c684c709cc11f385e08fe40a721f [INFO] checking 0rphon/Farcry5MiniHack against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0rphon%2FFarcry5MiniHack" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/0rphon/Farcry5MiniHack on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/0rphon/Farcry5MiniHack [INFO] finished tweaking git repo https://github.com/0rphon/Farcry5MiniHack [INFO] tweaked toml for git repo https://github.com/0rphon/Farcry5MiniHack written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/0rphon/Farcry5MiniHack already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/0rphon/hakorlib` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b576690ad934fccceec3cd3240e32f1f82eab2e7f5b686126b3247ece52c65af [INFO] running `Command { std: "docker" "start" "-a" "b576690ad934fccceec3cd3240e32f1f82eab2e7f5b686126b3247ece52c65af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b576690ad934fccceec3cd3240e32f1f82eab2e7f5b686126b3247ece52c65af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b576690ad934fccceec3cd3240e32f1f82eab2e7f5b686126b3247ece52c65af", kill_on_drop: false }` [INFO] [stdout] b576690ad934fccceec3cd3240e32f1f82eab2e7f5b686126b3247ece52c65af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26c3b8feae70cfcc40f5323e87a94da836e6d0a488060a817d432fa2c0f78d96 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "26c3b8feae70cfcc40f5323e87a94da836e6d0a488060a817d432fa2c0f78d96", kill_on_drop: false }` [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Checking wio v0.2.2 [INFO] [stderr] Checking hakorlib v0.1.0 (https://github.com/0rphon/hakorlib#14439eb6) [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use winapi::um::tlhelp32::{TH32CS_SNAPPROCESS, PROCESSENTRY32W, TH32CS_SNAPMODULE, TH32CS_SNAPMODULE32, MODULEENTRY32W, CreateToolhelp32S... [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] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use winapi::um::handleapi::{INVALID_HANDLE_VALUE, CloseHandle}; [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] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::processthreadsapi::{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] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::winnt::{PROCESS_ALL_ACCESS, HANDLE, MEM_COMMIT,PAGE_EXECUTE_READWRITE}; [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] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::memoryapi::{ReadProcessMemory, WriteProcessMemory, VirtualAllocEx, VirtualProtectEx}; [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] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::errhandlingapi::GetLastError; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::minwindef::{LPCVOID, LPVOID}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::shared::ntdef::NULL; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | use winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `wio::wide` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | use wio::wide::FromWide; [INFO] [stdout] | ^^^^ could not find `wide` in `wio` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:207:22 [INFO] [stdout] | [INFO] [stdout] 207 | let read_bytes = read_memory(process_handle, target_addr, target_bytes.len())?; //reads target_bytes.len() memory at offset [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `write_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | write_memory(process_handle, target_addr, &mut nop)?; //write nopped bytes at offset [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `write_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:212:9 [INFO] [stdout] | [INFO] [stdout] 212 | write_memory(process_handle, target_addr, target_bytes)?; //write target bytes at offset [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:225:22 [INFO] [stdout] | [INFO] [stdout] 225 | let read_bytes = read_memory(process_handle, target_addr, target_bytes.len())?; //reads target_bytes.len() memory at offset [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `write_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:227:9 [INFO] [stdout] | [INFO] [stdout] 227 | write_memory(process_handle, target_addr, modified_bytes)?; //write nopped bytes at offset [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `write_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | write_memory(process_handle, target_addr, target_bytes)?; //write target bytes at offset [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:240:15 [INFO] [stdout] | [INFO] [stdout] 240 | match VirtualProtectEx(process_handle, addr as LPVOID, size, PAGE_EXECUTE_READWRITE, &mut old) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:240:56 [INFO] [stdout] | [INFO] [stdout] 240 | match VirtualProtectEx(process_handle, addr as LPVOID, size, PAGE_EXECUTE_READWRITE, &mut old) { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:240:70 [INFO] [stdout] | [INFO] [stdout] 240 | match VirtualProtectEx(process_handle, addr as LPVOID, size, PAGE_EXECUTE_READWRITE, &mut old) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:242:108 [INFO] [stdout] | [INFO] [stdout] 242 | _ => {Err(format!("Could not change memory protection at {:X}. GetLastError returned {}",addr, GetLastError()))}, [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] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:251:23 [INFO] [stdout] | [INFO] [stdout] 251 | let new_mem = VirtualAllocEx(process_handle, addr as LPVOID, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE); //allocate new memory [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:251:62 [INFO] [stdout] | [INFO] [stdout] 251 | let new_mem = VirtualAllocEx(process_handle, addr as LPVOID, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE); //allocate new memory [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] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:251:76 [INFO] [stdout] | [INFO] [stdout] 251 | let new_mem = VirtualAllocEx(process_handle, addr as LPVOID, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE); //allocate new memory [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:251:88 [INFO] [stdout] | [INFO] [stdout] 251 | let new_mem = VirtualAllocEx(process_handle, addr as LPVOID, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE); //allocate new memory [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetLastError` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:253:100 [INFO] [stdout] | [INFO] [stdout] 253 | ... NULL => Err(format!("Error allocating memory at {:X}. GetLastError returned {}", addr, GetLastError())),//if memory allocation fail... [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `read_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:294:22 [INFO] [stdout] | [INFO] [stdout] 294 | let read_bytes = read_memory(process_handle, target_addr, target_bytes.len())?; //read target injection address [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `write_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:296:9 [INFO] [stdout] | [INFO] [stdout] 296 | write_memory(process_handle, *cave_addr, shellcode)?; //write shellcode in code cave [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `write_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:297:9 [INFO] [stdout] | [INFO] [stdout] 297 | write_memory(process_handle, target_addr, &mut inject_bytes)?; //write jump to shellcode at target address [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `write_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:300:9 [INFO] [stdout] | [INFO] [stdout] 300 | write_memory(process_handle, target_addr, target_bytes)?; //write original bytes to target_address [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `write_memory` in this scope [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/hakorlib-73fd2360b0b48c53/14439eb/src/lib.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | write_memory(process_handle, *cave_addr, &mut vec!(0x00;shellcode.len()))?; //zero out shellcode in code cave [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 30 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hakorlib` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "26c3b8feae70cfcc40f5323e87a94da836e6d0a488060a817d432fa2c0f78d96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26c3b8feae70cfcc40f5323e87a94da836e6d0a488060a817d432fa2c0f78d96", kill_on_drop: false }` [INFO] [stdout] 26c3b8feae70cfcc40f5323e87a94da836e6d0a488060a817d432fa2c0f78d96