Posts: 5
	Threads: 1
	Joined: Jun 2017
	
	
 
	
	
		Hello. I forgot part of my keepass' password and trying to recover it. Forgotten part happened to be just 3 digits hence it shoudn't be hard to crack it. But I cant load *.kdbx file in hashcat and everything comes down to Line-length exceptions and not so happy "Hash 'x.kdbx': Line-length exception No hashes loaded" at the end. What I'm doing wrong here?
	
	
	
	
	
 
 
	
	
	
		
	Posts: 929
	Threads: 4
	Joined: Jan 2015
	
	
 
	
		
		
		06-04-2017, 04:45 PM 
(This post was last modified: 06-04-2017, 04:49 PM by royce.)
		
	 
	
		You cannot directly load the keepass file itself - you need to extract the hash to provide to hashcat. 
John the Ripper's keepass2john or 
harmj0y's Python port of keepass2john should work.
The result should look like the Keepass examples in 
the hashcat wiki list of example hashes.
	
 
	
	
~
	
	
 
 
	
	
	
		
	Posts: 5
	Threads: 1
	Joined: Jun 2017
	
	
 
	
	
		Wow, now it does someting. Well, only something. It skips my cpu and then gives me error:
"clBuildProgram(): CL_BUILD_PROGRAM_FAILURE
:6:10: fatal error: 'inc_vendor.cl' file not found
#include "inc_vendor.cl""
Anyway, I installed Intel's OpenCL and nothing changed, although from the very start it gives mi only two candidates and stops. I used "hashcat64.exe -m 13400 hash -a 3 -1 d? password?1?1?1password" command, maybe there is something wrong?
	
	
	
	
	
 
 
	
	
	
		
	Posts: 929
	Threads: 4
	Joined: Jan 2015
	
	
 
	
	
		If you're just using CPU, maybe try -D 1 ?
More info here:
https://hashcat.net/forum/thread-5566.html
	 
	
	
~
	
	
 
 
	
	
	
		
	Posts: 5
	Threads: 1
	Joined: Jun 2017
	
	
 
	
	
		Well, I managed to make it work, but it keeps giving me gibberish.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 929
	Threads: 4
	Joined: Jan 2015
	
	
 
	
	
		Could you be more specific? 
	 
	
	
~
	
	
 
 
	
	
	
		
	Posts: 5
	Threads: 1
	Joined: Jun 2017
	
	
 
	
	
		It just can't crack it 
	 
	
	
	
	
 
 
	
	
	
		
	Posts: 929
	Threads: 4
	Joined: Jan 2015
	
	
 
	
	
		To cross-check your methodology, consider creating a new KeePass volume with the same specifications and a known password, then try to crack that. 
	 
	
	
~
	
	
 
 
	
	
	
		
	Posts: 5
	Threads: 1
	Joined: Jun 2017
	
	
 
	
		
		
		06-05-2017, 11:26 AM 
(This post was last modified: 06-05-2017, 11:36 AM by korynt.)
		
	 
	
		'Unfortunately' it works with new keepass databases. It seems that digits weren't only ones that I got wrong, but at this point I'm confused af with this password. At least I can recover most passwords with my email, but it's a lot of work. On the other hand, I made hashcat work, so it's something! Well then, I should consider choosing passwords which I am actually able to remember 
Still, thanks for your help!