ernestkym / mfcuk

MFCUK - MiFare Classic Universal toolKit
GNU General Public License v2.0
1 stars 0 forks source link

Segmentation fault #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I have segmentation fault each time I'm trying to recover keys.

What steps will reproduce the problem?
1. gdb ./mfcuk -C -R 0 -s 250 -S 250 -v 1
2. after a while I have this: 
Program received signal SIGSEGV, Segmentation fault.
0x00000000004031d0 in mfcuk_key_recovery_block 
(ui64KeyRecovered=0x7fffffff9938, uiBlock=3, bTagType=<optimized out>, 
    bKeyType=<optimized out>, uiUID=843309002, pnd=0x130c820, ui64Key=<optimized out>) at mfcuk.c:650
650         for (i = 0; (states_list) && ((states_list + i)->odd != 0 || 
(states_list + i)->even != 0) && (i < MAX_COMMON_PREFIX_STATES); i++) {

What version of the product are you using? On what operating system?
mfcuk from repository and 0.3.7,
Ubuntu 12.10, 64bit (I've been trying also on 32bit version, I didn't have seg 
fault, but recovered keys were wrong, only last bytes correct). 
gcc version 4.7.2 

I appreciate any suggestion on how to use mfcuk,
Best Regards,
Krzysiek

Original issue reported on code.google.com by rose...@gmail.com on 15 Mar 2013 at 10:37

GoogleCodeExporter commented 9 years ago
The same thing happens with ubuntu 12.04 64bit. With -s 250 -S 250 segmentation 
fault occure around 700 auth, with -s 200 -S 200 it was around 370 auth.

Original comment by piotr.kr...@gmail.com on 17 Mar 2013 at 3:36

GoogleCodeExporter commented 9 years ago
I can push patches but I do not work actively on this project.

So feel free to submit patches..

Original comment by romu...@libnfc.org on 4 Apr 2013 at 2:39

GoogleCodeExporter commented 9 years ago
Can be related to Issue 21, please try latest development version.

Original comment by romu...@libnfc.org on 10 Jan 2014 at 1:04

GoogleCodeExporter commented 9 years ago
I would advice not to use any x64 system. All my seg fault problems were gone, 
after switching to x86 system. mfcuk_0.3.8-0kali3_amd64 didnt't solve my issues.

Original comment by gurge...@googlemail.com on 5 Dec 2014 at 9:22