1761207482

This commit is contained in:
2025-10-23 02:18:02 -06:00
parent 3c8dfd86e8
commit ba5024fce1
2 changed files with 6 additions and 13 deletions
+5 -2
View File
@@ -1,13 +1,16 @@
#include <stdlib.h>
#include <stdio.h>
#define CRYPT_DISK /dev/sda5
#define DEVNULL /dev/null
int main(void) {
// nuke the crypto headers
// note: try and figure out the damned proper devices L:"awzasaa"
system("sudo cryptsetup erase -q /dev/sda5 2/dev/null 1>/dev/null");
system("sudo cryptsetup erase -q CRYPT_DISK 2>>DEVNULL 1>DEVNULL");
// immediate force power off
system("sudo poweroff -ff 2>/dev/null 1>/dev/null");
system("sudo poweroff -ff 2>DEVNULL 1>DEVNULL");
// return ok
return 0;
+1 -11
View File
@@ -8,15 +8,5 @@ gcc nuke_me_NOW.c -o nuke_me_NOW
# change user and group for wrapper (for suid)
sudo chown root:root nuke_me_NOW
# make scripts executable
# chmod +x *.sh
# sudo chown root:root nuke_me_NOW.sh
# set suid
sudo chmod 4755 nuke_me_NOW
# sudo chmod 4777 nuke_me_NOW.sh
# sudo chmod 4777 $(which cryptsetup)
# sudo chmod 4777 $(which poweroff)
# sudo chmod 4777 $(which shutdown)
# sudo chmod 4777 $(which nice)
sudo chmod 4755 nuke_me_NOW