From eda8de914bc88e02a9f55cfaa147a551faf49721 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Thu, 23 Oct 2025 00:37:51 -0600 Subject: [PATCH] 1761201472 --- nuke_me_NOW.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nuke_me_NOW.sh b/nuke_me_NOW.sh index d7c2dba..8ea164a 100644 --- a/nuke_me_NOW.sh +++ b/nuke_me_NOW.sh @@ -10,5 +10,12 @@ else error_log=/dev/null fi -nice -20 cryptsetup erase /dev/sda5 1>>output.log 2>>error.log || cryptsetup erase --disable-locks dev/sda5 1>>output.log 2>>error.log -nice -20 poweroff -ff 1>>output.log 2>>error.log || shutdown -P now 1>>output.log 2>>error.log \ No newline at end of file +lsblk --list | awk '{printf "%s%s\n", "/dev/",$1}' | tail -n +2 | \ + while read device; do + if [ $(cryptsetup isLuks cryptsetup $device) -eq 0 ]; then + # nuke the luks headers + nice -20 cryptsetup erase -q $device 1>>$output_log 2>>$error_log || cryptsetup erase -q --disable-lock $device 1>>$output_log 2>>$error_log + # immediate halt poweroff + nice -20 poweroff -ff 1>>$output_log 2>>$error_log || shutdown -P now 1>>$output_log 2>>$error_log + fi + done \ No newline at end of file