text
This commit is contained in:
1 parent
186beff3a6
commit
d804cfdbba
1 file changed
+10
-3
+10
-3
@@ -1572,6 +1572,8 @@ static bool check_chiptype(bool getDeviceData) {
|
|||||||
saveState_db.clock = g_DemodClock;
|
saveState_db.clock = g_DemodClock;
|
||||||
saveState_db.offset = g_DemodStartIdx;
|
saveState_db.offset = g_DemodStartIdx;
|
||||||
|
|
||||||
|
PrintAndLogEx(INFO, "Searching for auth LF and special cases...");
|
||||||
|
|
||||||
// check for em4x05/em4x69 chips first
|
// check for em4x05/em4x69 chips first
|
||||||
uint32_t word = 0;
|
uint32_t word = 0;
|
||||||
if (IfPm3EM4x50() && em4x05_isblock0(&word)) {
|
if (IfPm3EM4x50() && em4x05_isblock0(&word)) {
|
||||||
@@ -1786,14 +1788,19 @@ int CmdLFfind(const char *Cmd) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(FAILED, _RED_("No data found!"));
|
|
||||||
|
|
||||||
// identify chipset
|
// identify chipset
|
||||||
if (check_chiptype(is_online) == false) {
|
bool lf_special_search = check_chiptype(is_online);
|
||||||
|
if ( lf_special_search ) {
|
||||||
|
found++;
|
||||||
|
} else {
|
||||||
PrintAndLogEx(DEBUG, "Automatic chip type detection " _RED_("failed"));
|
PrintAndLogEx(DEBUG, "Automatic chip type detection " _RED_("failed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(HINT, "Hint: Maybe not an LF tag?");
|
if ( found == 0) {
|
||||||
|
PrintAndLogEx(HINT, "Hint: try `" _YELLOW_("hf search") "` - since tag might not be LF");
|
||||||
|
}
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
if (search_cont == 0) {
|
if (search_cont == 0) {
|
||||||
return PM3_ESOFT;
|
return PM3_ESOFT;
|
||||||
|
|||||||
Reference in new issue
Block a user