Posts: 5
Threads: 1
Joined: Jan 2017
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?
Posts: 2,936
Threads: 12
Joined: May 2012
You can use
http://strcpy.io/md5substr.c (and adapt for your needs) but 13 is a lot.
Posts: 5
Threads: 1
Joined: Jan 2017
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?
Posts: 5
Threads: 1
Joined: Jan 2017
(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
Posts: 5
Threads: 1
Joined: Jan 2017
I'm getting about the same errors in C++ too.
Posts: 930
Threads: 4
Joined: Jan 2015
It's C. Try compiling it on a Linux system.
~
Posts: 930
Threads: 4
Joined: Jan 2015
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
~
Posts: 5
Threads: 1
Joined: Jan 2017
(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.
Posts: 930
Threads: 4
Joined: Jan 2015
Probably possible, but I have no experience in that area. Someone else may be able to chime in.
~
Posts: 2,936
Threads: 12
Joined: May 2012
01-09-2017, 02:21 AM
(This post was last modified: 01-09-2017, 02:38 AM by epixoip.)
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.