MD5 substring
#1
I got a list of ~1300 hashes along with unique salts. The passwords are hashed using 
Code:
substr(md5(salt + pass), 0, 13)
I read https://hashcat.net/forum/thread-1977.html and I've tried to write my own program but I can't make it fast enough for 13-hexadecimal-digits hashes.

My questions are
1. That thread I linked is a couple years old. Is this possible in hashcat now in 2017?
2. Can I add some kind extension to hashcat to make it possible?
3. Can someone help me write a program for this? Or tell me how to optimize it.
4. Will it ever be added? Any ETA?
#2
You can use http://strcpy.io/md5substr.c (and adapt for your needs) but 13 is a lot.
#3
Ehmm... How am I supposed to run it? I tried to copy it into a blank C file in Visual Studio but it didn't compile.
cannot open source file "pthread.h" Line 39
cannot open source file "unistd.h" Line 36
expected a ';' Line 226, 227, 228, 232, 233, 448 and 492
expected an expression Line 492
expression must have integral type Line 198 all the way to 213

And some more. Am I supposed to do this from command-line or somthing? It's C, right?
#4
(01-08-2017, 11:11 PM)Diapa Wrote: Ehmm... How am I supposed to run it? I tried to copy it into a blank C file in Visual Studio but it didn't compile.
cannot open source file "pthread.h"   Line 39
cannot open source file "unistd.h"   Line 36
expected a ';'   Line 226, 227, 228, 232, 233, 448 and 492
expected an expression   Line 492
expression must have integral type   Line 198 all the way to 213

And some more. Am I supposed to do this from command-line or somthing? It's C, right?

Or maybe it's C++? Looks like it's C from the extension http://strcpy.io/md5substr.c
#5
I'm getting about the same errors in C++ too.
#6
It's C. Try compiling it on a Linux system.
~
#7
Note also the compilation instructions that are in the source code itself:

cc -o md5substr md5substr.c -march=native -O3 -funroll-loops -fomit-frame-pointer -pthread
~
#8
(01-09-2017, 12:14 AM)royce Wrote: Note also the compilation instructions that are in the source code itself:

cc -o md5substr md5substr.c -march=native -O3 -funroll-loops -fomit-frame-pointer -pthread

OK that works! Thank you
I compiled it in linux successfully, but is it possible to get it running in Windows? My main machine is only Windows.
#9
Probably possible, but I have no experience in that area. Someone else may be able to chime in.
~
#10
I have no experience compiling in Visual Studio, but you could always install Cygwin. Or maybe edit the headers as appropriate and compile with mingw.