]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Ported hf mf esave trick for unreadable UIDs to hf mf csave 108/head
authorPierre LALET <pierre.lalet@cea.fr>
Mon, 25 May 2015 09:47:27 +0000 (11:47 +0200)
committerPierre LALET <pierre.lalet@cea.fr>
Mon, 25 May 2015 09:47:27 +0000 (11:47 +0200)
Thanks: iceman1001

client/cmdhfmf.c

index 2b5a5b87965dd7b36e283e9f94fe876f2e740dc7..5abda060d8e4e40ae83f71977e4d864ad39dfaff 100644 (file)
@@ -1750,10 +1750,13 @@ int CmdHF14AMfCSave(const char *Cmd) {
                        // get filename\r
                        if (mfCGetBlock(0, buf, CSETBLOCK_SINGLE_OPER)) {\r
                                PrintAndLog("Cant get block: %d", 0);\r
-                               return 1;\r
+                               len = sprintf(fnameptr, "dump");\r
+                               fnameptr += len;\r
+                       }\r
+                       else {\r
+                               for (j = 0; j < 7; j++, fnameptr += 2)\r
+                                       sprintf(fnameptr, "%02x", buf[j]); \r
                        }\r
-                       for (j = 0; j < 7; j++, fnameptr += 2)\r
-                               sprintf(fnameptr, "%02x", buf[j]); \r
                } else {\r
                        memcpy(filename, Cmd, len);\r
                        fnameptr += len;\r
Impressum, Datenschutz