Add new format -m 15300 Dpapi master key file version 1 and version 2#1238
Add new format -m 15300 Dpapi master key file version 1 and version 2#1238jsteube merged 8 commits intohashcat:masterfrom
Conversation
Remaining this bug + tests.pl before PR
|
Nice work. This really looks interessting for the pentesting community. Here some comments:
Try to replace with u8 also in ascii_digest ()
If possible, please remove that. You should be able to access the password from within _loop() and _comp() kernels the same way as in _init().
to (please find the ? mark):
Shoudl be limited to : And later, once you have did all the parsing and testing (for correct length) code do the converts.
This could lead to problems (in case you had an invalid hash parser before). If you set only 16 byte, set the salt_len to 16, not 32. Or set really 32 byte in salt_buf[]
|
1) done + got rid of all u8 datatypes in shared struct 2) cf. previous 3) necessary as this is computed in _init then used in _comp 4) done 5) done 6) done => switch to 16 7) done
|
Great work, thanks! |
Hi there,
after implementing the format in John the Ripper (openwall/john#2521) here it is in hashcat.
You will need DPAPImk2john.py, provided in @magnumripper JtR run/ folder
tl;dr: cracking master keys can be useful in some situations:
If you want some more information:
http://www.synacktiv.ninja/ressources/univershell_2017_dpapi.pdf
Performances:
* Device 3: GeForce GTX 1080, 2048/8192 MB allocatable, 20MCU
* Device 4: GeForce GTX 1080, 2048/8192 MB allocatable, 20MCU
* Device 5: GeForce GTX 1080, 2048/8192 MB allocatable, 20MCU
Hashtype: Domain Cached Credentials 2 (DCC2), MS Cache 2
Speed.Dev.3.....: 322.5 kH/s (49.23ms)
Speed.Dev.4.....: 324.3 kH/s (49.00ms)
Speed.Dev.5.....: 330.2 kH/s (98.64ms)
Speed.Dev.#*.....: 977.0 kH/s
* Device 3: GeForce GTX 1080, 2048/8192 MB allocatable, 20MCU
* Device 4: GeForce GTX 1080, 2048/8192 MB allocatable, 20MCU
* Device 5: GeForce GTX 1080, 2048/8192 MB allocatable, 20MCU
Hashtype: DPAPI masterkey file v1 and v2
Speed.Dev.3.....: 71304 H/s (48.37ms)
Speed.Dev.4.....: 70829 H/s (48.75ms)
Speed.Dev.5.....: 73656 H/s (93.78ms)
Speed.Dev.#*.....: 215.8 kH/s
Which is not that bad, regarding the high iterations number and algorithms involved!
Cheers!
Ours