aczid / crypto1_bs

Bitsliced Crypto-1 brute-forcer
200 stars 78 forks source link

Windows gcc verson #15

Open dxls168 opened 7 years ago

dxls168 commented 7 years ago

Hi: I have tried to compile your project with MINGW and have solved all the compilation warnings and errors, but the final project still does not work and the program stuck in the crack process. In Ubuntu, the program is very easy to use. Sincerely hope that you can out of a windows version of the project, very grateful to you.

aczid commented 7 years ago

Hey, I'm sorry but I don't think this will really work again. There is no up-to-date libnfc.dll as far as I can tell.

iWhacko commented 7 years ago

I just built the libnfc.dll from source?

dxls168 commented 7 years ago

solve_bs is enough.Not need libnfc.

aczid commented 7 years ago

I had trouble building the latest libnfc.dll. Anyway I'm not sure why it doesn't work when compiled on windows.

dxls168 commented 7 years ago

Hi,You can use cmake to build it.Then use gcc .Can you give me an e-mail address?I can send you lib and dll.

iWhacko commented 7 years ago

crypto1_bs_crack.c uses sysinfo.h etc and some linux specific calls for memory. I'm not familiar enough with it that I can port it to windows. However I added the dll etc to this post maybe it's of use to you for testing libnfc.zip

aczid commented 7 years ago

I did a bit more investigation. The problem I'm having is combining a 32 bit-library (libnfc) with some 64-bit code (crypto1_bs/crapto1/craptev1).

aczid commented 7 years ago

After some more small patches, I've tested a linux/mingw cross-compiled versions of solve_piwi and solve_piwi_bs for 32-bit windows in a win7 VM and they both work fine for me. No detection of the number of CPU cores yet, though. And also I did not get these versions working on native win8 for some reason... Added make targets 'win32' and 'win64' for these. If anything it's evidence the code works on windows in principle.

dxls168 commented 7 years ago

I'll try! Thank you again for your great help!

dxls168 commented 7 years ago

text

Perfect! Thanks again!

aczid commented 7 years ago

Wow, I didn't get libnfc code to work when cross-compiling. Thank you for testing, that's even better than I had hoped!

aczid commented 7 years ago

What build system are you using? You're very welcome to add native (non-mingw) targets to the Makefile and file a pull request. Feel free to rename the mingw cross-compilation make targets while you are at it.

aczid commented 7 years ago

I assume you also had to replace some of the signal()/alarm() calls to use windows-style Timers? I have an untested patch for libnfc_crypto1_bs.c for that, too.

maxben14 commented 7 years ago

dxls168, write please how compile crypto1_bs on windows platform.

dxls168 commented 7 years ago

1.You need download the Mingw . 2.Put the files into the ’user‘ folder. 3 Run the Mingw-shell and into the ’user‘ folder,then input the command 'make' . 4 If anything get wrong,change the Makefile chose one to make.

maxben14 commented 7 years ago

dxls168, can send me win exe file compiled please ?

aczid commented 7 years ago

Bla's license clearly states no redistribution. Don't be lazy.

marcoxx888 commented 7 years ago

hi dxls168, may I have some tips to get crypto1_bs compiled for Windows? My emal is marco.rossinol at gmail . com

briggeml commented 7 years ago

Hi @dxls168, I also compiled crypto1_bs for Win, but still couldn't get keys despite the long time passed. What did you do with (Mingw warning and errors): 1) thread_count = get_nprocs_conf();? //hardcoded threads? 2) alarm(1); signal(SIGALRM, notify_status_offline);? //some kind of: timeSetEvent(0, 0, notify_status_offline, 0, TIME_PERIODIC);? 3) fcntl(0, F_SETFL, O_NONBLOCK);? //unsigned long on = 1; ioctlsocket(0, FIONBIO, &on);?

dxls168 commented 7 years ago

Hi @briggeml: These are Linux functions.You can ignore progress display and set the thread_count =1.

Semen8991 commented 5 years ago

Hi @briggeml: These are Linux functions.You can ignore progress display and set the thread_count =1.

Hello! Can you please help with compiling on Windows?