PrintAndLog("t - transfer keys into emulator memory");\r
PrintAndLog("d - write keys to binary file");\r
PrintAndLog(" ");\r
- PrintAndLog(" sample1: hf mf nested 1 0 A FFFFFFFFFFFF ");\r
- PrintAndLog(" sample2: hf mf nested 1 0 A FFFFFFFFFFFF t ");\r
- PrintAndLog(" sample3: hf mf nested 1 0 A FFFFFFFFFFFF d ");\r
- PrintAndLog(" sample4: hf mf nested o 0 A FFFFFFFFFFFF 4 A");\r
+ PrintAndLog(" samples:");\r
+ PrintAndLog(" hf mf nested 1 0 A FFFFFFFFFFFF ");\r
+ PrintAndLog(" hf mf nested 1 0 A FFFFFFFFFFFF t ");\r
+ PrintAndLog(" hf mf nested 1 0 A FFFFFFFFFFFF d ");\r
+ PrintAndLog(" hf mf nested o 0 A FFFFFFFFFFFF 4 A");\r
return 0;\r
} \r
\r
clock_t t1 = clock();\r
\r
// check keys.\r
- for (trgKeyType = 0; trgKeyType < 2; ++trgKeyType) {\r
+ for (trgKeyType = !keyType; trgKeyType < 2; (keyType==2) ? (++trgKeyType) : (trgKeyType=2) ) {\r
\r
int b = blockNo;\r
for (int i = 0; i < SectorsCnt; ++i) {\r