example: add create_thread

This commit is contained in:
b1n
2024-06-23 20:44:29 +08:00
parent b20db624c0
commit 442f4fac8c
4 changed files with 136 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
use std::{fs, iter};
fn main() {
let mut shellcode = "$$SHELLCODE$$".as_bytes().to_vec();
shellcode.extend(iter::repeat(b'0').take(1024*1024));
fs::write("shellcode", shellcode.as_slice()).unwrap();
}