Files
Whitecat18 28e7fac1d3 Upload
Rust-for-Malware-Development is an collection of proof of concepts with techniques and advanced evasion methods
2026-06-06 14:53:10 +05:30

23 lines
512 B
Rust

// Just an sample Example of using using extern to Run MessageBoxA ..!
// Create an Function with the help of Microsoft Documentation !
use std::ptr::null_mut;
extern "system" {
fn MessageBoxA(
hWnd: *mut std::ffi::c_void,
lpText: *const u8,
lpCaption: *const u8,
uType: u32,
) -> i32;
}
fn main() {
let text = b"Hello Nerds..\0".as_ptr();
let caption = b"Meow_Meow\0".as_ptr();
unsafe {
MessageBoxA(null_mut(), text, caption, 0x00000000);
}
}