09-17-2010, 09:36 PM
well i just think how to code this
or set size during init...
unfortunately in both cases another variable is used wich of course reduce perfomance in normal md5 mode. therefore probably this is a bad idea
but how about quick hack? i can load hashes like
e10adc3949ba59ab0000000000000000
5f4dcc3b5aa765d60000000000000000
cb1d65bec7c1bd480000000000000000
- and only thing needed is to compare 8 bytes not 16
im stuck in disassembling oclHashcat32.bin, have no idea how to fix this in hex editor
p.s.: how about to compare 8 bytes in all cases and modes? this saves memory and cpu, and still gives 100% hit
Code:
if(reduced)
return !memcmp(h0, h1, 8 * sizeof(BYTE));
else
return !memcmp(h0, h1, 16 * sizeof(BYTE));
or set size during init...
Code:
if(reduced_option)
md5size = 8 * sizeof(BYTE);
else
md5size = 16 * sizeof(BYTE);
...
return !memcmp(h0, h1, md5size);
unfortunately in both cases another variable is used wich of course reduce perfomance in normal md5 mode. therefore probably this is a bad idea
but how about quick hack? i can load hashes like
e10adc3949ba59ab0000000000000000
5f4dcc3b5aa765d60000000000000000
cb1d65bec7c1bd480000000000000000
- and only thing needed is to compare 8 bytes not 16
im stuck in disassembling oclHashcat32.bin, have no idea how to fix this in hex editor
p.s.: how about to compare 8 bytes in all cases and modes? this saves memory and cpu, and still gives 100% hit