]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/mifareutil.c
mfu info / dump attempt at missing auths
[proxmark3-svn] / armsrc / mifareutil.c
index b7408cf1d51813a0980e59c186ce07993c5685c2..cc54b74022ae32fc1ed8a9faaa0800c06aad69d2 100644 (file)
@@ -288,6 +288,26 @@ int mifare_classic_readblock(struct Crypto1State *pcs, uint32_t uid, uint8_t blo
 }\r
 \r
 // mifare ultralight commands\r
 }\r
 \r
 // mifare ultralight commands\r
+int mifare_ul_ev1_auth(uint8_t *key, uint8_t *pack){\r
+\r
+       uint16_t len;\r
+       uint8_t receivedAnswer[MAX_FRAME_SIZE];\r
+       uint8_t receivedAnswerPar[MAX_PARITY_SIZE];\r
+       \r
+       len = mifare_sendcmd_short_mfucauth(NULL, 0, 0x1B, key, receivedAnswer, receivedAnswerPar, NULL);\r
+       if (len != 4) {\r
+               if (MF_DBGLEVEL >= MF_DBG_ERROR) Dbprintf("Cmd Error: %02x %u", receivedAnswer[0], len);\r
+               return 1;\r
+       }\r
+       \r
+       if (MF_DBGLEVEL >= MF_DBG_EXTENDED) {\r
+               Dbprintf("Auth Resp: %02x%02x%02x%02x",\r
+                       receivedAnswer[0],receivedAnswer[1],receivedAnswer[2],receivedAnswer[3]);\r
+       }\r
+       memcpy(pack, receivedAnswer, 4);\r
+       return 0;\r
+}\r
+\r
 int mifare_ultra_auth1(uint8_t *blockData){\r
 \r
        uint16_t len;\r
 int mifare_ultra_auth1(uint8_t *blockData){\r
 \r
        uint16_t len;\r
Impressum, Datenschutz