Help with cracking a zip Password
#1
Hi there,

I'm trying to mess around with hashcat... but i don't really get it Undecided

I'm trying a simple example:
I create zip file with a 10 character Password, containing hex and + / -

like f7ab-f1a+4 

Then i extracted the hashes
zip2john test.zip > test.hash

i tried to mess around with the examples from the wiki, but i can't get anything to work...

hashcat64 -a 3 -1 abcdef1234567890+- ?1?1?1?1?1?1?1?1?1?1 test.hash

hashcat (v4.0.1) starting...
* Device #1: WARNING! Kernel exec timeout is not disabled.
             This may cause "CL_OUT_OF_RESOURCES" or related errors.
             To disable the timeout, see: https://hashcat.net/q/timeoutpatch
OpenCL Platform #1: NVIDIA Corporation
======================================
* Device #1: GeForce GTX 1080, 2048/8192 MB allocatable, 20MCU
Hash '?1?1?1?1?1?1?1?1?1?1': Line-length exception
No hashes loaded.
Started: Thu Nov 30 21:30:01 2017
Stopped: Thu Nov 30 21:30:02 2017


Any help would be appreciated
#2
mind your argument order
#3
Any difference if you do this?
hashcat64 -a 3 -1 abcdef1234567890+- test.hash ?1?1?1?1?1?1?1?1?1?1
#4
yeah, now i get a different error.... do i have to modify the output of the zip2john hash in some way? I'm on Windows btw.

hashcat64 -a 3 -1 abcdef1234567890+- test.hash ?1?1?1?1?1?1?1?1?1?1

hashcat (v4.0.1) starting...

* Device #1: WARNING! Kernel exec timeout is not disabled.
This may cause "CL_OUT_OF_RESOURCES" or related errors.
To disable the timeout, see: https://hashcat.net/q/timeoutpatch
OpenCL Platform #1: NVIDIA Corporation
======================================
* Device #1: GeForce GTX 1080, 2048/8192 MB allocatable, 20MCU

Hashfile 'test.hash' on line 1 (test.zip:$pkzip2$3*1*1*0*8*24*0691*8298*c4f946f6c403519eec8761bd69d222e2bf02b38cc479afb6f9d1e1173ece6f6049bd245d*1*0*8*24*6951*8298*c35dcb683b406df85e9876a9c375899b1fa2bbd888aaaf0176cdb78855678bca58128d1b*3*0*249f13*27a6a8*54eeb7f3*d6ffd09*37*8*1a*54ee*82a7*c:\test\test.zip*$/pkzip2$:::::c:\test\test.zip): Line-length exception
No hashes loaded.

Started: Thu Nov 30 22:51:40 2017
Stopped: Thu Nov 30 22:51:40 2017
#5
You'll need a -m parameter as well.
#6
see https://hashcat.net/wiki/doku.php?id=example_hashes