mirror of
https://github.com/b1tg/rust-windows-shellcode
synced 2026-06-08 13:14:11 +00:00
add build.rs
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
fn main() {
|
||||
let input = "OutputDebugStringA";
|
||||
let bytes= input.as_bytes().to_owned();
|
||||
let mut bytes: Vec<String> = bytes.into_iter().map(|a:u8| format!("{}", a)).collect();
|
||||
bytes.push("0".to_owned());
|
||||
let bb = bytes.join(", ");
|
||||
dbg!(&bb);
|
||||
let input_up = input.to_uppercase();
|
||||
let res = format!("const {} :&[u16] = [{}];", input_up, &bb);
|
||||
dbg!(res);
|
||||
}
|
||||
Reference in New Issue
Block a user