Skip to content

Commit

Permalink
spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
dolevf committed Apr 23, 2024
1 parent aecc129 commit 2eab7a4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ch09/gnupg_passphrase_bf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ fi
while read -r passphrase; do
echo "Brute forcing with ${passphrase}..."
if echo "${passphrase}" | gpg --batch \
--yes \
--pinentry-mode loopback \
--passphrase-fd 0 \
--output private.pgp \
--armor \
--export-secret-key "${KEY_ID}"; then
echo "Passphrase is: ${passphrase}"
echo "Private key is located at private.pgp"
exit 0
--yes \
--pinentry-mode loopback \
--passphrase-fd 0 \
--output private.pgp \
--armor \
--export-secret-key "${KEY_ID}"; then
echo "Passphrase is: ${passphrase}"
echo "Private key is located at private.pgp"
exit 0
fi
done < passphrases.txt

0 comments on commit 2eab7a4

Please sign in to comment.