mvdzwaan / mfcuk

Automatically exported from code.google.com/p/mfcuk
GNU General Public License v2.0
0 stars 0 forks source link

Error compiling with cygwin #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when i tried to compile with cygwin it give me this error

$ make
gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -I/usr/local/include -I/usr/include/PCSC
   -MT mfcuk_keyrecovery_darkside.o -MD -MP -MF .deps/mfcuk_keyrecovery_darkside
.Tpo -c -o mfcuk_keyrecovery_darkside.o mfcuk_keyrecovery_darkside.c
mv -f .deps/mfcuk_keyrecovery_darkside.Tpo .deps/mfcuk_keyrecovery_darkside.Po
gcc  -g -O2 -I/usr/local/include -I/usr/include/PCSC     -o mfcuk_keyrecovery_da
rkside.exe crapto1.o crypto1.o mfcuk_finger.o mfcuk_keyrecovery_darkside.o mfcuk
_mifare.o mfcuk_utils.o mifare.o nfc-utils.o -lnfc -lusb -lpcsclite -lnfc
mfcuk_keyrecovery_darkside.o: In function `mfcuk_verify_key_block':
/home/yoyoy/mf/src/mfcuk_keyrecovery_darkside.c:253: undefined reference to 
`_iso14443a_crc_append'
mfcuk_keyrecovery_darkside.o: In function `mfcuk_key_recovery_block':
/home/yoyoy/mf/src/mfcuk_keyrecovery_darkside.c:407: undefined reference to 
`_iso14443a_crc_append'
collect2: ld returned 1 exit status
make: *** [mfcuk_keyrecovery_darkside.exe] Error 1

i have tried with r45 and r49 and have the same problem with r45 give me more 
errors

if i erase this line `_iso14443a_crc_append' it works but the program when i 
try to recover the keys it always give me error 0x04 all the time

Original issue reported on code.google.com by thefkb...@gmail.com on 9 May 2011 at 7:55

GoogleCodeExporter commented 9 years ago
i have changed:
iso14443a_crc_append 
to
append_iso14443a_crc
now compiled fine with cygwin but the error 0x04 when i tried to recover the 
key still there

Original comment by thefkb...@gmail.com on 9 May 2011 at 8:18

GoogleCodeExporter commented 9 years ago
the rest option of the program works fine.
only when I make: -C -o prueba.dmp -R -1

it give me all the time

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

WARN: cannot open template file './data/tmpls_fingerprints/mfcuk_tmpl_skgt.mfd'
WARN: cannot open template file './data/tmpls_fingerprints/mfcuk_tmpl_ratb.mfd'
WARN: cannot open template file './data/tmpls_fingerprints/mfcuk_tmpl_oyster.mfd
'

INFO: Connected to NFC reader:     CCID USB Reader 0 / ACR122U102 - PN532 v1.4 (
0x07)

VERIFY:
        Key A sectors: 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13 14 15 16 17 1
8 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27
        Key B sectors: 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13 14 15 16 17 1
8 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27

RECOVER:  0mfcuk_keyrecovery_darkside: ERROR: mfcuk_key_recovery_block() (error
code=0x04)
mfcuk_keyrecovery_darkside: ERROR: mfcuk_key_recovery_block() (error code=0x04)
mfcuk_keyrecovery_darkside: ERROR: mfcuk_key_recovery_block() (error code=0x04)

Original comment by thefkb...@gmail.com on 9 May 2011 at 8:27

GoogleCodeExporter commented 9 years ago
ok now works perfect i have to put -M 8 to select the type card if not yo 
willget

mfcuk_keyrecovery_darkside: ERROR: mfcuk_key_recovery_block() (error code=0x04) 

Original comment by thefkb...@gmail.com on 13 May 2011 at 4:55

GoogleCodeExporter commented 9 years ago

Original comment by romu...@libnfc.org on 17 Oct 2011 at 3:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
kumail@ubuntu:~/Desktop/libnfc-1.5.1/mfcuk-read-only/src$ ./mfcuk -C -o 
card.dmp -M8 -s 20 -S 50 -v 1

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

INFO: Connected to NFC reader: ACS ACR122U 00 00 / ACR122U210 - PN532 v1.6 
(0x07)

INITIAL ACTIONS MATRIX - UID 9c d7 e8 38 - TYPE 0x08 (MC1K)
---------------------------------------------------------------------
Sector  |    Key A  |ACTS | RESL    |    Key B  |ACTS | RESL
---------------------------------------------------------------------
0   |  000000000000 | . . | . . |  000000000000 | . . | . .
1   |  000000000000 | . . | . . |  000000000000 | . . | . .
2   |  000000000000 | . . | . . |  000000000000 | . . | . .
3   |  000000000000 | . . | . . |  000000000000 | . . | . .
4   |  000000000000 | . . | . . |  000000000000 | . . | . .
5   |  000000000000 | . . | . . |  000000000000 | . . | . .
6   |  000000000000 | . . | . . |  000000000000 | . . | . .
7   |  000000000000 | . . | . . |  000000000000 | . . | . .
8   |  000000000000 | . . | . . |  000000000000 | . . | . .
9   |  000000000000 | . . | . . |  000000000000 | . . | . .
10  |  000000000000 | . . | . . |  000000000000 | . . | . .
11  |  000000000000 | . . | . . |  000000000000 | . . | . .
12  |  000000000000 | . . | . . |  000000000000 | . . | . .
13  |  000000000000 | . . | . . |  000000000000 | . . | . .
14  |  000000000000 | . . | . . |  000000000000 | . . | . .
15  |  000000000000 | . . | . . |  000000000000 | . . | . .

VERIFY: 
    Key A sectors: 0 1 2 3 4 5 6 7 8 9 a b c d e f
    Key B sectors: 0 1 2 3 4 5 6 7 8 9 a b c d e f

ACTION RESULTS MATRIX AFTER VERIFY - UID 9c d7 e8 38 - TYPE 0x08 (MC1K)
---------------------------------------------------------------------
Sector  |    Key A  |ACTS | RESL    |    Key B  |ACTS | RESL
---------------------------------------------------------------------
0   |  000000000000 | . . | . . |  000000000000 | . . | . .
1   |  000000000000 | . . | . . |  000000000000 | . . | . .
2   |  000000000000 | . . | . . |  000000000000 | . . | . .
3   |  000000000000 | . . | . . |  000000000000 | . . | . .
4   |  000000000000 | . . | . . |  000000000000 | . . | . .
5   |  000000000000 | . . | . . |  000000000000 | . . | . .
6   |  000000000000 | . . | . . |  000000000000 | . . | . .
7   |  000000000000 | . . | . . |  000000000000 | . . | . .
8   |  000000000000 | . . | . . |  000000000000 | . . | . .
9   |  000000000000 | . . | . . |  000000000000 | . . | . .
10  |  000000000000 | . . | . . |  000000000000 | . . | . .
11  |  000000000000 | . . | . . |  000000000000 | . . | . .
12  |  000000000000 | . . | . . |  000000000000 | . . | . .
13  |  000000000000 | . . | . . |  000000000000 | . . | . .
14  |  000000000000 | . . | . . |  000000000000 | . . | . .
15  |  000000000000 | . . | . . |  000000000000 | . . | . .

RECOVER:  0 1 2 3 4 5 6 7 8 9 a b c d e f

ACTION RESULTS MATRIX AFTER RECOVER - UID 9c d7 e8 38 - TYPE 0x08 (MC1K)
---------------------------------------------------------------------
Sector  |    Key A  |ACTS | RESL    |    Key B  |ACTS | RESL
---------------------------------------------------------------------
0   |  000000000000 | . . | . . |  000000000000 | . . | . .
1   |  000000000000 | . . | . . |  000000000000 | . . | . .
2   |  000000000000 | . . | . . |  000000000000 | . . | . .
3   |  000000000000 | . . | . . |  000000000000 | . . | . .
4   |  000000000000 | . . | . . |  000000000000 | . . | . .
5   |  000000000000 | . . | . . |  000000000000 | . . | . .
6   |  000000000000 | . . | . . |  000000000000 | . . | . .
7   |  000000000000 | . . | . . |  000000000000 | . . | . .
8   |  000000000000 | . . | . . |  000000000000 | . . | . .
9   |  000000000000 | . . | . . |  000000000000 | . . | . .
10  |  000000000000 | . . | . . |  000000000000 | . . | . .
11  |  000000000000 | . . | . . |  000000000000 | . . | . .
12  |  000000000000 | . . | . . |  000000000000 | . . | . .
13  |  000000000000 | . . | . . |  000000000000 | . . | . .
14  |  000000000000 | . . | . . |  000000000000 | . . | . .
15  |  000000000000 | . . | . . |  000000000000 | . . | . .

kumail@ubuntu:~/Desktop/libnfc-1.5.1/mfcuk-read-only/src$

---- 
I get the following by theres no way to initiate the attack on a particular 
sector. If I do: ./mfcuk -C -o card.dmp -M8 -R 1 -s 20 -S 50 -v 1

I get the same mfcuk_keyrecovery_darkside: ERROR: mfcuk_key_recovery_block() 
(error code=0x04) Error message. Is there a fix for this ?

Original comment by kumail.e...@gmail.com on 27 Aug 2012 at 7:18