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 Junaid76c2582ae455
diff --git a/Rust for Hacking/MessageBoxes/MessageBoxA/src/main.rs b/Rust for Hacking/MessageBoxes/MessageBoxA/src/main.rsnew file mode 100644index 0000000..73df060--- /dev/null+++ b/Rust for Hacking/MessageBoxes/MessageBoxA/src/main.rs@@ -0,0 +1,38 @@+struct Reply{+ reget: i32,+}++impl Reply{+ pub fn reply(&self){+ if self.reget == IDCANCEL{+ println!("User gave cancel");+ }+ if self.reget == IDTRYAGAIN{+ println!("Try again button");+ }+ else{+ println!("User gave continue!")+ }+ }+}++use winapi::um::winuser::*;+use winapi::um::winuser::{MB_CANCELTRYCONTINUE, MB_ICONWARNING , MB_DEFBUTTON2};++fn main(){+ let text = "You need learn as fk as you can..\0";+ let title = "Message from Smukx\0";++ // let mut count = 0;++ let status;+ unsafe{+ status = MessageBoxA(std::ptr::null_mut(),+ text.as_bytes().as_ptr() as *const i8 ,+ title.as_bytes().as_ptr() as *const i8,+ MB_CANCELTRYCONTINUE | MB_ICONWARNING | MB_DEFBUTTON2);+ }++ let out = Reply{reget: status};+ out.reply();+}