[INFO] cloning repository https://github.com/0xeb-bp/cve-2020-0796 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0xeb-bp/cve-2020-0796" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xeb-bp%2Fcve-2020-0796", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xeb-bp%2Fcve-2020-0796'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6bf942e49c83519038521fe2b46dd580c347a863 [INFO] checking 0xeb-bp/cve-2020-0796 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xeb-bp%2Fcve-2020-0796" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/0xeb-bp/cve-2020-0796 on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/0xeb-bp/cve-2020-0796 [INFO] finished tweaking git repo https://github.com/0xeb-bp/cve-2020-0796 [INFO] tweaked toml for git repo https://github.com/0xeb-bp/cve-2020-0796 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/0xeb-bp/cve-2020-0796 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed85db1b68ccb0f8922bd0fc65cad1b1e072c91e8914273fe468fa202480c972 [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" "ed85db1b68ccb0f8922bd0fc65cad1b1e072c91e8914273fe468fa202480c972", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed85db1b68ccb0f8922bd0fc65cad1b1e072c91e8914273fe468fa202480c972", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed85db1b68ccb0f8922bd0fc65cad1b1e072c91e8914273fe468fa202480c972", kill_on_drop: false }` [INFO] [stdout] ed85db1b68ccb0f8922bd0fc65cad1b1e072c91e8914273fe468fa202480c972 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94f753206e578f804646cc87bccc7fa2d7e415131bc3b20ea175282d35cda2e5 [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" "94f753206e578f804646cc87bccc7fa2d7e415131bc3b20ea175282d35cda2e5", kill_on_drop: false }` [INFO] [stderr] Compiling winapi v0.3.8 [INFO] [stderr] Compiling ntapi v0.3.3 [INFO] [stderr] Checking cve_2020_0796 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `ntapi::ntexapi` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use ntapi::ntexapi; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `ntexapi` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ntapi::ntrtl` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use ntapi::ntrtl; [INFO] [stdout] | ^^^^^^^^^^^^ no `ntrtl` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::psapi::{EnumProcesses, EnumProcessModules, GetModuleBaseNameA}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use 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 `um` in `winapi` [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::winnt::*; [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] --> src/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::shared::ntstatus::{STATUS_SUCCESS}; [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] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::shared::minwindef::{HMODULE, LPVOID}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::{processthreadsapi, memoryapi, handleapi}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ntapi::ntexapi` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use ntapi::ntexapi; [INFO] [stdout] | ^^^^^^^^^^^^^^ no `ntexapi` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `ntapi::ntrtl` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use ntapi::ntrtl; [INFO] [stdout] | ^^^^^^^^^^^^ no `ntrtl` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | use winapi::um::psapi::{EnumProcesses, EnumProcessModules, GetModuleBaseNameA}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes` [INFO] [stdout] --> src/main.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use winapi::ctypes::c_void; [INFO] [stdout] | ^^^^^^ could not find `ctypes` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATUS_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:90:19 [INFO] [stdout] | [INFO] [stdout] 90 | if res != STATUS_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATUS_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | if res != STATUS_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_QUERY` in this scope [INFO] [stdout] --> src/main.rs:156:68 [INFO] [stdout] | [INFO] [stdout] 156 | let ret = unsafe { processthreadsapi::OpenProcessToken(h_proc, TOKEN_QUERY, t_handle as PHANDLE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PHANDLE` in this scope [INFO] [stdout] --> src/main.rs:156:93 [INFO] [stdout] | [INFO] [stdout] 156 | let ret = unsafe { processthreadsapi::OpenProcessToken(h_proc, TOKEN_QUERY, t_handle as PHANDLE) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATUS_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:173:18 [INFO] [stdout] | [INFO] [stdout] 173 | while ret != STATUS_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumProcesses` in this scope [INFO] [stdout] --> src/main.rs:223:24 [INFO] [stdout] | [INFO] [stdout] 223 | let ret = unsafe { EnumProcesses(processes.as_mut_ptr(), 4096, len_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_QUERY_INFORMATION` in this scope [INFO] [stdout] --> src/main.rs:236:64 [INFO] [stdout] | [INFO] [stdout] 236 | let hprocess = unsafe { processthreadsapi::OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, 0, tpid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_READ` in this scope [INFO] [stdout] --> src/main.rs:236:92 [INFO] [stdout] | [INFO] [stdout] 236 | let hprocess = unsafe { processthreadsapi::OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, 0, tpid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumProcessModules` in this scope [INFO] [stdout] --> src/main.rs:241:31 [INFO] [stdout] | [INFO] [stdout] 241 | let ret = unsafe {EnumProcessModules(hprocess, hmodule as *mut HMODULE, 8, len_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi` [INFO] [stdout] --> src/main.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | use winapi::um::winnt::*; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/main.rs:241:76 [INFO] [stdout] | [INFO] [stdout] 241 | let ret = unsafe {EnumProcessModules(hprocess, hmodule as *mut HMODULE, 8, len_ptr) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `shared` in `winapi` [INFO] [stdout] --> src/main.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | use winapi::shared::ntstatus::{STATUS_SUCCESS}; [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] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | use winapi::shared::minwindef::{HMODULE, LPVOID}; [INFO] [stdout] | ^^^^^^ could not find `shared` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `winapi::um` [INFO] [stdout] --> src/main.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | use winapi::um::{processthreadsapi, memoryapi, handleapi}; [INFO] [stdout] | ^^ could not find `um` in `winapi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleBaseNameA` in this scope [INFO] [stdout] --> src/main.rs:245:26 [INFO] [stdout] | [INFO] [stdout] 245 | unsafe { GetModuleBaseNameA(hprocess, *hmodule as HMODULE, pname.as_mut_ptr(), 1024) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/main.rs:245:67 [INFO] [stdout] | [INFO] [stdout] 245 | unsafe { GetModuleBaseNameA(hprocess, *hmodule as HMODULE, pname.as_mut_ptr(), 1024) }; [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:268:60 [INFO] [stdout] | [INFO] [stdout] 268 | let hprocess = unsafe { processthreadsapi::OpenProcess(PROCESS_ALL_ACCESS, 0, winlogon_pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/main.rs:275:81 [INFO] [stdout] | [INFO] [stdout] 275 | let hmem = unsafe { memoryapi::VirtualAllocEx(hprocess, null_mut(), 0x1000, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_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:275:95 [INFO] [stdout] | [INFO] [stdout] 275 | let hmem = unsafe { memoryapi::VirtualAllocEx(hprocess, null_mut(), 0x1000, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE) }; [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] --> src/main.rs:275:107 [INFO] [stdout] | [INFO] [stdout] 275 | let hmem = unsafe { memoryapi::VirtualAllocEx(hprocess, null_mut(), 0x1000, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE) }; [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:316:83 [INFO] [stdout] | [INFO] [stdout] 316 | let f = unsafe { Some(*(&hmem as *const _ as *const unsafe extern "system" fn(LPVOID) -> u32)) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATUS_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:90:19 [INFO] [stdout] | [INFO] [stdout] 90 | if res != STATUS_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATUS_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | if res != STATUS_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `TOKEN_QUERY` in this scope [INFO] [stdout] --> src/main.rs:156:68 [INFO] [stdout] | [INFO] [stdout] 156 | let ret = unsafe { processthreadsapi::OpenProcessToken(h_proc, TOKEN_QUERY, t_handle as PHANDLE) }; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `PHANDLE` in this scope [INFO] [stdout] --> src/main.rs:156:93 [INFO] [stdout] | [INFO] [stdout] 156 | let ret = unsafe { processthreadsapi::OpenProcessToken(h_proc, TOKEN_QUERY, t_handle as PHANDLE) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `STATUS_SUCCESS` in this scope [INFO] [stdout] --> src/main.rs:173:18 [INFO] [stdout] | [INFO] [stdout] 173 | while ret != STATUS_SUCCESS { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumProcesses` in this scope [INFO] [stdout] --> src/main.rs:223:24 [INFO] [stdout] | [INFO] [stdout] 223 | let ret = unsafe { EnumProcesses(processes.as_mut_ptr(), 4096, len_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_QUERY_INFORMATION` in this scope [INFO] [stdout] --> src/main.rs:236:64 [INFO] [stdout] | [INFO] [stdout] 236 | let hprocess = unsafe { processthreadsapi::OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, 0, tpid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `PROCESS_VM_READ` in this scope [INFO] [stdout] --> src/main.rs:236:92 [INFO] [stdout] | [INFO] [stdout] 236 | let hprocess = unsafe { processthreadsapi::OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, 0, tpid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `EnumProcessModules` in this scope [INFO] [stdout] --> src/main.rs:241:31 [INFO] [stdout] | [INFO] [stdout] 241 | let ret = unsafe {EnumProcessModules(hprocess, hmodule as *mut HMODULE, 8, len_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/main.rs:241:76 [INFO] [stdout] | [INFO] [stdout] 241 | let ret = unsafe {EnumProcessModules(hprocess, hmodule as *mut HMODULE, 8, len_ptr) }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetModuleBaseNameA` in this scope [INFO] [stdout] --> src/main.rs:245:26 [INFO] [stdout] | [INFO] [stdout] 245 | unsafe { GetModuleBaseNameA(hprocess, *hmodule as HMODULE, pname.as_mut_ptr(), 1024) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HMODULE` in this scope [INFO] [stdout] --> src/main.rs:245:67 [INFO] [stdout] | [INFO] [stdout] 245 | unsafe { GetModuleBaseNameA(hprocess, *hmodule as HMODULE, pname.as_mut_ptr(), 1024) }; [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:268:60 [INFO] [stdout] | [INFO] [stdout] 268 | let hprocess = unsafe { processthreadsapi::OpenProcess(PROCESS_ALL_ACCESS, 0, winlogon_pid) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stdout] --> src/main.rs:275:81 [INFO] [stdout] | [INFO] [stdout] 275 | let hmem = unsafe { memoryapi::VirtualAllocEx(hprocess, null_mut(), 0x1000, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_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:275:95 [INFO] [stdout] | [INFO] [stdout] 275 | let hmem = unsafe { memoryapi::VirtualAllocEx(hprocess, null_mut(), 0x1000, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE) }; [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] --> src/main.rs:275:107 [INFO] [stdout] | [INFO] [stdout] 275 | let hmem = unsafe { memoryapi::VirtualAllocEx(hprocess, null_mut(), 0x1000, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE) }; [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:316:83 [INFO] [stdout] | [INFO] [stdout] 316 | let f = unsafe { Some(*(&hmem as *const _ as *const unsafe extern "system" fn(LPVOID) -> u32)) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 25 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] [stdout] error: aborting due to 25 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 `cve_2020_0796` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "94f753206e578f804646cc87bccc7fa2d7e415131bc3b20ea175282d35cda2e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94f753206e578f804646cc87bccc7fa2d7e415131bc3b20ea175282d35cda2e5", kill_on_drop: false }` [INFO] [stdout] 94f753206e578f804646cc87bccc7fa2d7e415131bc3b20ea175282d35cda2e5