meatballs i wanted meatballs god damn it

This commit is contained in:
2026-05-23 13:42:10 -06:00
parent af8c18f19c
commit ee5be2d9eb
2 changed files with 58 additions and 343 deletions
+58 -4
View File
@@ -1,6 +1,13 @@
#!/bin/bash
# packages: 7zip, shred, secure-delete, cracklib-runtime, openssl, curl
set -e
# set safety optinonz
set -o errexit # fail on error
set -o errtrace # run trace on error
set -o pipefail # fail on pipe fail
set -o nounset # fail on unset var
# aset ya globals
unix_seconds=$(date +%s)
key_path="./private_ed25519_${unix_seconds}"
signature_tag="file-integrity"
@@ -178,10 +185,10 @@ audit_passphrase() {
fi
}
audit_passphrase "it was always you who i despised, redd fPGuXrWrP9WBWbW1xhSTwgBD :3" "it was always you who i despised, redd fPGuXrWrP9WBWbW1xhSTwgBD :3"
exit_cleanup() {
reset
printf "antiforensics: cleaning up"
reset > /dev/null 2>&1
checkcode $?
for var in $(compgen -v); do
printf "unsetting $var"
@@ -190,9 +197,56 @@ exit_cleanup() {
done
}
# Define the cleanup function
error_handle() {
# CRITICAL: Capture the exit status code before ANY other command runs
local exit_code=$?
local script_path="$(realpath $0)"
local hr='===================================================='
echo
echo $hr
echo -e "🚨 \033[0;31m FATAL ERROR DETECTED \033[0m"
echo $hr
echo "-> Script : $0"
echo "-> Num Script Args : $num_of_args"
echo "-> Script Args : $all_args"
echo "-> Shell : $SHELL"
echo "-> Script Path : $script_path"
echo "-> Script (full) : $SHELL $script_path $all_args"
echo "-> User : $USER"
echo "-> Working Directory : $PWD"
echo "-> Failed Command : $BASH_COMMAND"
echo "-> Line Number : $LINENO"
echo "-> Exit Status : $exit_code"
echo "-> Seconds Elapsed : $SECONDS"
echo "-> Date Failed : $(date)"
# Generate a professional, clean stack traceback
echo "-> Stack Trace"
printf "\t" # to intent da stack trace
local frame=0
# Loop backwards through the function execution stack array
while caller $frame; do
printf "\t" # to indenet da stack trace
frame=$((frame + 1))
done
# closing niceties
echo
echo $hr
echo
# exit with last failcode
exit "$exit_code"
}
# clean da fuck up on exit
trap exit_cleanup EXIT
# handleerrorz
trap error_handle ERR
audit_passphrase "it was always you who i despised, redd fPGuXrWrP9WBWbW1xhSTwgBD :3" "it was always you who i despised, redd fPGuXrWrP9WBWbW1xhSTwgBD :3"
# and clean da fuck up on start
printf "setting up environment..."
reset