This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
Create main.rs
Abdul Wahab Junaid6ac3d0783621
diff --git a/Rust for Hacking/MessageBoxes/MessageBoxW/main.rs b/Rust for Hacking/MessageBoxes/MessageBoxW/main.rsnew file mode 100644index 0000000..49b65bb--- /dev/null+++ b/Rust for Hacking/MessageBoxes/MessageBoxW/main.rs@@ -0,0 +1,32 @@+struct Reply;++impl Reply{+ pub fn output(res: i32){+ match res{+ IDYES => println!("Ohh i see.. Okk lets create more malware"),+ _ => println!("Oops .. so Lets learn it"),+ }+ }+}+use winapi::um::winuser::{+ MessageBoxW,+ IDYES,+ MB_ICONASTERISK ,+ MB_YESNO};++fn main(){+ let text = "Are you a maldev\0".encode_utf16().collect::<Vec<_>>();+ // OR you can mut these vaiables and push Null byte on these vecs !.+ let title = "Sweety Box\0".encode_utf16().collect::<Vec<_>>();++ let reply = unsafe {+ MessageBoxW(+ std::ptr::null_mut(),+ text.as_ptr(),+ title.as_ptr(),+ MB_YESNO | MB_ICONASTERISK+ )+ };+ Reply::output(reply);++}