Skip to content

用rust模版进行编码是出现status 9009问题 #23

Description

@Daft-GD

以下输出均正常:
PS C:\Users\10123\Desktop\darkPulse-main> cargo --version
cargo 1.88.0-nightly (864f74d4e 2025-04-11)
PS C:\Users\10123\Desktop\darkPulse-main> rustc --version
rustc 1.88.0-nightly (2da29dbe8 2025-04-14)
PS C:\Users\10123\Desktop\darkPulse-main> cd Rust_Template
PS C:\Users\10123\Desktop\darkPulse-main\Rust_Template> cargo build --release
Compiling proc-macro2 v1.0.81
Compiling unicode-ident v1.0.12
Compiling windows_x86_64_gnu v0.52.5
Compiling winapi-x86_64-pc-windows-gnu v0.4.0
Compiling winapi v0.3.9
Compiling libaes v0.7.0
Compiling uuid v1.8.0
Compiling windows-targets v0.52.5
Compiling windows-result v0.1.1
Compiling quote v1.0.36
Compiling syn v2.0.60
Compiling windows-interface v0.56.0
Compiling windows-implement v0.56.0
Compiling windows-core v0.56.0
Compiling windows v0.56.0
Compiling Unhook v0.1.0 (C:\Users\10123\Desktop\darkPulse-main\Rust_Template)
warning: unused imports: CString, c_char, and c_void
--> src\main.rs:4:16
|
4 | use std::ffi::{c_char, c_void, CString, OsString};
| ^^^^^^ ^^^^^^ ^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: unused imports: mem and slice
--> src\main.rs:7:11
|
7 | use std::{mem, ptr, slice};
| ^^^ ^^^^^

warning: unused imports: Layout, alloc, and dealloc
--> src\main.rs:8:18
|
8 | use std::alloc::{alloc, dealloc, Layout};
| ^^^^^ ^^^^^^^ ^^^^^^

warning: unused import: winapi::um::winbase::LPFIBER_START_ROUTINE
--> src\main.rs:15:5
|
15 | use winapi::um::winbase::LPFIBER_START_ROUTINE;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused import: PAPCFUNC
--> src\main.rs:18:51
|
18 | use windows::Win32::Foundation::{HANDLE, HMODULE, PAPCFUNC};
| ^^^^^^^^

warning: unused import: PAGE_EXECUTE_READWRITE
--> src\main.rs:20:82
|
20 | use windows::Win32::System::Memory::{MEM_COMMIT, MEM_RESERVE, PAGE_EXECUTE_READ, PAGE_EXECUTE_READWRITE, PAGE_PROTECTION_FLAGS, PAGE_READWRITE, VIRTUAL_ALLOCATION_TYPE, VirtualAlloc, VirtualProtect};
| ^^^^^^^^^^^^^^^^^^^^^^

warning: value assigned to ldr_loadr_dll is never read
--> src\main.rs:119:13
|
119 | let mut ldr_loadr_dll: PNewLdrLoadDll = unsafe { transmute(null::<fn()>()) };
| ^^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
= note: #[warn(unused_assignments)] on by default

warning: variable does not need to be mutable
--> src\main.rs:223:6
|
223 | let mut shellcode_uuid_result = deobfuscate_uuid(uuids);
| ----^^^^^^^^^^^^^^^^^^^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)] on by default

warning: variable does not need to be mutable
--> src\main.rs:224:6
|
224 | let mut shellcode_uuid = match shellcode_uuid_result {
| ----^^^^^^^^^^^^^^
| |
| help: remove this mut

warning: variable does not need to be mutable
--> src\main.rs:233:6
|
233 | let mut shellcode_rust = deobfuscate_words(words,dataset);
| ----^^^^^^^^^^^^^^
| |
| help: remove this mut

warning: function prepare_unicode_string is never used
--> src\main.rs:25:4
|
25 | fn prepare_unicode_string(input: &str) -> UNICODE_STRING {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default

warning: Unhook (bin "Unhook") generated 11 warnings (run cargo fix --bin "Unhook" to apply 9 suggestions)
Finished release profile [optimized] target(s) in 12.03s

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions