sumshit
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
@@ -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"
|
||||
# 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
|
||||
@@ -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:
|
||||
|
||||
## 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"
|
||||
Reference in New Issue
Block a user