diff options
| author | Namilskyy <alive6863@gmail.com> | 2025-11-05 21:59:10 +0300 |
|---|---|---|
| committer | Namilskyy <alive6863@gmail.com> | 2025-11-05 21:59:10 +0300 |
| commit | 741095dff0ce66981e1a4dfa64426fb507869ece (patch) | |
| tree | 4f0fdd09712fde5feb740b8b0da3807748d2f7c4 /src/main.rs | |
| parent | 1f36c1d58db4423dc09d8408897dbb507026f89b (diff) | |
**RAW**: Added two more functions in `non_critical`: Kernel Panic: Sys-RQ kern panic & Broken kmod panic.
Updated `build.rs`, and more files
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 11 |
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(); + }, } } |
