]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhf14b.c
fix 14b raw -s option, + get rid of...
[proxmark3-svn] / client / cmdhf14b.c
index 9c65bb2fcc68e313f8da0d063963b5087cf59593..77dba6841c04f45d86de32efd8a9edf0cf4a8dc2 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[5] = 0x00;
-               data[6] = 0x08;
-               data[7] = 0x01;
-               data[8] = 0x00;
-
+               cmd2[0] = 0x1D; 
+               // UID from data[1 - 4]
+               cmd2[5] = 0x00;
+               cmd2[6] = 0x08;
+               cmd2[7] = 0x01;
+               cmd2[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