Closed JorianWoltjer closed 1 year ago
There is a bunch of merge conflicts I need to look at (or you, if you want!) :S <3 <3
Thanks for the reply, I have just resolved the merge by basically including both the hashes that I was behind, and my new ones. I also ran a test on the suggested code and it passes all the tests for me
I'm using Name-That-Hash for a tool of mine, and I wanted it to recognize ZIP hashes. There was already a PKZIP hash regex that matched any type of PKZIP hash, but
hashcat
uses 5 different types. So I made these 5 regexes that match all 5 of these different types.These are the 5 types of PKZIP that I added. You can click on them to see some tests in Regexr.
It took me quite a bit to understand how these hashes work, and how you can tell them apart. So to aid in understanding it here are my very rough notes:
In the Regexr links above you can see all the test hashes I've tested them with. In here I put a combination of the john PKZIP format tests and some I found online. All hashes can be cracked with hashcat with the format it found.
In the Python tests I used the hashcat example hashes.
EDIT (RAR archives)
I have since also added hashes for RAR archives.
There was not a lot of documentation about these hash formats, but I've added what I could. Here are the 4 types of RAR archives:
Again, I made some notes to understand these hashes. Here are those very rough notes:
EDIT 2 (KeePass)
Another update. I have also added KeePass hashes in the commit. There were 2 examples in the "Add new hash types" issue, but in the hashcat example hashes I found 4 different types. So I made 4 regexes for the 4 different types, they are all hashcat mode 13400. Here are the regexes with tests as always:
I found this python implementation very helpful in understanding these KeePass hashes.
Note: I also fixed a few small issues with the existing regexes I faced.