this is my life now. infinite frustration cast upon me by an evil curse \
This commit is contained in:
@@ -75,4 +75,6 @@ todo
|
|||||||
- checks with cracklib-check
|
- checks with cracklib-check
|
||||||
- checks online with haveibeenpwned.com
|
- checks online with haveibeenpwned.com
|
||||||
- bug fixes
|
- bug fixes
|
||||||
- random data is now actually optional and is only 128 bytes (1024 bits) and are generated securely
|
- 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
|
||||||
|
-
|
||||||
@@ -182,7 +182,7 @@ exit_cleanup() {
|
|||||||
|
|
||||||
for var in $(compgen -v); do
|
for var in $(compgen -v); do
|
||||||
printf "unsetting $var"
|
printf "unsetting $var"
|
||||||
unset "$var"
|
unset "$var" 2>/dev/null
|
||||||
checkcode $?
|
checkcode $?
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@@ -215,7 +215,10 @@ checkcode $?
|
|||||||
|
|
||||||
echo "inject random data y/n (default n)"
|
echo "inject random data y/n (default n)"
|
||||||
read random
|
read random
|
||||||
|
#why dafuck is this opposite world?
|
||||||
if [[ "$random" == "" || "$random" =~ ^[nN]{1}$ ]]; then
|
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..."
|
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
|
openssl rand -out "$out_dir/.$RANDOM" 128 > /dev/null 2>&1
|
||||||
checkcode $?
|
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..."
|
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
|
openssl rand -out "$inner_dir/.$RANDOM" 128 > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
else
|
|
||||||
echo -e 'no random... \e[1;32mOK!\e[0m\n'
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "7z: compressing inner volume..."
|
printf "7z: compressing inner volume..."
|
||||||
|
|||||||
Reference in New Issue
Block a user