Results 1 to 10 of 11
First of all I'm extremely sorry if this is in the wrong part of the forum, but i really couldn't find anything relevant to my question.
My problem is I ...
- 06-04-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 5
Compiling bkhive source
First of all I'm extremely sorry if this is in the wrong part of the forum, but i really couldn't find anything relevant to my question.
My problem is I am creating a user interface to crack SAM and SYSTEM files and dump the hash. The program then uploads the hash to our servers in which we will crack them and send the cracked password back to the user automatically. Now my problem is to crack NTLM hash's u need a newer version of bkhive and samdump2 than what I currently have. So I went to (cant post it cause the 15 post thing but its on sourceforge, just type in "download samdump2 + ophcrack" in google) in which both bkhive and samdump are hosted (the versions I need). However the code is open source. So my problem is how can i compile this code for windows....? I can compile it on Linux, but however if i then try to use the compiled file on M$ i get an error. I have not done much at all to do with compiling source, so I really have no idea where to go from here.
Thanks for any help
Ben
- 06-06-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Install Cygwin on your Windows box, and build it there with the GCC that comes with it. Cygwin provides a Unix/Linux environment in Windows, including a X server. I use it all the time, and it will compile and run most Linux sources such as this without difficulty.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-06-2009 #3Just Joined!
- Join Date
- Jun 2009
- Posts
- 5
Yeah, I have already tried that (From initial post: I managed to somehow compile bkhive 1.1.1 with cygwin and it works fine on windows. But however, when i try to do the same with samdump2 it errors. I have tried every version receiving exactly the same error.).
Unfortunately as it says, i can not get it to compile.
So, Im wondering if it is just my computer. My other computer has crashed so I can't try it on that one either. If someone could manage to compile this on their own computer i will be very grateful.
Thanks
- 06-06-2009 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Please post the errors that you get. These are compiler errors, or are they linker errors? Also, did you run ./configure first?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-06-2009 #5Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Also, if you want us to try to compile this on our systems, you need to point us to the actual version of the source code that you are trying to build.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-07-2009 #6Just Joined!
- Join Date
- Jun 2009
- Posts
- 5
I have attached the error and the source.Also, if you want us to try to compile this on our systems, you need to point us to the actual version of the source code that you are trying to build.
Sorry if the image is a bit hard to read, the website re-sized it. I can upload it to my server if you wish.
I couldn't save the error to a text file because when using "make >> text.txt" it only saved the first two lines.
Also when using ./configure it says "bash: ./configure: No such file or directory"Also, did you run ./configure first?
I'm very sorry if I'm doing something stupid, I've never done this before
Thanks for your help.
- 06-07-2009 #7Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Many open source applications have a configuration script that interrogates the system, compiler, and such to determine what options it can use. Some do not do that. So, the fact that ./configure is not on the system is not unusual. Check to see if there is a script configure in the samdump directory. If there is one, you might need to set its permissions to execute. If not, then not to worry.
Anyway, from the error messages, it is obvious that the openssl headers are not in the include paths for the build. You might need to install that since I don't think the sources are installed with Cygwin by default. That lack is the cause of your compiler failure - not to say there aren't other issues, but we cannot tell until you fix that one.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-08-2009 #8Just Joined!
- Join Date
- Jun 2009
- Posts
- 5
How would I go about that? I realy have no idea what I am doing.Anyway, from the error messages, it is obvious that the openssl headers are not in the include paths for the build. You might need to install that since I don't think the sources are installed with Cygwin by default.
Sorry for stupid questions and thankyou for the fast replies
- 06-08-2009 #9Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Since you already have Cygwin installed on your PC, go to the Start -> Programs -> Cygwin menu and click on the Setup entry. You should be able to install the source for openssl from there. That will put the headers in your Cygwin /usr/include directory.
So, once in setup, continue until you get to the "Select Packages" form. Expand the "Net" entry where you will find openssl. Click the "Src" box in the openssl entry to get the source code for that package.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-09-2009 #10Just Joined!
- Join Date
- Jun 2009
- Posts
- 5
Good and bad news.
First of all thanks for your help, I got a little further.... It started to compile... unfortunately it ran into some more errors, I have attached the screenshot below.
Im thinking that the openssl package downloadable from the cygwin program may be out of date. I think these undefined references should be in the des,md5 and rc4 headers, but again I have no idea.
I really want to get this compiled so please stick with me. I think I am nearly there.


Reply With Quote
