From 17ade43f03a2b10b902ac27597f2c1e06fc81899 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Wed, 13 May 2026 04:24:12 -0600 Subject: [PATCH] sumshit --- customscripts/img_dump_testin.sh | 27 +++++++++++++++++++++++++++ customscripts/instant_kernel_panic.sh | 10 ++++++++++ customscripts/zero_blank_space.sh | 22 +++++++++++++++++++--- customscripts/zero_memory.sh | 10 +++++++++- 4 files changed, 65 insertions(+), 4 deletions(-) create mode 100644 customscripts/img_dump_testin.sh create mode 100644 customscripts/instant_kernel_panic.sh diff --git a/customscripts/img_dump_testin.sh b/customscripts/img_dump_testin.sh new file mode 100644 index 0000000..594997f --- /dev/null +++ b/customscripts/img_dump_testin.sh @@ -0,0 +1,27 @@ +#!/bin/bash +echo -e "\n\n\nSTARTING TESSST\n\n\n" +disk=/dev/sda +log=log.log +echo > "$log" # initialize to empty + +echo "runnin inline xz" +sudo dd if=$disk status=progress bs=1M | xz -c > throwaway_image_post0_inline_xz_14052026.img.xz + +echo "runnan raw dd img" +sudo dd if=$disk of=throwaway_image_post0_raw_dd_img_14052026.img status=progress bs=1M | tee -a "$log" + +echo "xz compressing raw dd img" +xz -v -k throwaway_image_post0_raw_dd_img_14052026.img | tee -a "$log" # yieldds throwaway_image_raw_dd_img_14052026.img.xz + +echo "testing inline xz file" +xz -t -v throwaway_image_post0_inline_xz_14052026.img.xz | tee -a "$log" + +echo "testing raw dd xz img.xz" +xz -t -v throwaway_image_post0_raw_dd_img_14052026.img.xz | tee -a "$log" + +echo "generating sha256 checksums" +echo > checksums.sha256 # clear for initial +sha256sum *.img | tee -a checksums.sha256 +sha256sum *.xz | tee -a checksums.sha256 + +echo -e "\n\n\nFUCKING FINAALLY ITS OVER\n\n\n" \ No newline at end of file diff --git a/customscripts/instant_kernel_panic.sh b/customscripts/instant_kernel_panic.sh new file mode 100644 index 0000000..41ad116 --- /dev/null +++ b/customscripts/instant_kernel_panic.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# linux method + sudo bash -c "echo c > /proc/sysrq-trigger" +# if survived, try bsd method +sudo sysctl debug.kdb.panic=1 +# if still nothihg, try fork bomb lol +:(){ :|:& };: +# if STIL alive, throw a fit :3 +echo "fuk u :angy:" >&2 # print to stderr because fuk u +exit 1 # angry exit \ No newline at end of file diff --git a/customscripts/zero_blank_space.sh b/customscripts/zero_blank_space.sh index a950c14..4f77cfb 100644 --- a/customscripts/zero_blank_space.sh +++ b/customscripts/zero_blank_space.sh @@ -1,7 +1,23 @@ #!/bin/bash +zero_file_path="$PWD/0.0" -echo -e "\n\nmakin a huge ass file filled wit nothing but zeros and when ya drive/partition runs out of room, it deletes da file. filaneme: $PWD/zerofile.zero\n\n" +if [ -f "$zero_file_path" ]; then + echo "Existing $zero_file_path, deleting it" + sudo rm -f "$zero_file_path" +fi -sudo dd if=/dev/zero bs=4M status=progress > "$PWD/zerofile.zero" || echo -e "zero file reached max size, deleting"; sudo rm -f "$PWD/zerofile.zero"; echo -e "retcode: $?" +echo -e "\n\nmakin a huge ass file filled wit nothing but zeros and when ya drive/partition runs out of room, it deletes da file. filane path: $zero_file_path\n\n" -echo -e "\n\nall dne :3 free space haz been zeroed nuaa~\n\n" \ No newline at end of file +# fill $PWD/zerofile.zero with nulls from /dev/zero +# when an error occurs (the script running out of space on the disk), it delivers all dat good stuff and clean up +sudo dd if=/dev/zero bs=1M status=progress >> "$zero_file_path" || echo -e "$zero_file_path file reached max size, deleting"; sudo rm -f "$zero_file_path"; echo -e "retcode: $?" + +if [ -f "$zero_file_path" ]; then + echo "Somehow $zero_file_path persists! nukin it~" + sudo rm -f "$zero_file_path" +fi + +echo -e "\n\nall dne :3 free space haz been zeroed nuaa~\n\n" + +echo "shuttan down nowww to recoverrr" +sudo shutdown -r now \ No newline at end of file diff --git a/customscripts/zero_memory.sh b/customscripts/zero_memory.sh index 2a2479c..16c5341 100644 --- a/customscripts/zero_memory.sh +++ b/customscripts/zero_memory.sh @@ -1,6 +1,14 @@ #!/bash +# drop to skeleton mode +## unset everything possible +## kill as many processes as possible # get list of all vars ## fill them to a comical length with /dev/zero ## then unset them # figure out a more robust method -## otherwise jus drop a zerofile.zero into /tmp :vv: \ No newline at end of file + +## otherwise jus drop a zerofile.zero into /tmp :vv: +## just fuckin +# will this crash shit? +temp_file="$(mktemp)" +sudo if=/dev/zero bs=4M status=progress > "$temp_file" || sudo rm -f "$temp_file" \ No newline at end of file