bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RFID Cooking with Mifare Classic


From: Dave Linehan
Subject: RFID Cooking with Mifare Classic
Date: Thu, 13 Nov 2014 11:50:33 +0100

Hi,
 
I'm running Kali Linux and trying to dump and clone a FeLiCa Smart card
 
I've been following the instructions at http://www.backtrack-linux.org/wiki/index.php/RFID_Cooking_with_Mifare_Classic#MFOC_-Mifare_Classic_Offline_Cracker and keep getting errors when installing MFOC -Mifare Classic Offline Cracker
 
Can you suggest a solution?
 
 
address@hidden:~/libnfc-1.4.2/mfoc-0.10.2# make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /root/libnfc-1.4.2/mfoc-0.10.2/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/root/libnfc-1.4.2/mfoc-0.10.2'
Making all in src
make[2]: Entering directory `/root/libnfc-1.4.2/mfoc-0.10.2/src'
  CC     crapto1.o
  CC     crypto1.o
  CC     mfoc.o
In file included from mfoc.c:48:0:
mifare.h:57:3: error: unknown type name ‘byte_t’
mifare.h:58:3: error: unknown type name ‘byte_t’
mifare.h:62:3: error: unknown type name ‘byte_t’
mifare.h:66:3: error: unknown type name ‘byte_t’
mifare.h:78:35: error: unknown type name ‘nfc_device_t’
mifare.h:85:3: error: unknown type name ‘byte_t’
mifare.h:86:3: error: unknown type name ‘byte_t’
mifare.h:87:3: error: unknown type name ‘byte_t’
mifare.h:88:3: error: unknown type name ‘byte_t’
mifare.h:89:3: error: unknown type name ‘byte_t’
mifare.h:93:3: error: unknown type name ‘byte_t’
mifare.h:97:3: error: unknown type name ‘byte_t’
mifare.h:98:3: error: unknown type name ‘byte_t’
mifare.h:99:3: error: unknown type name ‘byte_t’
mifare.h:114:3: error: unknown type name ‘byte_t’
mifare.h:115:3: error: unknown type name ‘byte_t’
mifare.h:116:3: error: unknown type name ‘byte_t’
mifare.h:117:3: error: unknown type name ‘byte_t’
mifare.h:118:3: error: unknown type name ‘byte_t’
mifare.h:119:3: error: unknown type name ‘byte_t’
mifare.h:120:3: error: unknown type name ‘byte_t’
mifare.h:124:3: error: unknown type name ‘byte_t’
In file included from mfoc.c:49:0:
nfc-utils.h:82:1: error: unknown type name ‘byte_t’
nfc-utils.h:82:1: error: unknown type name ‘byte_t’
nfc-utils.h:83:1: error: unknown type name ‘byte_t’
nfc-utils.h:83:72: error: unknown type name ‘byte_t’
nfc-utils.h:85:1: error: unknown type name ‘byte_t’
nfc-utils.h:86:1: error: unknown type name ‘byte_t’
nfc-utils.h:87:1: error: unknown type name ‘byte_t’
nfc-utils.h:87:1: error: unknown type name ‘byte_t’
nfc-utils.h:89:1: error: unknown type name ‘nfc_iso14443a_info_t’
nfc-utils.h:90:1: error: unknown type name ‘nfc_iso14443b_info_t’
nfc-utils.h:91:1: error: unknown type name ‘nfc_felica_info_t’
nfc-utils.h:92:1: error: unknown type name ‘nfc_jewel_info_t’
nfc-utils.h:93:1: error: unknown type name ‘nfc_dep_info_t’
nfc-utils.h:95:1: error: unknown type name ‘nfc_target_t’
nfc-utils.h:97:1: error: unknown type name ‘nfc_device_desc_t’
In file included from mfoc.c:50:0:
mfoc.h:27:2: error: unknown type name ‘byte_t’
mfoc.h:28:2: error: unknown type name ‘byte_t’
mfoc.h:31:9: error: unknown type name ‘byte_t’
mfoc.h:39:9: error: unknown type name ‘byte_t’
mfoc.h:43:9: error: unknown type name ‘nfc_target_t’
mfoc.h:63:9: error: unknown type name ‘nfc_device_t’
mfoc.h:74:19: error: unknown type name ‘nfc_device_t’
mfoc.h:75:20: error: unknown type name ‘nfc_device_t’
mfoc.h:75:39: error: unknown type name ‘nfc_target_t’
mfoc.h:82:60: error: unknown type name ‘byte_t’
mfoc.h:85:45: error: unknown type name ‘byte_t’
mfoc.h:86:37: error: unknown type name ‘byte_t’
mfoc.c: In function ‘main’:
mfoc.c:53:2: error: unknown type name ‘nfc_modulation_t’
mfoc.c:54:3: error: field name not in record or union initializer
mfoc.c:54:3: error: (near initialization for ‘nm’)
mfoc.c:55:3: error: field name not in record or union initializer
mfoc.c:55:3: error: (near initialization for ‘nm’)
mfoc.c:55:3: warning: excess elements in scalar initializer [enabled by default]
mfoc.c:55:3: warning: (near initialization for ‘nm’) [enabled by default]
mfoc.c:73:2: error: unknown type name ‘byte_t’
mfoc.c:76:2: error: unknown type name ‘byte_t’
mfoc.c:132:36: error: ‘byte_t’ undeclared (first use in this function)
mfoc.c:132:36: note: each undeclared identifier is reported only once for each function it appears in
mfoc.c:168:2: warning: passing argument 1 of ‘nfc_initiator_init’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:91:18: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:169:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:173:28: error: ‘NDO_ACTIVATE_FIELD’ undeclared (first use in this function)
mfoc.c:174:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:178:28: error: ‘NDO_INFINITE_SELECT’ undeclared (first use in this function)
mfoc.c:179:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:183:28: error: ‘NDO_HANDLE_CRC’ undeclared (first use in this function)
mfoc.c:184:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:187:28: error: ‘NDO_HANDLE_PARITY’ undeclared (first use in this function)
mfoc.c:188:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:198:2: warning: passing argument 1 of ‘nfc_initiator_select_passive_target’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:93:18: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:198:2: error: incompatible type for argument 2 of ‘nfc_initiator_select_passive_target’
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:93:18: note: expected ‘nfc_modulation’ but argument is of type ‘int’
mfoc.c:198:2: warning: passing argument 5 of ‘nfc_initiator_select_passive_target’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:93:18: note: expected ‘struct nfc_target *’ but argument is of type ‘int *’
mfoc.c:199:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:204:11: error: request for member ‘nti’ in something not a structure or union
mfoc.c:210:10: error: request for member ‘nti’ in something not a structure or union
mfoc.c:214:15: error: request for member ‘nti’ in something not a structure or union
mfoc.c:215:38: error: request for member ‘nti’ in something not a structure or union
mfoc.c:248:32: error: request for member ‘nti’ in something not a structure or union
mfoc.c:252:28: error: request for member ‘nti’ in something not a structure or union
mfoc.c:322:30: error: request for member ‘nti’ in something not a structure or union
mfoc.c:486:29: error: request for member ‘nti’ in something not a structure or union
mfoc.c: In function ‘mf_init’:
mfoc.c:535:9: warning: assignment makes pointer from integer without a cast [enabled by default]
mfoc.c: At top level:
mfoc.c:542:19: error: unknown type name ‘nfc_device_t’
mfoc.c:573:20: error: unknown type name ‘nfc_device_t’
mfoc.c:573:39: error: unknown type name ‘nfc_target_t’
mfoc.c: In function ‘mf_anticollision’:
mfoc.c:618:2: error: unknown type name ‘nfc_modulation_t’
mfoc.c:619:3: error: field name not in record or union initializer
mfoc.c:619:3: error: (near initialization for ‘nm’)
mfoc.c:620:3: error: field name not in record or union initializer
mfoc.c:620:3: error: (near initialization for ‘nm’)
mfoc.c:620:3: warning: excess elements in scalar initializer [enabled by default]
mfoc.c:620:3: warning: (near initialization for ‘nm’) [enabled by default]
mfoc.c:622:2: warning: passing argument 1 of ‘nfc_initiator_select_passive_target’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:93:18: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:622:2: error: incompatible type for argument 2 of ‘nfc_initiator_select_passive_target’
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:93:18: note: expected ‘nfc_modulation’ but argument is of type ‘int’
mfoc.c:622:2: warning: passing argument 5 of ‘nfc_initiator_select_passive_target’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:93:18: note: expected ‘struct nfc_target *’ but argument is of type ‘int *’
mfoc.c:623:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c: In function ‘mf_enhanced_auth’:
mfoc.c:639:2: error: unknown type name ‘byte_t’
mfoc.c:640:2: error: unknown type name ‘byte_t’
mfoc.c:641:2: error: unknown type name ‘byte_t’
mfoc.c:642:2: error: unknown type name ‘byte_t’
mfoc.c:644:2: error: unknown type name ‘byte_t’
mfoc.c:645:2: error: unknown type name ‘byte_t’
mfoc.c:647:2: error: unknown type name ‘byte_t’
mfoc.c:648:2: error: unknown type name ‘byte_t’
mfoc.c:657:2: warning: passing argument 1 of ‘iso14443a_crc_append’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:130:19: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:662:28: error: ‘NDO_HANDLE_CRC’ undeclared (first use in this function)
mfoc.c:663:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:669:29: error: ‘NDO_EASY_FRAMING’ undeclared (first use in this function)
mfoc.c:670:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:674:2: warning: passing argument 1 of ‘nfc_initiator_transceive_bytes’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:99:18: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:674:2: warning: passing argument 2 of ‘nfc_initiator_transceive_bytes’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:99:18: note: expected ‘const uint8_t *’ but argument is of type ‘int *’
mfoc.c:674:2: warning: passing argument 4 of ‘nfc_initiator_transceive_bytes’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:99:18: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:674:2: warning: passing argument 5 of ‘nfc_initiator_transceive_bytes’ makes integer from pointer without a cast [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:99:18: note: expected ‘size_t’ but argument is of type ‘size_t *’
mfoc.c:674:2: error: too few arguments to function ‘nfc_initiator_transceive_bytes’
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:99:18: note: declared here
mfoc.c:680:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:716:28: error: ‘NDO_HANDLE_PARITY’ undeclared (first use in this function)
mfoc.c:717:3: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:724:2: warning: passing argument 1 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:724:2: warning: passing argument 2 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘const uint8_t *’ but argument is of type ‘int *’
mfoc.c:724:2: warning: passing argument 4 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘const uint8_t *’ but argument is of type ‘int *’
mfoc.c:724:2: warning: passing argument 5 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:724:2: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ makes integer from pointer without a cast [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘size_t’ but argument is of type ‘size_t *’
mfoc.c:724:2: warning: passing argument 7 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:753:4: warning: passing argument 1 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:753:4: warning: passing argument 2 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘const uint8_t *’ but argument is of type ‘int *’
mfoc.c:753:4: warning: passing argument 4 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘const uint8_t *’ but argument is of type ‘int *’
mfoc.c:753:4: warning: passing argument 5 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:753:4: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ makes integer from pointer without a cast [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘size_t’ but argument is of type ‘size_t *’
mfoc.c:753:4: warning: passing argument 7 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:782:4: warning: passing argument 1 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:782:4: warning: passing argument 2 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘const uint8_t *’ but argument is of type ‘int *’
mfoc.c:782:4: warning: passing argument 4 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘const uint8_t *’ but argument is of type ‘int *’
mfoc.c:782:4: warning: passing argument 5 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:782:4: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ makes integer from pointer without a cast [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘size_t’ but argument is of type ‘size_t *’
mfoc.c:782:4: warning: passing argument 7 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:803:3: warning: passing argument 1 of ‘iso14443a_crc_append’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:130:19: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:811:3: warning: passing argument 1 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:811:3: warning: passing argument 2 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘const uint8_t *’ but argument is of type ‘int *’
mfoc.c:811:3: warning: passing argument 4 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘const uint8_t *’ but argument is of type ‘int *’
mfoc.c:811:3: warning: passing argument 5 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:811:3: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ makes integer from pointer without a cast [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘size_t’ but argument is of type ‘size_t *’
mfoc.c:811:3: warning: passing argument 7 of ‘nfc_initiator_transceive_bits’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:100:18: note: expected ‘uint8_t *’ but argument is of type ‘int *’
mfoc.c:818:4: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c:823:4: warning: passing argument 1 of ‘nfc_perror’ from incompatible pointer type [enabled by default]
In file included from mfoc.c:41:0:
/usr/local/include/nfc/nfc.h:115:19: note: expected ‘const struct nfc_device *’ but argument is of type ‘int *’
mfoc.c: At top level:
mfoc.c:937:60: error: unknown type name ‘byte_t’
mfoc.c:943:45: error: unknown type name ‘byte_t’
mfoc.c:950:37: error: unknown type name ‘byte_t’
make[2]: *** [mfoc.o] Error 1
make[2]: Leaving directory `/root/libnfc-1.4.2/mfoc-0.10.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/libnfc-1.4.2/mfoc-0.10.2'
make: *** [all] Error 2
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]