# KDBX Files

A KDBX file is a password database created by KeePass Password Safe.

### Open KDBX File <a href="#open-kdbx-file" id="open-kdbx-file"></a>

If KeePass software does not exist in our system, run the following command.

```shellscript
sudo apt install keepassx
# or
sudo apt install keepass2
```

To open \**KeePass*, run the following command.

```shellscript
keepassx
# or
keepass2
```

#### Copy Password <a href="#copy-password" id="copy-password"></a>

Right-click on the password value then click **Copy Password**.

### Crack KDBX Password <a href="#crack-kdbx-password" id="crack-kdbx-password"></a>

When opening KDBX file in KeePass if you’re asked the Master Key, you need to crack the password of the KDBX file. **John The Ripper** can be used to crack the password.

#### 1. Convert to Hash <a href="#id-1-convert-to-hash" id="id-1-convert-to-hash"></a>

```shellscript
keepass2john example.kdbx > hash.txt
```

#### 2. Crack the Hash <a href="#id-2-crack-the-hash" id="id-2-crack-the-hash"></a>

```shellscript
john --wordlist=wordlist.txt hash.txt
# or
hashcat -m 13400 -a 0 hash.txt wordlist.txt
```
