From 6a58e3a3e6e7f8069f4e0126c8c768bf8b3e9dd4 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sat, 23 May 2026 12:06:45 -0600 Subject: [PATCH] this is my life now. infinite frustration cast upon me by an evil curse \ --- README.md | 4 +++- create-attributable-archive.sh | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1858dbd..c292190 100644 --- a/README.md +++ b/README.md @@ -75,4 +75,6 @@ todo - checks with cracklib-check - checks online with haveibeenpwned.com - bug fixes -- random data is now actually optional and is only 128 bytes (1024 bits) and are generated securely \ No newline at end of file +- random data is now actually optional and is only 128 bytes (1024 bits) and are generated securely +- better antiforensics by unsetting vars and cleaning up on exit +- \ No newline at end of file diff --git a/create-attributable-archive.sh b/create-attributable-archive.sh index 0558b86..2b3f98e 100755 --- a/create-attributable-archive.sh +++ b/create-attributable-archive.sh @@ -182,7 +182,7 @@ exit_cleanup() { for var in $(compgen -v); do printf "unsetting $var" - unset "$var" + unset "$var" 2>/dev/null checkcode $? done } @@ -215,7 +215,10 @@ checkcode $? echo "inject random data y/n (default n)" read random +#why dafuck is this opposite world? if [[ "$random" == "" || "$random" =~ ^[nN]{1}$ ]]; then + echo -e 'no random... \e[1;32mOK!\e[0m\n' +else printf "random: adding 1/2 random blocks of data (1024 bits, 128 bytes) to outer archive..." openssl rand -out "$out_dir/.$RANDOM" 128 > /dev/null 2>&1 checkcode $? @@ -223,8 +226,6 @@ if [[ "$random" == "" || "$random" =~ ^[nN]{1}$ ]]; then printf "random: adding 2/2 random blocks of data (1024 bits, 128 bytes) to inner archive..." openssl rand -out "$inner_dir/.$RANDOM" 128 > /dev/null 2>&1 checkcode $? -else - echo -e 'no random... \e[1;32mOK!\e[0m\n' fi printf "7z: compressing inner volume..."