8000 Add virtual workspace · b1nhack/rust-shellcode@e299c78 · GitHub
[go: up one dir, main page]

Skip to content

Commit e299c78

Browse files
committed
Add virtual workspace
1 parent 1b6b26a commit e299c78

File tree

5 files changed

+363
-14
lines changed

5 files changed

+363
-14
lines changed

Cargo.lock

Lines changed: 346 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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[workspace]
2+
resolver = "2"
3+
members = [
4+
"asm",
5+
"create_fiber",
6+
"create_remote_thread",
7+
"create_remote_thread_native",
8+
"create_thread",
9+
"create_thread_native",
10+
"early_bird",
11+
"etwp_create_etw_thread",
12+
"memmap2_transmute",
13+
"nt_queue_apc_thread_ex_local",
14+
"rtl_create_user_thread"
15+
]

create_remote_thread_native/src/main.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,7 @@ fn main() {
8181
panic!("virtual_alloc_ex failed!");
8282
}
8383

84-
let res = write_process_memory(
85-
handle,
86-
dest,
87-
SHELLCODE.as_ptr().cast(),
88-
SIZE,
89-
null_mut(),
90-
);
84+
let res = write_process_memory(handle, dest, SHELLCODE.as_ptr().cast(), SIZE, null_mut());
9185
if res == FALSE {
9286
panic!("write_process_memory failed");
9387
}

rtl_create_user_thread/src/main.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,7 @@ fn main() {
6161
panic!("VirtualAllocEx failed!");
6262
}
6363

64-
let res = WriteProcessMemory(
65-
handle,
66-
dest,
67-
SHELLCODE.as_ptr().cast(),
68-
SIZE,
69-
null_mut(),
70-
);
64+
let res = WriteProcessMemory(handle, dest, SHELLCODE.as_ptr().cast(), SIZE, null_mut());
7165
if res == FALSE {
7266
panic!("WriteProcessMemory failed!");
7367
}

rustfmt.toml

Whitespace-only changes.

0 commit comments

Comments
 (0)
0