]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf14b.c
update comments and changelog
[proxmark3-svn] / client / cmdhf14b.c
index 9c65bb2fcc68e313f8da0d063963b5087cf59593..6bc5daf2c17a49d551cc3e4980bfe7f69ea8e60d 100644 (file)
@@ -200,7 +200,7 @@ int CmdHF14BCmdRaw (const char *Cmd) {
                return 0;
        }
 
-       if (select){
+       if (select){ //auto select 14b tag
                uint8_t cmd2[16];
                uint8_t cmdLen = 3;
                bool crc2 = true;
@@ -208,17 +208,20 @@ int CmdHF14BCmdRaw (const char *Cmd) {
                cmd2[1] = 0x00;
                cmd2[2] = 0x08;
 
+               // REQB
                if (HF14BCmdRaw(true, &crc2, true, cmd2, &cmdLen, false)==0) return rawClose();
 
                if (cmd2[0] != 0x50 || cmdLen != 14 || !crc2) return rawClose();
 
-               data[0] = 0x1D;
+               data[0] = 0x1D; 
+               // UID from data[1 - 4]
                data[5] = 0x00;
                data[6] = 0x08;
                data[7] = 0x01;
                data[8] = 0x00;
-
                cmdLen = 9;
+
+               // attrib
                if (HF14BCmdRaw(true, &crc2, true, cmd2, &cmdLen, false)==0) return rawClose();
 
                if (cmd2[0] != 0x10 || cmdLen != 3 || !crc2) return rawClose();
Impressum, Datenschutz