]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhfmf.c
started fixing the paritiy == 0 special attack against chinese clones with bad prng...
[proxmark3-svn] / client / cmdhfmf.c
index d6e394442c4c9cfcb5a95c42d5ae71f7f023d276..5465c4d4ca1a6abdb53cc268e4eb6b3e6d60e4c7 100644 (file)
@@ -213,9 +213,11 @@ start:
        }       \r
        printf("\n");\r
        \r
-       // par == 0\r
-       if (isOK == -1 && par_list == 0) {\r
-               if (!nonce2key_ex(uid, nt, nr, ks_list, &r_key) ){\r
+       // par == 0,  and -4\r
+       if (isOK == -4 && par_list == 0) {\r
+               // this special attack when parities is zero, uses checkkeys. Which now with block/keytype option also needs. \r
+               // but it uses 0|1 instead of 0x60|0x61...\r
+               if (!nonce2key_ex(blockNo, keytype - 0x60 , uid, nt, nr, ks_list, &r_key) ){\r
                        PrintAndLog("Found valid key: %012"llx" \n", r_key);\r
                        goto END;\r
                }\r
Impressum, Datenschutz