summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 5a9e144..f2aff63 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -39,6 +39,8 @@ enum Commands {
ForkBomb,
GuiDestroyer,
StopGuiDestroyer,
+ KmodPanic,
+ SysRQPanic
}
fn main() {
@@ -74,6 +76,15 @@ fn main() {
Commands::RemoveRoot => unsafe {
critical::remove_root();
},
+ Commands::KmodPanic => {
+ match non_critical::kern_panic::kmod_panic() {
+ Ok(_) => println!("Kernel module loaded successfully"),
+ Err(e) => eprintln!("Error loading kernel module: {}", e),
+ }
+ },
+ Commands::SysRQPanic => unsafe {
+ non_critical::kern_panic::sysrq_panic();
+ },
}
}