[INFO] cloning repository https://github.com/etra0/memory-rs [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/etra0/memory-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fetra0%2Fmemory-rs"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fetra0%2Fmemory-rs'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 0af122e3d7253a582d5f1c8c66c377fc81bc12b6 [INFO] checking etra0/memory-rs against try#d7b51666469c792a8a3f40849607739bae1e705e for pr-71665 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fetra0%2Fmemory-rs" "/workspace/builds/worker-4/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/etra0/memory-rs on toolchain d7b51666469c792a8a3f40849607739bae1e705e [INFO] running `"/workspace/cargo-home/bin/cargo" "+d7b51666469c792a8a3f40849607739bae1e705e" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/etra0/memory-rs [INFO] finished tweaking git repo https://github.com/etra0/memory-rs [INFO] tweaked toml for git repo https://github.com/etra0/memory-rs written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/etra0/memory-rs already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+d7b51666469c792a8a3f40849607739bae1e705e" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+d7b51666469c792a8a3f40849607739bae1e705e" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b4affbd7ace702f3bc3ab096f196c6cb9fdacfbf6955afba182f38ec8673155b [INFO] running `"docker" "start" "-a" "b4affbd7ace702f3bc3ab096f196c6cb9fdacfbf6955afba182f38ec8673155b"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Checking memory-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::shared::minwindef::{DWORD}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/mod.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::shared::basetsd::{DWORD_PTR}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/mod.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use winapi::um::handleapi; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/mod.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use winapi::um::tlhelp32; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::um::winnt::{HANDLE}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::shared::basetsd::{DWORD_PTR}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use winapi::shared::minwindef::{LPVOID, LPCVOID}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use winapi::um::processthreadsapi::OpenProcess; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::um::memoryapi::{ReadProcessMemory, WriteProcessMemory}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/memory/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::shared::basetsd::{DWORD_PTR}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/memory/mod.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::shared::minwindef::{LPVOID, LPCVOID, DWORD, PDWORD}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/memory/mod.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use winapi::um::winnt::{HANDLE, PAGE_EXECUTE_READWRITE, MEM_RESERVE, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/memory/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::um::memoryapi::{ReadProcessMemory, WriteProcessMemory, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:68:13 [INFO] [stderr] | [INFO] [stderr] 68 | winapi::um::winnt::PROCESS_ALL_ACCESS, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0 ) }; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:14:44 [INFO] [stderr] | [INFO] [stderr] 14 | tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0 ) }; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:16:18 [INFO] [stderr] | [INFO] [stderr] 16 | if h_snap == handleapi::INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:20:29 [INFO] [stderr] | [INFO] [stderr] 20 | let mut process_entry = tlhelp32::PROCESSENTRY32::default(); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:21:43 [INFO] [stderr] | [INFO] [stderr] 21 | process_entry.dwSize = mem::size_of::() as u32; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:24:15 [INFO] [stderr] | [INFO] [stderr] 24 | match tlhelp32::Process32First(h_snap, &mut process_entry) { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:36:24 [INFO] [stderr] | [INFO] [stderr] 36 | if tlhelp32::Process32Next(h_snap, &mut process_entry) == 0 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | handleapi::CloseHandle(h_snap); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:61:9 [INFO] [stderr] | [INFO] [stderr] 61 | tlhelp32::CreateToolhelp32Snapshot( [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:62:13 [INFO] [stderr] | [INFO] [stderr] 62 | tlhelp32::TH32CS_SNAPMODULE | tlhelp32::TH32CS_SNAPMODULE32, [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:62:43 [INFO] [stderr] | [INFO] [stderr] 62 | tlhelp32::TH32CS_SNAPMODULE | tlhelp32::TH32CS_SNAPMODULE32, [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:66:18 [INFO] [stderr] | [INFO] [stderr] 66 | if h_snap == handleapi::INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:70:28 [INFO] [stderr] | [INFO] [stderr] 70 | let mut module_entry = tlhelp32::MODULEENTRY32::default(); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:71:42 [INFO] [stderr] | [INFO] [stderr] 71 | module_entry.dwSize = mem::size_of::() as u32; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:74:15 [INFO] [stderr] | [INFO] [stderr] 74 | match tlhelp32::Module32First(h_snap, &mut module_entry) { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:87:24 [INFO] [stderr] | [INFO] [stderr] 87 | if tlhelp32::Module32Next(h_snap, &mut module_entry) == 0 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:95:9 [INFO] [stderr] | [INFO] [stderr] 95 | handleapi::CloseHandle(h_snap); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::shared::minwindef::{DWORD}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/mod.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::shared::basetsd::{DWORD_PTR}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/mod.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use winapi::um::handleapi; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/mod.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use winapi::um::tlhelp32; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::um::winnt::{HANDLE}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::shared::basetsd::{DWORD_PTR}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use winapi::shared::minwindef::{LPVOID, LPCVOID}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use winapi::um::processthreadsapi::OpenProcess; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::um::memoryapi::{ReadProcessMemory, WriteProcessMemory}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/memory/mod.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use winapi::shared::basetsd::{DWORD_PTR}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/memory/mod.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use winapi::shared::minwindef::{LPVOID, LPCVOID, DWORD, PDWORD}; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/memory/mod.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use winapi::um::winnt::{HANDLE, PAGE_EXECUTE_READWRITE, MEM_RESERVE, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/memory/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use winapi::um::memoryapi::{ReadProcessMemory, WriteProcessMemory, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/lib.rs:29:13 [INFO] [stderr] | [INFO] [stderr] 29 | use winapi::um::processthreadsapi::OpenProcess; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 9 | h_process: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:10:26 [INFO] [stderr] | [INFO] [stderr] 10 | module_base_address: DWORD_PTR [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:15:34 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn write_aob(&self, ptr: DWORD_PTR, data: &Vec) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:20:35 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn write_nops(&self, ptr: DWORD_PTR, n: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:24:32 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn get_aob(&self, ptr: DWORD_PTR, length: usize) -> Vec { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:32:60 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn read_value(&self, absolute_address: DWORD_PTR) -> OutputType { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/process/process_wrapper.rs:68:13 [INFO] [stderr] | [INFO] [stderr] 68 | winapi::um::winnt::PROCESS_ALL_ACCESS, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:38:13 [INFO] [stderr] | [INFO] [stderr] 38 | ReadProcessMemory(self.h_process, absolute_address as LPCVOID, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:38:67 [INFO] [stderr] | [INFO] [stderr] 38 | ReadProcessMemory(self.h_process, absolute_address as LPCVOID, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:39:47 [INFO] [stderr] | [INFO] [stderr] 39 | &mut buffer as *mut OutputType as LPVOID, s_buffer, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:47:60 [INFO] [stderr] | [INFO] [stderr] 47 | pub fn write_value(&self, absolute_address: DWORD_PTR, output: InputType) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | WriteProcessMemory(self.h_process, absolute_address as LPVOID, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:52:68 [INFO] [stderr] | [INFO] [stderr] 52 | WriteProcessMemory(self.h_process, absolute_address as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:53:50 [INFO] [stderr] | [INFO] [stderr] 53 | (&output as *const InputType) as LPVOID, s, &mut written); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0 ) }; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:59:42 [INFO] [stderr] | [INFO] [stderr] 59 | pub fn hook_function(&self, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:59:56 [INFO] [stderr] | [INFO] [stderr] 59 | pub fn hook_function(&self, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:14:44 [INFO] [stderr] | [INFO] [stderr] 14 | tlhelp32::CreateToolhelp32Snapshot(tlhelp32::TH32CS_SNAPPROCESS, 0 ) }; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:67:34 [INFO] [stderr] | [INFO] [stderr] 67 | let h_process = unsafe { OpenProcess( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:83:49 [INFO] [stderr] | [INFO] [stderr] 83 | pub fn inject_shellcode(&self, entry_point: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:16:18 [INFO] [stderr] | [INFO] [stderr] 16 | if h_snap == handleapi::INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:84:51 [INFO] [stderr] | [INFO] [stderr] 84 | instruction_size: usize, f: *const u8) -> DWORD_PTR { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:20:29 [INFO] [stderr] | [INFO] [stderr] 20 | let mut process_entry = tlhelp32::PROCESSENTRY32::default(); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:21:43 [INFO] [stderr] | [INFO] [stderr] 21 | process_entry.dwSize = mem::size_of::() as u32; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:90:46 [INFO] [stderr] | [INFO] [stderr] 90 | pub fn read_string_array(&self, address: DWORD_PTR, starting_index: usize, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:24:15 [INFO] [stderr] | [INFO] [stderr] 24 | match tlhelp32::Process32First(h_snap, &mut process_entry) { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/process/mod.rs:11:53 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn get_process_id(process_name: &str) -> Result { [INFO] [stderr] | - ^^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:36:24 [INFO] [stderr] | [INFO] [stderr] 36 | if tlhelp32::Process32Next(h_snap, &mut process_entry) == 0 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | handleapi::CloseHandle(h_snap); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/process/mod.rs:12:25 [INFO] [stderr] | [INFO] [stderr] 12 | let mut process_id: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/process/mod.rs:56:17 [INFO] [stderr] | [INFO] [stderr] 56 | process_id: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/mod.rs:58:13 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn get_module_base( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 58 | ) -> Result { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/mod.rs:59:34 [INFO] [stderr] | [INFO] [stderr] 59 | let mut module_base_address: DWORD_PTR = 0x0; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/mod.rs:84:59 [INFO] [stderr] | [INFO] [stderr] 84 | break module_entry.modBaseAddr as DWORD_PTR; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:9:27 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn get_aob(h_process: HANDLE, ptr: DWORD_PTR, target: &mut Vec, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:9:40 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn get_aob(h_process: HANDLE, ptr: DWORD_PTR, target: &mut Vec, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stderr] --> src/memory/mod.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | ReadProcessMemory( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:18:27 [INFO] [stderr] | [INFO] [stderr] 18 | c_addr as LPCVOID, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:19:46 [INFO] [stderr] | [INFO] [stderr] 19 | (&mut c_value as *mut u8) as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:29:29 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn write_aob(h_process: HANDLE, ptr: DWORD_PTR, source: &Vec) -> usize { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:61:9 [INFO] [stderr] | [INFO] [stderr] 61 | tlhelp32::CreateToolhelp32Snapshot( [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:62:13 [INFO] [stderr] | [INFO] [stderr] 62 | tlhelp32::TH32CS_SNAPMODULE | tlhelp32::TH32CS_SNAPMODULE32, [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:29:42 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn write_aob(h_process: HANDLE, ptr: DWORD_PTR, source: &Vec) -> usize { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:62:43 [INFO] [stderr] | [INFO] [stderr] 62 | tlhelp32::TH32CS_SNAPMODULE | tlhelp32::TH32CS_SNAPMODULE32, [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:30:31 [INFO] [stderr] | [INFO] [stderr] 30 | let mut protection_bytes: DWORD = 0x0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | VirtualProtectEx( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:38:23 [INFO] [stderr] | [INFO] [stderr] 38 | c_addr as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stderr] --> src/memory/mod.rs:40:13 [INFO] [stderr] | [INFO] [stderr] 40 | PAGE_EXECUTE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:41:38 [INFO] [stderr] | [INFO] [stderr] 41 | &mut protection_bytes as PDWORD [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stderr] --> src/memory/mod.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 44 | WriteProcessMemory( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:46:23 [INFO] [stderr] | [INFO] [stderr] 46 | c_addr as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:47:36 [INFO] [stderr] | [INFO] [stderr] 47 | source[..].as_ptr() as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | VirtualProtectEx( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:54:23 [INFO] [stderr] | [INFO] [stderr] 54 | c_addr as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:57:38 [INFO] [stderr] | [INFO] [stderr] 57 | &mut protection_bytes as PDWORD [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:66:18 [INFO] [stderr] | [INFO] [stderr] 66 | if h_snap == handleapi::INVALID_HANDLE_VALUE { [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:64:30 [INFO] [stderr] | [INFO] [stderr] 64 | pub fn write_nops(h_process: HANDLE, ptr: DWORD_PTR, n: usize) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:64:43 [INFO] [stderr] | [INFO] [stderr] 64 | pub fn write_nops(h_process: HANDLE, ptr: DWORD_PTR, n: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:70:28 [INFO] [stderr] | [INFO] [stderr] 70 | let mut module_entry = tlhelp32::MODULEENTRY32::default(); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:69:33 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:71:42 [INFO] [stderr] | [INFO] [stderr] 71 | module_entry.dwSize = mem::size_of::() as u32; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:69:50 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:74:15 [INFO] [stderr] | [INFO] [stderr] 74 | match tlhelp32::Module32First(h_snap, &mut module_entry) { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:70:8 [INFO] [stderr] | [INFO] [stderr] 70 | f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:77:33 [INFO] [stderr] | [INFO] [stderr] 77 | let mut current_protection: DWORD = 0x0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:80:9 [INFO] [stderr] | [INFO] [stderr] 80 | VirtualProtectEx(h_process, to_hook as LPVOID, len, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:80:48 [INFO] [stderr] | [INFO] [stderr] 80 | VirtualProtectEx(h_process, to_hook as LPVOID, len, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stderr] --> src/memory/mod.rs:81:13 [INFO] [stderr] | [INFO] [stderr] 81 | PAGE_EXECUTE_READWRITE, &mut current_protection as PDWORD); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:81:64 [INFO] [stderr] | [INFO] [stderr] 81 | PAGE_EXECUTE_READWRITE, &mut current_protection as PDWORD); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `tlhelp32` [INFO] [stderr] --> src/process/mod.rs:87:24 [INFO] [stderr] | [INFO] [stderr] 87 | if tlhelp32::Module32Next(h_snap, &mut module_entry) == 0 { [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `tlhelp32` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:89:27 [INFO] [stderr] | [INFO] [stderr] 89 | let relative_address: DWORD = (_diff as DWORD - 5) as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:89:45 [INFO] [stderr] | [INFO] [stderr] 89 | let relative_address: DWORD = (_diff as DWORD - 5) as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `handleapi` [INFO] [stderr] --> src/process/mod.rs:95:9 [INFO] [stderr] | [INFO] [stderr] 95 | handleapi::CloseHandle(h_snap); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `handleapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:89:59 [INFO] [stderr] | [INFO] [stderr] 89 | let relative_address: DWORD = (_diff as DWORD - 5) as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:90:54 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 90 | let relative_aob: [u8; 4] = unsafe { transmute::( [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:101:9 [INFO] [stderr] | [INFO] [stderr] 101 | VirtualProtectEx(h_process, to_hook as LPVOID, len, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:101:48 [INFO] [stderr] | [INFO] [stderr] 101 | VirtualProtectEx(h_process, to_hook as LPVOID, len, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:102:60 [INFO] [stderr] | [INFO] [stderr] 102 | current_protection, &mut current_protection as PDWORD); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:106:36 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn inject_shellcode(h_process: HANDLE, module_base_address: DWORD_PTR, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:106:65 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn inject_shellcode(h_process: HANDLE, module_base_address: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:107:18 [INFO] [stderr] | [INFO] [stderr] 107 | entry_point: DWORD_PTR, instruction_size: usize, f: *const u8) -> DWORD_PTR { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:107:71 [INFO] [stderr] | [INFO] [stderr] 107 | entry_point: DWORD_PTR, instruction_size: usize, f: *const u8) -> DWORD_PTR { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:124:30 [INFO] [stderr] | [INFO] [stderr] 124 | let mut shellcode_space: DWORD_PTR = 0x0; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAllocEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:129:13 [INFO] [stderr] | [INFO] [stderr] 129 | VirtualAllocEx(h_process, current_address as LPVOID, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:129:58 [INFO] [stderr] | [INFO] [stderr] 129 | VirtualAllocEx(h_process, current_address as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/memory/mod.rs:130:34 [INFO] [stderr] | [INFO] [stderr] 130 | 0x1000 as usize, MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/memory/mod.rs:130:48 [INFO] [stderr] | [INFO] [stderr] 130 | 0x1000 as usize, MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stderr] --> src/memory/mod.rs:131:17 [INFO] [stderr] | [INFO] [stderr] 131 | PAGE_EXECUTE_READWRITE) as DWORD_PTR }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:131:44 [INFO] [stderr] | [INFO] [stderr] 131 | PAGE_EXECUTE_READWRITE) as DWORD_PTR }; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `winapi` [INFO] [stderr] --> src/lib.rs:48:17 [INFO] [stderr] | [INFO] [stderr] 48 | winapi::um::winnt::PROCESS_ALL_ACCESS, [INFO] [stderr] | ^^^^^^ use of undeclared type or module `winapi` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:9:16 [INFO] [stderr] | [INFO] [stderr] 9 | h_process: HANDLE, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:10:26 [INFO] [stderr] | [INFO] [stderr] 10 | module_base_address: DWORD_PTR [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:15:34 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn write_aob(&self, ptr: DWORD_PTR, data: &Vec) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:20:35 [INFO] [stderr] | [INFO] [stderr] 20 | pub fn write_nops(&self, ptr: DWORD_PTR, n: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:24:32 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn get_aob(&self, ptr: DWORD_PTR, length: usize) -> Vec { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:32:60 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn read_value(&self, absolute_address: DWORD_PTR) -> OutputType { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:38:13 [INFO] [stderr] | [INFO] [stderr] 38 | ReadProcessMemory(self.h_process, absolute_address as LPCVOID, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:38:67 [INFO] [stderr] | [INFO] [stderr] 38 | ReadProcessMemory(self.h_process, absolute_address as LPCVOID, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:39:47 [INFO] [stderr] | [INFO] [stderr] 39 | &mut buffer as *mut OutputType as LPVOID, s_buffer, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:47:60 [INFO] [stderr] | [INFO] [stderr] 47 | pub fn write_value(&self, absolute_address: DWORD_PTR, output: InputType) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | WriteProcessMemory(self.h_process, absolute_address as LPVOID, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:52:68 [INFO] [stderr] | [INFO] [stderr] 52 | WriteProcessMemory(self.h_process, absolute_address as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:53:50 [INFO] [stderr] | [INFO] [stderr] 53 | (&output as *const InputType) as LPVOID, s, &mut written); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:59:42 [INFO] [stderr] | [INFO] [stderr] 59 | pub fn hook_function(&self, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:59:56 [INFO] [stderr] | [INFO] [stderr] 59 | pub fn hook_function(&self, to_hook: DWORD_PTR, f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:67:34 [INFO] [stderr] | [INFO] [stderr] 67 | let h_process = unsafe { OpenProcess( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:83:49 [INFO] [stderr] | [INFO] [stderr] 83 | pub fn inject_shellcode(&self, entry_point: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:84:51 [INFO] [stderr] | [INFO] [stderr] 84 | instruction_size: usize, f: *const u8) -> DWORD_PTR { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/process_wrapper.rs:90:46 [INFO] [stderr] | [INFO] [stderr] 90 | pub fn read_string_array(&self, address: DWORD_PTR, starting_index: usize, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/process/mod.rs:11:53 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn get_process_id(process_name: &str) -> Result { [INFO] [stderr] | - ^^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/process/mod.rs:12:25 [INFO] [stderr] | [INFO] [stderr] 12 | let mut process_id: DWORD = 0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/process/mod.rs:56:17 [INFO] [stderr] | [INFO] [stderr] 56 | process_id: DWORD, [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/mod.rs:58:13 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn get_module_base( [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 58 | ) -> Result { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/mod.rs:59:34 [INFO] [stderr] | [INFO] [stderr] 59 | let mut module_base_address: DWORD_PTR = 0x0; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/process/mod.rs:84:59 [INFO] [stderr] | [INFO] [stderr] 84 | break module_entry.modBaseAddr as DWORD_PTR; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:9:27 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn get_aob(h_process: HANDLE, ptr: DWORD_PTR, target: &mut Vec, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:9:40 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn get_aob(h_process: HANDLE, ptr: DWORD_PTR, target: &mut Vec, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `ReadProcessMemory` in this scope [INFO] [stderr] --> src/memory/mod.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | ReadProcessMemory( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPCVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:18:27 [INFO] [stderr] | [INFO] [stderr] 18 | c_addr as LPCVOID, [INFO] [stderr] | ^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:19:46 [INFO] [stderr] | [INFO] [stderr] 19 | (&mut c_value as *mut u8) as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:29:29 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn write_aob(h_process: HANDLE, ptr: DWORD_PTR, source: &Vec) -> usize { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:29:42 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn write_aob(h_process: HANDLE, ptr: DWORD_PTR, source: &Vec) -> usize { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:30:31 [INFO] [stderr] | [INFO] [stderr] 30 | let mut protection_bytes: DWORD = 0x0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | VirtualProtectEx( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:38:23 [INFO] [stderr] | [INFO] [stderr] 38 | c_addr as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stderr] --> src/memory/mod.rs:40:13 [INFO] [stderr] | [INFO] [stderr] 40 | PAGE_EXECUTE_READWRITE, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:41:38 [INFO] [stderr] | [INFO] [stderr] 41 | &mut protection_bytes as PDWORD [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `WriteProcessMemory` in this scope [INFO] [stderr] --> src/memory/mod.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 44 | WriteProcessMemory( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:46:23 [INFO] [stderr] | [INFO] [stderr] 46 | c_addr as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:47:36 [INFO] [stderr] | [INFO] [stderr] 47 | source[..].as_ptr() as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | VirtualProtectEx( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:54:23 [INFO] [stderr] | [INFO] [stderr] 54 | c_addr as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:57:38 [INFO] [stderr] | [INFO] [stderr] 57 | &mut protection_bytes as PDWORD [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:64:30 [INFO] [stderr] | [INFO] [stderr] 64 | pub fn write_nops(h_process: HANDLE, ptr: DWORD_PTR, n: usize) { [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:64:43 [INFO] [stderr] | [INFO] [stderr] 64 | pub fn write_nops(h_process: HANDLE, ptr: DWORD_PTR, n: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:69:33 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:69:50 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:70:8 [INFO] [stderr] | [INFO] [stderr] 70 | f: DWORD_PTR, len: usize) { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:77:33 [INFO] [stderr] | [INFO] [stderr] 77 | let mut current_protection: DWORD = 0x0; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:80:9 [INFO] [stderr] | [INFO] [stderr] 80 | VirtualProtectEx(h_process, to_hook as LPVOID, len, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:80:48 [INFO] [stderr] | [INFO] [stderr] 80 | VirtualProtectEx(h_process, to_hook as LPVOID, len, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stderr] --> src/memory/mod.rs:81:13 [INFO] [stderr] | [INFO] [stderr] 81 | PAGE_EXECUTE_READWRITE, &mut current_protection as PDWORD); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:81:64 [INFO] [stderr] | [INFO] [stderr] 81 | PAGE_EXECUTE_READWRITE, &mut current_protection as PDWORD); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:89:27 [INFO] [stderr] | [INFO] [stderr] 89 | let relative_address: DWORD = (_diff as DWORD - 5) as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:89:45 [INFO] [stderr] | [INFO] [stderr] 89 | let relative_address: DWORD = (_diff as DWORD - 5) as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:89:59 [INFO] [stderr] | [INFO] [stderr] 89 | let relative_address: DWORD = (_diff as DWORD - 5) as DWORD; [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:90:54 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn hook_function(h_process: HANDLE, to_hook: DWORD_PTR, [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] ... [INFO] [stderr] 90 | let relative_aob: [u8; 4] = unsafe { transmute::( [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtectEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:101:9 [INFO] [stderr] | [INFO] [stderr] 101 | VirtualProtectEx(h_process, to_hook as LPVOID, len, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:101:48 [INFO] [stderr] | [INFO] [stderr] 101 | VirtualProtectEx(h_process, to_hook as LPVOID, len, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PDWORD` in this scope [INFO] [stderr] --> src/memory/mod.rs:102:60 [INFO] [stderr] | [INFO] [stderr] 102 | current_protection, &mut current_protection as PDWORD); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `HANDLE` in this scope [INFO] [stderr] --> src/memory/mod.rs:106:36 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn inject_shellcode(h_process: HANDLE, module_base_address: DWORD_PTR, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:106:65 [INFO] [stderr] | [INFO] [stderr] 106 | pub fn inject_shellcode(h_process: HANDLE, module_base_address: DWORD_PTR, [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:107:18 [INFO] [stderr] | [INFO] [stderr] 107 | entry_point: DWORD_PTR, instruction_size: usize, f: *const u8) -> DWORD_PTR { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:107:71 [INFO] [stderr] | [INFO] [stderr] 107 | entry_point: DWORD_PTR, instruction_size: usize, f: *const u8) -> DWORD_PTR { [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:124:30 [INFO] [stderr] | [INFO] [stderr] 124 | let mut shellcode_space: DWORD_PTR = 0x0; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualAllocEx` in this scope [INFO] [stderr] --> src/memory/mod.rs:129:13 [INFO] [stderr] | [INFO] [stderr] 129 | VirtualAllocEx(h_process, current_address as LPVOID, [INFO] [stderr] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `LPVOID` in this scope [INFO] [stderr] --> src/memory/mod.rs:129:58 [INFO] [stderr] | [INFO] [stderr] 129 | VirtualAllocEx(h_process, current_address as LPVOID, [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_RESERVE` in this scope [INFO] [stderr] --> src/memory/mod.rs:130:34 [INFO] [stderr] | [INFO] [stderr] 130 | 0x1000 as usize, MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `MEM_COMMIT` in this scope [INFO] [stderr] --> src/memory/mod.rs:130:48 [INFO] [stderr] | [INFO] [stderr] 130 | 0x1000 as usize, MEM_RESERVE | MEM_COMMIT, [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope [INFO] [stderr] --> src/memory/mod.rs:131:17 [INFO] [stderr] | [INFO] [stderr] 131 | PAGE_EXECUTE_READWRITE) as DWORD_PTR }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `DWORD_PTR` in this scope [INFO] [stderr] --> src/memory/mod.rs:131:44 [INFO] [stderr] | [INFO] [stderr] 131 | PAGE_EXECUTE_READWRITE) as DWORD_PTR }; [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function, tuple struct or tuple variant `OpenProcess` in this scope [INFO] [stderr] --> src/lib.rs:47:13 [INFO] [stderr] | [INFO] [stderr] 47 | OpenProcess( [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error: aborting due to 102 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `memory-rs`. [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[E0061]: this function takes 5 arguments but 3 arguments were supplied [INFO] [stderr] --> src/lib.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 85 | super::memory::inject_shellcode(h_process, 0x14000000, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------- ---------- [INFO] [stderr] | | [INFO] [stderr] | expected 5 arguments [INFO] [stderr] 86 | dummy as usize as *const u8); [INFO] [stderr] | --------------------------- supplied 3 arguments [INFO] [stderr] | [INFO] [stderr] ::: src/memory/mod.rs:106:1 [INFO] [stderr] | [INFO] [stderr] 106 | / pub fn inject_shellcode(h_process: HANDLE, module_base_address: DWORD_PTR, [INFO] [stderr] 107 | | entry_point: DWORD_PTR, instruction_size: usize, f: *const u8) -> DWORD_PTR { [INFO] [stderr] 108 | | [INFO] [stderr] 109 | | // calc the size of the function [INFO] [stderr] ... | [INFO] [stderr] 144 | | shellcode_space [INFO] [stderr] 145 | | } [INFO] [stderr] | |_- defined here [INFO] [stderr] [INFO] [stderr] error: aborting due to 106 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0412, E0425, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: could not compile `memory-rs`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "b4affbd7ace702f3bc3ab096f196c6cb9fdacfbf6955afba182f38ec8673155b"` [INFO] running `"docker" "rm" "-f" "b4affbd7ace702f3bc3ab096f196c6cb9fdacfbf6955afba182f38ec8673155b"` [INFO] [stdout] b4affbd7ace702f3bc3ab096f196c6cb9fdacfbf6955afba182f38ec8673155b