fix: 'hf mf fchk' wrong number of vars to format string
This commit is contained in:
@@ -1215,7 +1215,7 @@ int CmdHF14AMfChk_fast(const char *Cmd) {
|
|||||||
if (keyBlock == NULL) return 1;
|
if (keyBlock == NULL) return 1;
|
||||||
|
|
||||||
for (int cnt = 0; cnt < MIFARE_DEFAULTKEYS_SIZE; cnt++)
|
for (int cnt = 0; cnt < MIFARE_DEFAULTKEYS_SIZE; cnt++)
|
||||||
num_to_bytes(g_mifare_default_keys[cnt], 6, (uint8_t*)(keyBlock + cnt * 6));
|
num_to_bytes(g_mifare_default_keys[cnt], 6, keyBlock + cnt * 6);
|
||||||
|
|
||||||
// sectors
|
// sectors
|
||||||
switch(ctmp) {
|
switch(ctmp) {
|
||||||
@@ -1306,7 +1306,7 @@ int CmdHF14AMfChk_fast(const char *Cmd) {
|
|||||||
for (;keycnt < MIFARE_DEFAULTKEYS_SIZE; keycnt++)
|
for (;keycnt < MIFARE_DEFAULTKEYS_SIZE; keycnt++)
|
||||||
PrintAndLog("[%2d] %02x%02x%02x%02x%02x%02x", keycnt,
|
PrintAndLog("[%2d] %02x%02x%02x%02x%02x%02x", keycnt,
|
||||||
(keyBlock + 6*keycnt)[0],(keyBlock + 6*keycnt)[1], (keyBlock + 6*keycnt)[2],
|
(keyBlock + 6*keycnt)[0],(keyBlock + 6*keycnt)[1], (keyBlock + 6*keycnt)[2],
|
||||||
(keyBlock + 6*keycnt)[3], (keyBlock + 6*keycnt)[4], (keyBlock + 6*keycnt)[5], 6);
|
(keyBlock + 6*keycnt)[3], (keyBlock + 6*keycnt)[4], (keyBlock + 6*keycnt)[5]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// // initialize storage for found keys
|
// // initialize storage for found keys
|
||||||
|
|||||||
Reference in New Issue
Block a user