-
Notifications
You must be signed in to change notification settings - Fork 270
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
Add instructions for building mfoc on Windows. #74
Comments
Hi, |
Hello @xavave, Thank you so much for sharing this! This is wonderful! Do you by chance have any documentation on what you changed from the original Linux version? Or is it linked in your post and I just didn't see it? I ask because I would be interested in trying to maintain a Windows version that tries to keep up to date with changes applied to the Linux version. You certainly provide a wonderful starting point for doing just that. |
@DavidBerdik I used libnfc1.7.1 and mainly used tutorial here : https://github.com/peacepenguin/libnfc-unofficialbuilds btw I've also cross-compiled libfreefare for windows 64, you can find binaries in attachment at the end of my post here : and also a forked C# wrapper here : https://github.com/xavave/sharp-free-fare I've just updated my post about mfoc here : http://legacy.averbouch.biz/libnfc-and-nfc-utils-binaries-on-windows-10/ |
Excellent! Thanks for sharing! I played with the prebuilt binaries a bit last weekend, and everything worked fine except for Installing MINGW from the Chocolatey repo (https://chocolatey.org/packages/mingw) fixed the problem. I found that I could get the program to work on a machine without MINGW installed by copying the DLL mentioned in the error from the MINGW installation from a machine that has it and dropping it in the same directory as the executable. TL;DR - If |
After further experimentation, I am not sure that the Last chunk of output as of this post:
My command to start running the attack was Any suggestions @xavave? |
@DavidBerdik Did you use exactly the same command parameters when it worked on Ubuntu ? |
@xavave Yes, I used exactly the same command parameters when testing on Ubuntu. I can say that with absolute confidence because I copied the command off to a text file for future use when testing on Ubuntu. As for which version I used, I am not sure because I did not compile from source. I installed it using I will try testing now and let you know how it goes. Edit: When I start running the attack, I always get 3 warnings in the console. Perhaps they are of some importance?
|
@DavidBerdik I’m not sure the warnings make a difference. |
@xavave Unfortunately, none of the |
@DavidBerdik on my laptop When I test my mfcuk I can see different « diff nt » and « auth » values. So I don’t understand the problem for now. I can wait for your dump, no problem. Thank you |
@DavidBerdik I tried also mfcuk on linux but I get the same results : same count of auths and diff nt , maybe the issue comes with the reader ACR122U-A9 or, the tag used for test is protected too much ? I have no clue for now --> nfc-tools/mfcuk#50 |
@xavave I expect that I will have time to play with this a little tomorrow. I will try to take a dump of it on Linux and post it here. I remember the last time I cracked the card, I used What reader are you using? ACR122U as well? |
@xavave An update for you: I am trying to crack the card on my Linux laptop right now, and it's doing the same thing. I know it worked before so I'm going to try to just let it run its course. I'm at about 37,000 auths right now. |
@DavidBerdik do you use exactly the same card reader than before ? |
@xavave Yep! Same card reader and same card. I woke up this morning to find that |
@xavave Have you had any luck? I have been trying with another, different card now for several days and it's doing the same thing. I have also cracked this card before successfully. |
@DavidBerdik I didn't try again, but you are saying that on linux and, on windows mfcuk doesn't work ? and on linux it was working previously ? I have no clue, or mfcuk has been upgraded meanwhile and has new bugs ? on some tags mfcuk seems to work on my windows (« diff nt » and « auth » are different), and on some other tags, it doesn't ((« diff nt » and « auth » are different) |
@xavave I finally managed to get a key by setting |
@DavidBerdik good 👍🏻 |
@xavave It took about 30 minutes. Unfortunately, the card that I successfully dumped was not the hotel room key that I told you about earlier. The card that I managed to get working is actually sensitive, so I cannot share it. I am going to keep experimenting with the other card on Linux to see if I can get a dump to share with you. The room key has one of the default keys that |
@DavidBerdik ok 👍 thank you |
@xavave It just occurred to me that even though I should point out that this |
thank you, I'm going to test it now |
@xavave Excellent! Good luck! |
@DavidBerdik after a few minutes, diff nt and auths or different : the mfcuk I used is attached here I will let you know how it ends.. |
@xavave I get different values for I was actually not aware that you could attack for B keys using |
@DavidBerdik I was reading on some chinese forums (that I've google translated :) ) that the results depend on the sector you attack, so many tries can be done before finding |
@xavave Thanks for sharing! I have seen similar claims on other websites, but as I understand, my attacks are taking longer than they should have to. In several cases over the last few weeks, I let them run for over 24 hours without any progress made at all. In some of those cases, |
@DavidBerdik it doesn't seem to work for me neither |
@xavave Have you experimented with doing it on Linux at all? Also, why do some versions of |
@DavidBerdik I should try on Linux again. Tonight I let mfcuk run with libnfc.dll v1.5 to check if issue can be related to latest Libnfc version 1.7. https://github.com/DrSchottky/mfcuk/blob/master/src/mfcuk.c line 623 |
@DavidBerdik I maybe some cards are not sentitive to mfcuk: http://www.cs.ru.nl/~rverdult/Ciphertext-only_Cryptanalysis_on_Hardened_Mifare_Classic_Cards-CCS_2015.pdf |
@DavidBerdik I've decommented debug print in mfcuk source code on windows and ubuntu and, i've noticed that on ubuntu, nonce distance is between 0 and about 65535 and values follows each others |
I have had an Also, I am not sure what the nonce distance value is supposed to mean. |
@xavave I'm trying the other card that I mentioned in my previous post, and I am seeing no progress. The |
@DavidBerdik some cards are protected against dark side attack. But I still can’t explain why different mfcuk versions never found a key for me neither on Ubuntu neither on windows with different cards including blank ones. I’ve just ordered a proxmark 3 Tag reader so I will be able to compare results with Acr122u-a9 soon. |
@xavave What disturbs me is that I have already cracked this card using As for how long it took when I did it last year, it was a several-hour process. |
@DavidBerdik I've reopened this issue on dedicated mfcuk discussion : nfc-tools/mfcuk#76 |
Yo bro, apparently the website you linked is empty! could you please share this somewhere else? I would really appreciate it |
The Internet Archive has it: https://web.archive.org/web/20230331102618/http://legacy.averbouch.biz/libnfc-and-nfc-utils-binaries-on-windows-10/ |
Hi @GitH-Michael @DavidBerdik, |
@xavave Unfortunately it does not seem to be loading for me. |
@DavidBerdik did you try with https://blog.avxt.fr ? |
@xavave This is what I see. |
The available documentation for mfoc details how to build it on *nix-based systems, but not Windows. Even if this project is not intended for Windows, I believe the project could still benefit from providing instructions for building for Windows for those who would like to try it.
Unfortunately, using a VM with USB passthrough is not possible, as the program does not work properly in a VM, and USB passthrough is apparently not supported by the Windows Subsystem for Linux for anything other than external drives and flash drives.
The text was updated successfully, but these errors were encountered: