Bonjour,

J'essaye depuis quelques jours d'en apprendre un peu plus sur la rfid.

Pour cela, je me suis donc acheté un lecteur ACR122u et me suis un peu amusé avec un vieux badge rfid.

Pour l'instant, j'arrive à récupérer son contenu (du moins je crois) grâce à la commande mfoc:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
./mfoc -P 500 -O test.dmp
Found Mifare Classic 1k tag
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04 
* UID size: single
* bit frame anticollision supported
       UID (NFCID1): 85  b9  53  19 
      SAK (SEL_RES): 88 
* Not compliant with ISO/IEC 14443-4
* Not compliant with ISO/IEC 18092
 
Fingerprinting based on MIFARE type Identification Procedure:
* SmartMX with MIFARE 1K emulation
Other possible matches based on ATQA & SAK values:
* Mifare Classic 1K Infineon
 
Try to authenticate to all sectors with default keys...
Symbols: '.' no key found, '/' A key found, '\' B key found, 'x' both keys found
[Key: ffffffffffff] -> [xxxxxxxxxx.....x]
[Key: a0a1a2a3a4a5] -> [xxxxxxxxxx/////x]
[Key: d3f7d3f7d3f7] -> [xxxxxxxxxx/////x]
[Key: 000000000000] -> [xxxxxxxxxx/////x]
[Key: b0b1b2b3b4b5] -> [xxxxxxxxxx/////x]
[Key: 4d3a99c351dd] -> [xxxxxxxxxx/////x]
[Key: 1a982c7e459a] -> [xxxxxxxxxx/////x]
[Key: aabbccddeeff] -> [xxxxxxxxxx/////x]
[Key: 714c5c886e97] -> [xxxxxxxxxx/////x]
[Key: 587ee5f9350f] -> [xxxxxxxxxx/////x]
[Key: a0478cc39091] -> [xxxxxxxxxx/////x]
[Key: 533cb6c723f6] -> [xxxxxxxxxx/////x]
[Key: 8fd0a4f256e9] -> [xxxxxxxxxx/////x]
 
Sector 00 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
Sector 01 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
Sector 02 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
Sector 03 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
Sector 04 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
Sector 05 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
Sector 06 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
Sector 07 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
Sector 08 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
Sector 09 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
Sector 10 - Found   Key A: a0a1a2a3a4a5 Unknown Key B
Sector 11 - Found   Key A: a0a1a2a3a4a5 Unknown Key B
Sector 12 - Found   Key A: a0a1a2a3a4a5 Unknown Key B
Sector 13 - Found   Key A: a0a1a2a3a4a5 Unknown Key B
Sector 14 - Found   Key A: a0a1a2a3a4a5 Unknown Key B
Sector 15 - Found   Key A: ffffffffffff Found   Key B: ffffffffffff
 
 
Using sector 00 as an exploit sector
Sector: 10, type B, probe 0, distance 15042 .....
  Found Key: B [415a54454b4d]
Sector: 11, type B
  Found Key: B [415a54454b4d]
Sector: 12, type B
  Found Key: B [415a54454b4d]
Sector: 13, type B
  Found Key: B [415a54454b4d]
Sector: 14, type B
  Found Key: B [415a54454b4d]
Auth with all sectors succeeded, dumping keys to a file!
Block 63, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  0f  ff  ff  ff  ff  ff  ff 
Block 62, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 61, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 60, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 59, type A, key a0a1a2a3a4a5 :00  00  00  00  00  00  0f  00  ff  ff  00  00  00  00  00  00 
Block 58, type B, key 415a54454b4d :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 57, type B, key 415a54454b4d :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 56, type B, key 415a54454b4d :0e  1d  8d  f3  f3  8d  37  07  65  7f  0b  32  76  c5  5b  78 
Block 55, type A, key a0a1a2a3a4a5 :00  00  00  00  00  00  0f  00  ff  ff  00  00  00  00  00  00 
Block 54, type B, key 415a54454b4d :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 53, type B, key 415a54454b4d :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 52, type B, key 415a54454b4d :4f  15  aa  7b  8e  bf  bb  f6  ad  92  cf  36  97  6a  bb  e2 
Block 51, type A, key a0a1a2a3a4a5 :00  00  00  00  00  00  0f  00  ff  ff  00  00  00  00  00  00 
Block 50, type B, key 415a54454b4d :aa  c1  8c  e5  44  ec  1b  5e  44  e0  09  d2  05  d8  01  ce 
Block 49, type B, key 415a54454b4d :9d  ef  a2  c0  8b  5a  b4  31  86  b8  ec  d8  38  fb  7c  0a 
Block 48, type B, key 415a54454b4d :3c  b2  a9  02  f6  9f  ce  98  db  c5  dd  f5  02  c9  4c  d1 
Block 47, type A, key a0a1a2a3a4a5 :00  00  00  00  00  00  0f  00  ff  ff  00  00  00  00  00  00 
Block 46, type B, key 415a54454b4d :aa  c1  8c  e5  44  ec  1b  5e  13  98  71  2e  0b  39  a1  15 
Block 45, type B, key 415a54454b4d :e6  54  c1  ff  dc  2b  dc  87  a3  92  1b  0b  2f  e5  41  d8 
Block 44, type B, key 415a54454b4d :45  52  6e  d8  1d  ef  e9  ca  a0  1a  82  c8  68  46  0d  93 
Block 43, type A, key a0a1a2a3a4a5 :00  00  00  00  00  00  0f  00  ff  ff  00  00  00  00  00  00 
Block 42, type B, key 415a54454b4d :b2  92  dc  80  53  e6  d0  79  d7  c2  b9  e0  aa  d9  62  43 
Block 41, type B, key 415a54454b4d :d2  15  10  d2  2c  75  d3  35  11  8a  c6  55  8c  9d  cd  3f 
Block 40, type B, key 415a54454b4d :86  7f  61  eb  f5  3e  4d  49  dd  5a  5a  19  79  7d  db  e2 
Block 39, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  69  ff  ff  ff  ff  ff  ff 
Block 38, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 37, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 36, type A, key ffffffffffff :00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00 
Block 35, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  78  ff  ff  ff  ff  ff  ff 
Block 34, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 33, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 32, type A, key ffffffffffff :00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00 
Block 31, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  87  ff  ff  ff  ff  ff  ff 
Block 30, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 29, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 28, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 27, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  96  ff  ff  ff  ff  ff  ff 
Block 26, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 25, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 24, type A, key ffffffffffff :00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00 
Block 23, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  a5  ff  ff  ff  ff  ff  ff 
Block 22, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 21, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 20, type A, key ffffffffffff :00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00 
Block 19, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  b4  ff  ff  ff  ff  ff  ff 
Block 18, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 17, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 16, type A, key ffffffffffff :00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00 
Block 15, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  c3  ff  ff  ff  ff  ff  ff 
Block 14, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 13, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 12, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 11, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  d2  ff  ff  ff  ff  ff  ff 
Block 10, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 09, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 08, type A, key ffffffffffff :00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00 
Block 07, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  e1  ff  ff  ff  ff  ff  ff 
Block 06, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 05, type A, key ffffffffffff :ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff  ff 
Block 04, type A, key ffffffffffff :00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00 
Block 03, type A, key ffffffffffff :00  00  00  00  00  00  ff  07  80  f0  ff  ff  ff  ff  ff  ff 
Block 02, type A, key ffffffffffff :02  12  22  32  42  52  62  72  82  92  a2  b2  c2  d2  e2  f2 
Block 01, type A, key ffffffffffff :01  11  21  31  41  51  61  71  81  91  a1  b1  c1  d1  e1  f1 
Block 00, type A, key ffffffffffff :85  b9  53  19  76  88  04  00  43  25  4a  e0  00  06  03  05

mais lorsque j'essai de réécrire sur ce badge grâce à la commande nfc-mfclassic , il y a une erreur que je n'arrive pas à comprendre:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mfc-mfclassic w A  test.dmp
NFC reader: ACS / ACR122U PICC Interface opened
Found MIFARE Classic card:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04 
       UID (NFCID1): 85  b9  53  19 
      SAK (SEL_RES): 88 
Guessing size: seems to be a 1024-byte card
Writing 64 blocks |.......................................nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
xxxfailed to write trailer block 43
xnfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
xxxfailed to write trailer block 47
xnfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
xxxfailed to write trailer block 51
xnfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
xxxfailed to write trailer block 55
xnfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
xxxfailed to write trailer block 59
x....|
Done, 43 of 64 blocks written.
Quelqu'un pourrait m'expliquer d'ou vient le problème ?

Je cherche depuis plusieurs jours mais je n'ai rien trouvé .

Merci d'avance pour votre aide