IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Shell et commandes GNU Discussion :

Ecriture sur badge RFID avec nfc-mfclassic : Mifare Authentication Failed


Sujet :

Shell et commandes GNU

  1. #1
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2019
    Messages
    36
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gard (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Avril 2019
    Messages : 36
    Par défaut Ecriture sur badge RFID avec nfc-mfclassic : Mifare Authentication Failed
    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

  2. #2
    Expert confirmé Avatar de Flodelarab
    Homme Profil pro
    Inscrit en
    Septembre 2005
    Messages
    5 283
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Charente (Poitou Charente)

    Informations forums :
    Inscription : Septembre 2005
    Messages : 5 283
    Par défaut
    Bonjour

    Pourquoi as-tu choisi l'option w (write) plutôt que W (unlocked write) ? Tu n'as manifestement pas les droits d'écriture.

    Pour plus d'infos :

  3. #3
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2019
    Messages
    36
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gard (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Avril 2019
    Messages : 36
    Par défaut
    Bonjour,

    merci pour votre réponse .

    Je n'avais pas choisi Wcar il me semble que le bloc 0 correspondant à l'UID est bloqué en lecture sur le badge. Afin de ne pas avoir de problèmes pour cela j'avais donc choisit w.

    Voici ce qu'il se passe lorsque je rentre la commande avec W :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    nfc-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
    Sent bits:     50  00  57  cd  
    Sent bits:     40 (7 bits)
    unlock failure!

  4. #4
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2019
    Messages
    3
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 30
    Localisation : France, Gard (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Avril 2019
    Messages : 3
    Par défaut
    Citation Envoyé par Asterix20 Voir le message
    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
    Alors, pour un badge AZTEK
    Il faut effectivement faire un dump genre :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    mfoc -P 500 -O backup.dmf
    Si jamais tu veux ré écrire sur le badge, alors il faudra le dumper a nouveau :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    mfoc -P 500 -O badge.dmf
    pour ré écrire ensuite
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    mfc-mfclassic w B backup.dmf badge.dmf
    En premier, le dump a écrire, en 2nd, le dump actuel du badge

    pourquoi w B ? Car ton badge est pas unlock (W > badge spéciaux sur amazon)
    et B car les bloc 8 a 13 se changent seulement grâce à la key B comme tu peux voir ci-dessous :
    Nom : 2019-04-16 22_14_47-SM G950F.png
Affichages : 12939
Taille : 214,5 Ko

    Tiens nous au courant

  5. #5
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2019
    Messages
    36
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gard (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Avril 2019
    Messages : 36
    Par défaut
    Bonjour, merci beaucoup pour votre aide, il me semble que cela a fonctionné
    J'ai tapé la commande mfc-mfclassic w B backup.dmf badge.dmf et tous les secteurs à part le secteur 0 qui est bloqué en écriture ont pu être écrit :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    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 |...............................................................|
    Done, 63 of 64 blocks written.
    Je vais essayer de me documenter un peu plus sur la technologie mifare pour mieux comprendre comment cela marche.

    Merci encore pour votre aide

  6. #6
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2019
    Messages
    3
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 30
    Localisation : France, Gard (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Avril 2019
    Messages : 3
    Par défaut
    Exactement, le secteur 0 est bloqué car c'est le principe des badge Mifare, chaque Badge a un UID unique (sauf si tu clique sur mon lien amazon)
    et pour tout le reste, AZTEK utilise la clé B pour la lecture/ecriture. Sans clé B on obtient juste ceci :
    Nom : 2019-04-16 23_49_59-SM G950F.png
Affichages : 12637
Taille : 126,2 Ko

    D'ailleurs, si tu veux un peu plus de praticité, je te conseille MIFARE Classic Tool - MCT sur Android
    Juste, dans l'interface, va dans "Edit/Add key file" et "Create new file" avec ces 3 lignes dedans :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    415A5445B4D
    FFFFFFFFFFFF
    A0A1A2A3A4A5
    Enregistre sous "Badge AZTEK" ^^

    Il te suffira alors de "Read TAG" avec le Badge AZTEK coché
    Nom : 2019-04-16 23_50_34-Steam.png
Affichages : 12516
Taille : 58,3 Ko
    et tada... tu pourras faire une sauvegarde sur ton téléphone de ton badge
    Nom : 2019-04-16 23_50_46-SM G950F.png
Affichages : 12909
Taille : 159,8 Ko
    Tu pourras bien évident Write TAG ==> Write DUMP (Clone) par dessus ton badge AZTEK a toi !
    ATTENTION !
    N'essaie surtout pas de transférer les données de TON badge sur celui de tes amis et inversement (ou alors, pense a faire une sauvegarde de CHAQUE BADGE) !
    Chaque badge est unique et les datas sont calculés et décrypté par la machine selon l'UID DU BADGE ! Tu risquerais alors de rendre totalement obsolètes les badges si tu transfères des data qui proviennent d'un autre badge

    Enfin bref... Amuse toi bien

  7. #7
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2019
    Messages
    36
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Gard (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Avril 2019
    Messages : 36
    Par défaut
    Bonjour,
    Je te remercie pour le nom du logiciel sous Android, je vais le télécharger

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Ecriture jointure réflexive compatible avec la création d'un index sur une vue
    Par Christophe Charron dans le forum Développement
    Réponses: 8
    Dernier message: 28/11/2018, 09h09
  2. Problème affichage sur écran lcd avec module RFID
    Par Rayjiin dans le forum Arduino
    Réponses: 24
    Dernier message: 28/04/2018, 18h42
  3. Réponses: 11
    Dernier message: 08/09/2016, 14h38
  4. [Débutant] Ecriture sur un fichier XML existant avec C#
    Par ivoratparis dans le forum C#
    Réponses: 2
    Dernier message: 25/04/2014, 00h58
  5. Ecriture sur secteur disquette avec 13h
    Par Mercenary Developer dans le forum x86 16-bits
    Réponses: 14
    Dernier message: 16/11/2007, 08h38

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo