PrintAndLog("No keys found in file");\r
return 1;\r
}\r
+ PrintAndLog("Loaded %d keys", keycnt);\r
\r
// loop\r
- uint32_t testpwd = 0x00;\r
+ uint64_t testpwd = 0x00;\r
for (uint16_t c = 0; c < keycnt; ++c ) {\r
\r
- testpwd = bytes_to_num(keyBlock + 4*keycnt, 4);\r
+ testpwd = bytes_to_num(keyBlock + 4*c, 4);\r
+\r
+ PrintAndLog("Testing %08X", testpwd);\r
+ \r
\r
AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, testpwd);\r
found = tryDetectModulation();\r
- \r
+\r
if ( found ) {\r
PrintAndLog("Found valid password:[%08X]", testpwd);\r
return 0;\r
} \r
}\r
+ PrintAndLog("Password NOT found.");\r
+ return 0;\r
}\r
\r
+ // Try to read Block 7, first :)\r
\r
+ // incremental pwd range search\r
start_password = param_get32ex(Cmd, 0, 0, 16);\r
end_password = param_get32ex(Cmd, 1, 0, 16);\r
\r