[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 try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xeb-bp%2Fcve-2020-0796" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/0xeb-bp/cve-2020-0796 on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-12/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" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ntapi v0.3.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 549a8501c09b29dbd3ff8e01e9dffc16774fee5a1c36e7e20ab7fec328c791ab [INFO] running `Command { std: "docker" "start" "-a" "549a8501c09b29dbd3ff8e01e9dffc16774fee5a1c36e7e20ab7fec328c791ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "549a8501c09b29dbd3ff8e01e9dffc16774fee5a1c36e7e20ab7fec328c791ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "549a8501c09b29dbd3ff8e01e9dffc16774fee5a1c36e7e20ab7fec328c791ab", kill_on_drop: false }` [INFO] [stdout] 549a8501c09b29dbd3ff8e01e9dffc16774fee5a1c36e7e20ab7fec328c791ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 89cf3d9abc6181bcf3088119110862f74bf8e5148dc94918d4967618fa64761d [INFO] running `Command { std: "docker" "start" "-a" "89cf3d9abc6181bcf3088119110862f74bf8e5148dc94918d4967618fa64761d", 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[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[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[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] [stderr] error: could not compile `cve_2020_0796` due to 26 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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: build failed [INFO] running `Command { std: "docker" "inspect" "89cf3d9abc6181bcf3088119110862f74bf8e5148dc94918d4967618fa64761d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89cf3d9abc6181bcf3088119110862f74bf8e5148dc94918d4967618fa64761d", kill_on_drop: false }` [INFO] [stdout] 89cf3d9abc6181bcf3088119110862f74bf8e5148dc94918d4967618fa64761d