8000 Added module_stomping · b1nhack/rust-shellcode@bc122ee · GitHub
[go: up one dir, main page]

Skip to content

Commit bc122ee

Browse files
committed
Added module_stomping
1 parent 17b5cec commit bc122ee

File tree

16 files changed

+149
-27
lines changed

16 files changed

+149
-27
lines changed

Cargo.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ members = [
1111
"early_bird",
1212
"etwp_create_etw_thread",
1313
"memmap2_transmute",
14+
"module_stomping",
1415
"nt_queue_apc_thread_ex_local",
1516
"rtl_create_user_thread",
1617
]

asm/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![windows_subsystem = "windows"]
2-
31
use std::arch::asm;
42

53
#[cfg(target_os = "windows")]

create_fiber/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![windows_subsystem = "windows"]
2-
31
use std::mem::transmute;
42
use std::ptr::{copy, null};
53
use windows_sys::Win32::Foundation::{GetLastError, FALSE};

create_process/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![windows_subsystem = "windows"]
2-
31
use std::ffi::{c_char, c_void};
42
use std::mem::{size_of_val, zeroed};
53
use std::ptr::{addr_of, addr_of_mut, null, null_mut};

create_remote_thread/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![windows_subsystem = "windows"]
2-
31
use std::mem::transmute;
42
use std::ptr::{null, null_mut};
53
use sysinfo::{PidExt, ProcessExt, System, SystemExt};
@@ -19,7 +17,7 @@ fn main() {
1917
system.refresh_processes();
2018

2119
let pid = system
22-
.processes_by_name("explorer")
20+
.processes_by_name("explorer.exe")
2321
.next()
2422
.expect("[-]no process!")
2523
.pid()

create_remote_thread_native/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![windows_subsystem = "windows"]
2-
31
use libloading::{Library, Symbol};
42
use std::ffi::c_void;
53
use std::ptr::{null, null_mut};
@@ -20,7 +18,7 @@ fn main() {
2018
let mut system = System::new();
2119
system.refresh_processes();
2220
let pid = system
23-
.processes_by_name("explorer")
21+
.processes_by_name("explorer.exe")
2422
.next()
2523
.expect("[-]no process!")
2624
.pid()

create_thread/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![windows_subsystem = "windows"]
2-
31
use std::mem::transmute;
42
use std::ptr::{copy, null, null_mut};
53
use windows_sys::Win32::Foundation::{GetLastError, FALSE, WAIT_FAILED};

create_thread_native/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![windows_subsystem = "windows"]
2-
31
use libloading::{Library, Symbol};
42
use std::ffi::c_void;
53
use std::ptr::{null, null_mut};

early_bird/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![windows_subsystem = "windows"]
2-
31
use std::mem::{transmute, zeroed};
42
use std::ptr::{null, null_mut};
53
use windows_sys::Win32::Foundation::{CloseHandle, GetLastError, FALSE, TRUE};

0 commit comments

Comments
 (0)
0