Function inject_shellcode

Source
pub unsafe fn inject_shellcode(
    h_process: HANDLE,
    module_base_address: usize,
    entry_point: *const c_void,
    instruction_size: usize,
    f_start: *const u8,
    f_end: *const u8,
) -> *const c_void
Expand description

This function injects a shellcode on a desired address.

ยงSafety

This function is highly unsafe because it will change assembly code of the target program, so be aware of the crashing, wrong-results, etc.