[INFO] cloning repository https://github.com/matthewashton-k/uac_bypass_mock_folders [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/matthewashton-k/uac_bypass_mock_folders" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmatthewashton-k%2Fuac_bypass_mock_folders", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmatthewashton-k%2Fuac_bypass_mock_folders'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c1f077f1a12fe856badaab6cd5e1c8a0d4f0779e [INFO] testing matthewashton-k/uac_bypass_mock_folders/c1f077f1a12fe856badaab6cd5e1c8a0d4f0779e against master#0d162b25edd5bf0dba9a22e83b614f1113e90474 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmatthewashton-k%2Fuac_bypass_mock_folders" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/matthewashton-k/uac_bypass_mock_folders [INFO] finished tweaking git repo https://github.com/matthewashton-k/uac_bypass_mock_folders [INFO] tweaked toml for git repo https://github.com/matthewashton-k/uac_bypass_mock_folders written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/matthewashton-k/uac_bypass_mock_folders on toolchain 0d162b25edd5bf0dba9a22e83b614f1113e90474 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/matthewashton-k/uac_bypass_mock_folders 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" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2024 which implies `resolver = "3"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2024 resolver, specify `workspace.resolver = "3"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded powershell_script v1.1.0 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12ba683deea78c6ccb245ae4e023317f9be1e7a9130933650ef667ba649dfd9d [INFO] running `Command { std: "docker" "start" "-a" "12ba683deea78c6ccb245ae4e023317f9be1e7a9130933650ef667ba649dfd9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12ba683deea78c6ccb245ae4e023317f9be1e7a9130933650ef667ba649dfd9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12ba683deea78c6ccb245ae4e023317f9be1e7a9130933650ef667ba649dfd9d", kill_on_drop: false }` [INFO] [stdout] 12ba683deea78c6ccb245ae4e023317f9be1e7a9130933650ef667ba649dfd9d [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+0d162b25edd5bf0dba9a22e83b614f1113e90474" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 903d93c00072d6d3ddc03f0c68982fa190057269e662e6cdf6da5523c45c084d [INFO] running `Command { std: "docker" "start" "-a" "903d93c00072d6d3ddc03f0c68982fa190057269e662e6cdf6da5523c45c084d", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2024 which implies `resolver = "3"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2024 resolver, specify `workspace.resolver = "3"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling winapi v0.3.9 [INFO] [stderr] Compiling powershell_script v1.1.0 [INFO] [stderr] Compiling shellcode_generator v0.1.0 (/opt/rustwide/workdir/shellcode_generator) [INFO] [stderr] Compiling payload v0.1.0 (/opt/rustwide/workdir/payload) [INFO] [stderr] Compiling evil_dll v0.1.0 (/opt/rustwide/workdir/evil_dll) [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> evil_dll/src/lib.rs:2:14 [INFO] [stdout] | [INFO] [stdout] 2 | use winapi::um::processthreadsapi::CreateProcessW; [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] --> evil_dll/src/lib.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use winapi::um::processthreadsapi::STARTUPINFOW; [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] --> evil_dll/src/lib.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use winapi::um::processthreadsapi::PROCESS_INFORMATION; [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] --> evil_dll/src/lib.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::synchapi::WaitForSingleObject; [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] --> evil_dll/src/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::um::handleapi::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] --> evil_dll/src/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::um::winbase::WinExec; [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] --> evil_dll/src/lib.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::shared::minwindef::HINSTANCE; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> evil_dll/src/lib.rs:12:16 [INFO] [stdout] | [INFO] [stdout] 12 | use std::{ os::windows::process::CommandExt}; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/0d162b25edd5bf0dba9a22e83b614f1113e90474/library/std/src/os/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/0d162b25edd5bf0dba9a22e83b614f1113e90474/library/std/src/os/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> evil_dll/src/lib.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/0d162b25edd5bf0dba9a22e83b614f1113e90474/library/std/src/os/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/0d162b25edd5bf0dba9a22e83b614f1113e90474/library/std/src/os/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> evil_dll/src/lib.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | use winapi::um::wincon::GetConsoleWindow; [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] --> evil_dll/src/lib.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | use winapi::um::winuser::{ShowWindow, SW_HIDE}; [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] --> payload/src/lib.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | use winapi::um::minwinbase::LPSECURITY_ATTRIBUTES; [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] --> payload/src/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | use winapi::shared::minwindef::*; [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] --> payload/src/lib.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use winapi::shared::basetsd::SIZE_T; [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] --> payload/src/lib.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use winapi::um::winnt::{MEM_COMMIT, PAGE_EXECUTE_READWRITE,MEM_RESERVE,PAGE_EXECUTE_READ,PAGE_READWRITE, PVOID, RtlCopyMemory, LPCST... [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> payload/src/lib.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use std::os::windows::process::CommandExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/0d162b25edd5bf0dba9a22e83b614f1113e90474/library/std/src/os/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/0d162b25edd5bf0dba9a22e83b614f1113e90474/library/std/src/os/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `windows` in `os` [INFO] [stdout] --> payload/src/lib.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | use std::os::windows::ffi::OsStrExt; [INFO] [stdout] | ^^^^^^^ could not find `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/0d162b25edd5bf0dba9a22e83b614f1113e90474/library/std/src/os/mod.rs:56:4 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/0d162b25edd5bf0dba9a22e83b614f1113e90474/library/std/src/os/mod.rs:120:9 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> payload/src/lib.rs:334:13 [INFO] [stdout] | [INFO] [stdout] 334 | use winapi::um::handleapi::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] --> payload/src/lib.rs:335:13 [INFO] [stdout] | [INFO] [stdout] 335 | use winapi::um::processthreadsapi::GetCurrentProcess; [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] --> payload/src/lib.rs:336:13 [INFO] [stdout] | [INFO] [stdout] 336 | use winapi::um::processthreadsapi::OpenProcessToken; [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] --> payload/src/lib.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | use winapi::um::securitybaseapi::GetTokenInformation; [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] --> payload/src/lib.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | use winapi::um::winnt::TokenElevation; [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] --> payload/src/lib.rs:339:13 [INFO] [stdout] | [INFO] [stdout] 339 | use winapi::um::winnt::TOKEN_ELEVATION; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> evil_dll/src/lib.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 63 | / std::ffi::OsStr::new(value) [INFO] [stdout] 64 | | .encode_wide() [INFO] [stdout] | | -^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> payload/src/lib.rs:340:13 [INFO] [stdout] | [INFO] [stdout] 340 | use winapi::um::winnt::TOKEN_QUERY; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> payload/src/lib.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | use winapi::ctypes::c_int; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `creation_flags` found for mutable reference `&mut Command` in the current scope [INFO] [stdout] --> evil_dll/src/lib.rs:74:10 [INFO] [stdout] | [INFO] [stdout] 72 | let cmd = Command::new("powershell.exe") [INFO] [stdout] | _______________- [INFO] [stdout] 73 | | .args(["-C","start-process",&filepath,"-Verb", "runAs"]) [INFO] [stdout] 74 | | .creation_flags(0x08000000) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method not found in `&mut Command` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `evil_dll` (lib) due to 13 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> payload/src/lib.rs:75:64 [INFO] [stdout] | [INFO] [stdout] 75 | let mut address = allocate(ptr::null_mut() as *mut winapi::ctypes::c_void, shellcode.len(), MEM_COMMIT, PAGE_EXECUTE_READWRITE); [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> payload/src/lib.rs:76:37 [INFO] [stdout] | [INFO] [stdout] 76 | if address == 0 as *mut winapi::ctypes::c_void { [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> payload/src/lib.rs:84:75 [INFO] [stdout] | [INFO] [stdout] 84 | RtlCopyMemory(address, decrypted_shellcode.as_ptr() as *const winapi::ctypes::c_void, decrypted_shellcode.len()); [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `ctypes` in `winapi` [INFO] [stdout] --> payload/src/lib.rs:349:97 [INFO] [stdout] | [INFO] [stdout] 349 | ..., &mut elevation as *mut _ as *mut winapi::ctypes::c_void, size as u32, &mut ret_size) != 0 { [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> payload/src/lib.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 19 | hModule: HMODULE, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `FARPROC` in this scope [INFO] [stdout] --> payload/src/lib.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | ) -> FARPROC; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> payload/src/lib.rs:22:55 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn GetModuleHandleW(lpModuleName: LPCWSTR) -> HMODULE;// [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BOOL` in this scope [INFO] [stdout] --> payload/src/lib.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | bInitialOwner: BOOL, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 25 - bInitialOwner: BOOL, [INFO] [stdout] 25 + bInitialOwner: bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `DWORD` in this scope [INFO] [stdout] --> payload/src/lib.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn GetLastError() -> DWORD; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `UINT` in this scope [INFO] [stdout] --> payload/src/lib.rs:29:49 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn WinExec(lpCmdLine: LPCSTR, uCmdShow: UINT) -> UINT; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `UINT` in this scope [INFO] [stdout] --> payload/src/lib.rs:29:58 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn WinExec(lpCmdLine: LPCSTR, uCmdShow: UINT) -> UINT; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `LPDWORD` in this scope [INFO] [stdout] --> payload/src/lib.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | pcbBuffer: LPDWORD [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `BOOL` in this scope [INFO] [stdout] --> payload/src/lib.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | ) -> BOOL; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 33 - ) -> BOOL; [INFO] [stdout] 33 + ) -> bool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `DWORD` in this scope [INFO] [stdout] --> payload/src/lib.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | flAllocationType: DWORD, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `DWORD` in this scope [INFO] [stdout] --> payload/src/lib.rs:66:20 [INFO] [stdout] | [INFO] [stdout] 66 | flProtect: DWORD ) -> LPVOID = [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `LPVOID` in this scope [INFO] [stdout] --> payload/src/lib.rs:66:31 [INFO] [stdout] | [INFO] [stdout] 66 | flProtect: DWORD ) -> LPVOID = [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Error` [INFO] [stdout] --> payload/src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `asm_const` has been stable since 1.82.0 and no longer requires an attribute to enable [INFO] [stdout] --> payload/src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(asm_const)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `encode_wide` found for reference `&OsStr` in the current scope [INFO] [stdout] --> payload/src/lib.rs:94:39 [INFO] [stdout] | [INFO] [stdout] 94 | AsRef::::as_ref(&encodeme).encode_wide().chain(Some(0)).collect() [INFO] [stdout] | ^^^^^^^^^^^ method not found in `&OsStr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> payload/src/lib.rs:236:18 [INFO] [stdout] | [INFO] [stdout] 236 | "add {0}, {num}", //adds 5 to x [INFO] [stdout] | ^^^ [INFO] [stdout] 237 | "mov {1}, {0}", //moves x into output [INFO] [stdout] | ^^^ [INFO] [stdout] 238 | "push {0}", //pushes x (which should have the value of 6) to the stack [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | "xor {0}, {0}", // x will be 0 [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] 247 | inout(reg) x, //index 0 [INFO] [stdout] | - for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] = note: `#[warn(asm_sub_register)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> payload/src/lib.rs:237:18 [INFO] [stdout] | [INFO] [stdout] 237 | "mov {1}, {0}", //moves x into output [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 245 | "pop {1}", //sets output to the value pushed onto the stack, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | out(reg) output, // index 1 [INFO] [stdout] | ------ for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{1:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{1:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> payload/src/lib.rs:277:18 [INFO] [stdout] | [INFO] [stdout] 277 | "add {0}, {num}", //adds 5 to x [INFO] [stdout] | ^^^ [INFO] [stdout] 278 | "mov {1}, {0}", //moves x into output [INFO] [stdout] | ^^^ [INFO] [stdout] 279 | "push {0}", //pushes x (which should have the value of 6) to the stack [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | "xor {0}, {0}", // x will be 0 [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] 288 | inout(reg) x, //index 0 [INFO] [stdout] | - for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{0:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{0:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: formatting may not be suitable for sub-register argument [INFO] [stdout] --> payload/src/lib.rs:278:18 [INFO] [stdout] | [INFO] [stdout] 278 | "mov {1}, {0}", //moves x into output [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | "pop {1}", //sets output to the value pushed onto the stack, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | out(reg) output, // index 1 [INFO] [stdout] | ------ for this argument [INFO] [stdout] | [INFO] [stdout] = help: use `{1:e}` to have the register formatted as `eax` (for 32-bit values) [INFO] [stdout] = help: or use `{1:r}` to keep the default formatting of `rax` (for 64-bit values) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> payload/src/lib.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 310 | break; [INFO] [stdout] | ----- any code following this expression is unreachable [INFO] [stdout] 311 | unsafe { asm! {"nop"}; } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> payload/src/lib.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> payload/src/lib.rs:123:5 [INFO] [stdout] | [INFO] [stdout] 123 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> payload/src/lib.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> payload/src/lib.rs:200:25 [INFO] [stdout] | [INFO] [stdout] 200 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `output` is assigned to, but never used [INFO] [stdout] --> payload/src/lib.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let output: u32; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_output` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `output` is assigned to, but never used [INFO] [stdout] --> payload/src/lib.rs:274:13 [INFO] [stdout] | [INFO] [stdout] 274 | let output: u32; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_output` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> payload/src/lib.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | / asm!( [INFO] [stdout] 236 | | "add {0}, {num}", //adds 5 to x [INFO] [stdout] 237 | | "mov {1}, {0}", //moves x into output [INFO] [stdout] 238 | | "push {0}", //pushes x (which should have the value of 6) to the stack [INFO] [stdout] ... | [INFO] [stdout] 251 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `output` is never read [INFO] [stdout] --> payload/src/lib.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 235 | / asm!( [INFO] [stdout] 236 | | "add {0}, {num}", //adds 5 to x [INFO] [stdout] 237 | | "mov {1}, {0}", //moves x into output [INFO] [stdout] 238 | | "push {0}", //pushes x (which should have the value of 6) to the stack [INFO] [stdout] ... | [INFO] [stdout] 251 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> payload/src/lib.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | / asm!( [INFO] [stdout] 277 | | "add {0}, {num}", //adds 5 to x [INFO] [stdout] 278 | | "mov {1}, {0}", //moves x into output [INFO] [stdout] 279 | | "push {0}", //pushes x (which should have the value of 6) to the stack [INFO] [stdout] ... | [INFO] [stdout] 292 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `output` is never read [INFO] [stdout] --> payload/src/lib.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | / asm!( [INFO] [stdout] 277 | | "add {0}, {num}", //adds 5 to x [INFO] [stdout] 278 | | "mov {1}, {0}", //moves x into output [INFO] [stdout] 279 | | "push {0}", //pushes x (which should have the value of 6) to the stack [INFO] [stdout] ... | [INFO] [stdout] 292 | | ); [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `payload` (lib) due to 31 previous errors; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "903d93c00072d6d3ddc03f0c68982fa190057269e662e6cdf6da5523c45c084d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "903d93c00072d6d3ddc03f0c68982fa190057269e662e6cdf6da5523c45c084d", kill_on_drop: false }` [INFO] [stdout] 903d93c00072d6d3ddc03f0c68982fa190057269e662e6cdf6da5523c45c084d