« NFC » : différence entre les versions

De HackBBS
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
Prérequis:
===Prérequis===
* Drivers : http://www.scm-pc-card.de/index.php?lang=en&page=download&function=show_downloads&product_id=610
* Drivers : http://www.scm-pc-card.de/index.php?lang=en&page=download&function=show_downloads&product_id=610
* Pcsclite : https://alioth.debian.org/frs/?group_id=30105
* Pcsclite : https://alioth.debian.org/frs/?group_id=30105
Ligne 10 : Ligne 10 :




Read the fresh blank chinese card
====Lecture de la carte vierge====


   # nfc-list
   # nfc-list
Ligne 20 : Ligne 20 :
     SAK (SEL_RES): 08   
     SAK (SEL_RES): 08   


Dump the blank chinese card card to get the keys
====Dump de la carte vierge et obtention des clef 'identification)====


   # mfoc -P 500 -O blank-chinese.dmp
   # mfoc -P 500 -O blank-chinese.dmp


Now remove the chinese card and put the card you want to copy and dump it
====Lecture de la carte à cloner====
Dump the Mifare card your want to copy
Let's read the card to clone first


   # nfc-list
   # nfc-list
Ligne 36 : Ligne 34 :
       SAK (SEL_RES): 08   
       SAK (SEL_RES): 08   


Time to dump the target card
====Dump de la carte à cloner====


   # mfoc -P 500 -O cardtocopy.dmp
   # mfoc -P 500 -O cardtocopy.dmp


Put the chinese card back and clone the card
====Ecriture du dump sur la carte vierge====
Write the Chinese card with the content of the other card including UUID


   # nfc-mfclassic w b cardtocopy.dmp blank-chinese.dmp
   # nfc-mfclassic w b cardtocopy.dmp blank-chinese.dmp


or
ou


   # nfc-mfclassic w a cardtocopy.dmp blank-chinese.dmp
   # nfc-mfclassic w a cardtocopy.dmp blank-chinese.dmp


Check that the card is the same:
====Vérification que les deux cartes sont les mêmes====


   # nfc-list
   # nfc-list
Ligne 59 : Ligne 56 :
     SAK (SEL_RES): 08   
     SAK (SEL_RES): 08   


Go back to blank card
====Pour restaurer la carte vierge====


   # nfc-mfclassic w b blank-chinese.dmp cardtocopy.dmp
   # nfc-mfclassic w b blank-chinese.dmp cardtocopy.dmp


or
ou


   # nfc-mfclassic w a blank-chinese.dmp cardtocopy.dmp
   # nfc-mfclassic w a blank-chinese.dmp cardtocopy.dmp

Version du 13 août 2013 à 12:12

Prérequis

 blacklist pn533
 blacklist nfc


Lecture de la carte vierge

 # nfc-list
 nfc-list uses libnfc 1.5.1 (r1175)
 Connected to NFC device: SCM Micro / SCL3711-NFC&RW - PN533 v2.7 (0x07)
 1 ISO14443A passive target(s) found:
 ATQA (SENS_RES): 00  04  
    UID (NFCID1): 00  00  00  00  
    SAK (SEL_RES): 08  

Dump de la carte vierge et obtention des clef 'identification)

 # mfoc -P 500 -O blank-chinese.dmp

Lecture de la carte à cloner

 # nfc-list
 nfc-list uses libnfc 1.5.1 (r1175)
 Connected to NFC device: SCM Micro / SCL3711-NFC&RW - PN533 v2.7 (0x07)
 1 ISO14443A passive target(s) found:
 ATQA (SENS_RES): 00  04  
     UID (NFCID1): 9b  97  4f  19  
     SAK (SEL_RES): 08  

Dump de la carte à cloner

 # mfoc -P 500 -O cardtocopy.dmp

Ecriture du dump sur la carte vierge

 # nfc-mfclassic w b cardtocopy.dmp blank-chinese.dmp

ou

 # nfc-mfclassic w a cardtocopy.dmp blank-chinese.dmp

Vérification que les deux cartes sont les mêmes

 # nfc-list
 nfc-list uses libnfc 1.5.1 (r1175)
 Connected to NFC device: SCM Micro / SCL3711-NFC&RW - PN533 v2.7 (0x07)
 1 ISO14443A passive target(s) found:
   ATQA (SENS_RES): 00  04  
    UID (NFCID1): 9b  97  4f  19  
    SAK (SEL_RES): 08  

Pour restaurer la carte vierge

 # nfc-mfclassic w b blank-chinese.dmp cardtocopy.dmp

ou

 # nfc-mfclassic w a blank-chinese.dmp cardtocopy.dmp