]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
added magic cards
authormerlokk <olegmsn@gmail.com>
Wed, 17 Jan 2018 14:01:56 +0000 (16:01 +0200)
committermerlokk <olegmsn@gmail.com>
Wed, 17 Jan 2018 14:01:56 +0000 (16:01 +0200)
armsrc/mifaresniff.c
armsrc/mifaresniff.h

index 20b54e820d15c9e02aff61449b3c75c16a922ca3..4e573be7dc9c630b6f6ec7c3b7ef21c351eafc3e 100644 (file)
@@ -60,9 +60,16 @@ bool RAMFUNC MfSniffLogic(const uint8_t *data, uint16_t len, uint8_t *parity, ui
                                memset(sniffATQA, 0x00, 2);
                                sniffSAK = 0;
                                sniffState = SNF_ATQA;
+                               if (data[0] == 0x40) 
+                                       sniffState = SNF_MAGIC_WUPC2;
                        }
                        break;
                }
+               case SNF_MAGIC_WUPC2:
+                       if ((len == 1) && (reader) && (data[0] == 0x43) ) {  
+                               sniffState = SNF_CARD_IDLE;
+                       }
+                       break;
                case SNF_ATQA:{
                        if ((!reader) && (len == 2)) {          // ATQA from tag
                                memcpy(sniffATQA, data, 2);
index 8a8e31a9e70503ab775e567b5877f93301ea9feb..b181f982c6f58b43a10877e061a46b40ddb3f725 100644 (file)
@@ -27,6 +27,7 @@
 #define SNF_CARD_IDLE                  9\r
 #define SNF_CARD_CMD                   10\r
 #define SNF_CARD_RESP                  11\r
+#define SNF_MAGIC_WUPC2                        12\r
 \r
 #define SNF_UID_4                              0\r
 #define SNF_UID_7                              0\r
Impressum, Datenschutz