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

SIGSEGV in recovery #77

Open
0x5ECF4ULT opened this issue Feb 22, 2020 · 10 comments
Open

SIGSEGV in recovery #77

0x5ECF4ULT opened this issue Feb 22, 2020 · 10 comments

Comments

@0x5ECF4ULT
Copy link

So I got that SmartMX card with 4k emulation and tried to run the release version 0.3.8
Standard command ./mfcuk -C -R -1 throws a segfault.
Time to start gdb... This is the output:

mfcuk - 0.3.8
Mifare Classic DarkSide Key Recovery Tool - 0.3
by Andrei Costin, zveriu@gmail.com, http://andreicostin.com


INFO: Connected to NFC reader: pn532_uart:/dev/ttyUSB0


VERIFY: 
	Key A sectors: 0
Program received signal SIGSEGV, Segmentation fault.
0x0000555555557295 in main (argc=<optimized out>, argv=<optimized out>) at mfcuk.c:1521
1521	      for (j = 0; (j < crntNumVerifKeys) && (ptr_trailer->abtAccessBits[action_byte] & ACTIONS_VERIFY) && !(ptr_trailer->abtAccessBits[result_byte] & ACTIONS_VERIFY); j++) {
(gdb) 

It seems like the program crashes at the verification of the keys.
The funny thing is that if the type parameter is given. It tries to authenticate but constantly throws error 0x08
The card OS is "atrust-acos"

@xavave
Copy link

xavave commented Feb 22, 2020

did you try to compile and run this forked version: https://github.com/DrSchottky/mfcuk? maybe it would work better ..

@0x5ECF4ULT
Copy link
Author

Just tried out. Crashes at exact same position

@xavave
Copy link

xavave commented Feb 22, 2020

@tacticalDevC what about the windows version ? Could you try it ? I have compiled a bunch of tools, available here: http://legacy.averbouch.biz/libnfc-and-nfc-utils-binaries-on-windows-10/#alltools

@0x5ECF4ULT
Copy link
Author

I'm sorry I don't have any Windows machine anymore. Let's focus on the code. What do you need to find the error?

@xavave
Copy link

xavave commented Feb 22, 2020

@tacticalDevC you don’t have a dump of this tag so I could test it on my side ?

@0x5ECF4ULT
Copy link
Author

Nope because I wanted to crack the tag. But I have this. Maybe it helps you. Thanks in advance

@xavave
Copy link

xavave commented Feb 22, 2020

@tacticalDevC unfortunately I need a tag dump to try to reproduce this error.
did you try mfoc with extended keys dictionary: https://github.com/ikarus23/MifareClassicTool/blob/master/Mifare%20Classic%20Tool/app/src/main/assets/key-files/extended-std.keys

@0x5ECF4ULT
Copy link
Author

mfoc doesn't work either. Pls see this issue (spoiler: no one has answered yet).

@xavave
Copy link

xavave commented Feb 23, 2020

@tacticalDevC i replied here: nfc-tools/mfoc#77

@31KM
Copy link

31KM commented Jun 30, 2021

This is caused by the fact that your card is not a compatible Mifare card (only Classic 1K & 4K are supported AFAIK). I tried the tool with a DESFire v3 and got the same issue. Using it with a real Classic card on the other hand worked for me.

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

3 participants