Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows gcc verson #15

Open
dxls168 opened this issue Oct 8, 2016 · 21 comments
Open

Windows gcc verson #15

dxls168 opened this issue Oct 8, 2016 · 21 comments

Comments

@dxls168
Copy link

dxls168 commented Oct 8, 2016

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
Copy link
Owner

aczid commented Nov 21, 2016

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
Copy link

iWhacko commented Nov 28, 2016

I just built the libnfc.dll from source?

@dxls168
Copy link
Author

dxls168 commented Nov 28, 2016

solve_bs is enough.Not need libnfc.

@aczid
Copy link
Owner

aczid commented Nov 29, 2016

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

@dxls168
Copy link
Author

dxls168 commented Nov 29, 2016

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
Copy link

iWhacko commented Nov 29, 2016

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
Copy link
Owner

aczid commented Jan 10, 2017

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
Copy link
Owner

aczid commented May 4, 2017

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
Copy link
Author

dxls168 commented May 5, 2017

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

@dxls168
Copy link
Author

dxls168 commented May 5, 2017

text

Perfect!
Thanks again!

@aczid
Copy link
Owner

aczid commented May 5, 2017

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
Copy link
Owner

aczid commented May 5, 2017

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
Copy link
Owner

aczid commented May 5, 2017

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
Copy link

dxls168, write please how compile crypto1_bs on windows platform.

@dxls168
Copy link
Author

dxls168 commented May 31, 2017

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
Copy link

dxls168, can send me win exe file compiled please ?

@aczid
Copy link
Owner

aczid commented May 31, 2017

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

@marcoxx888
Copy link

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

@briggeml
Copy link

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
Copy link
Author

dxls168 commented Jun 13, 2017

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

@Semen8991
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants