V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -246,16 +246,13 @@ fi)\
|
|||||||
# 0: on success
|
# 0: on success
|
||||||
#######################################
|
#######################################
|
||||||
read_passphrase() {
|
read_passphrase() {
|
||||||
declare -a METHODS=("sha512crypt" "yescrypt" "scrypt" "bcrypt")
|
declare -a METHODS=( "sha512crypt" )
|
||||||
declare METHOD="" SALT=""
|
declare METHOD="" SALT=""
|
||||||
|
|
||||||
PASSPHRASE="$(${ASKPASS} "Enter passphrase: ")"
|
PASSPHRASE="$(${ASKPASS} "Enter passphrase: ")"
|
||||||
|
|
||||||
if [[ "${NUKE_ENABLED,,}" == 'true' ]]; then
|
if [[ "${NUKE_ENABLED,,}" == 'true' ]]; then
|
||||||
|
|
||||||
### Validate NUKE_HASH format (e.g., $id$salt$hash)
|
|
||||||
if [[ "${NUKE_HASH}" =~ ${REGEX} ]]; then
|
|
||||||
|
|
||||||
SALT="$(cut -d'$' -f3 <<< "${NUKE_HASH}")"
|
SALT="$(cut -d'$' -f3 <<< "${NUKE_HASH}")"
|
||||||
|
|
||||||
for METHOD in "${METHODS[@]}"; do
|
for METHOD in "${METHODS[@]}"; do
|
||||||
@@ -271,8 +268,6 @@ read_passphrase() {
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -427,8 +422,8 @@ main() {
|
|||||||
secure_unset_pass
|
secure_unset_pass
|
||||||
# TODO: DEBUGGER
|
# TODO: DEBUGGER
|
||||||
echo "Inside if printf %s '${PASSPHRASE}' | cryptroot-unlock; then"
|
echo "Inside if printf %s '${PASSPHRASE}' | cryptroot-unlock; then"
|
||||||
drop_bash
|
#drop_bash
|
||||||
#exit 0
|
exit 0
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user