mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-04-01 18:09:59 +08:00
Guard Hitag code
This commit is contained in:
parent
ef95d8c742
commit
a844afc273
1 changed files with 4 additions and 0 deletions
|
@ -883,7 +883,9 @@ int CmdLFfind(const char *Cmd) {
|
||||||
// The improved noise detection will find Cotag.
|
// The improved noise detection will find Cotag.
|
||||||
if (getSignalProperties()->isnoise) {
|
if (getSignalProperties()->isnoise) {
|
||||||
|
|
||||||
|
#ifdef WITH_HITAG
|
||||||
if (readHitagUid()) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Hitag") " found!"); return 1;}
|
if (readHitagUid()) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Hitag") " found!"); return 1;}
|
||||||
|
#endif
|
||||||
if (readCOTAGUid()) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("COTAG ID") " found!"); return 1;}
|
if (readCOTAGUid()) { PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("COTAG ID") " found!"); return 1;}
|
||||||
|
|
||||||
PrintAndLogEx(FAILED, "\n" _YELLOW_("No data found!") " - Signal looks like noise. Maybe not an LF tag?");
|
PrintAndLogEx(FAILED, "\n" _YELLOW_("No data found!") " - Signal looks like noise. Maybe not an LF tag?");
|
||||||
|
@ -972,7 +974,9 @@ static command_t CommandTable[] = {
|
||||||
{"fdx", CmdLFFdx, 1, "{ FDX-B RFIDs... }"},
|
{"fdx", CmdLFFdx, 1, "{ FDX-B RFIDs... }"},
|
||||||
{"gproxii", CmdLFGuard, 1, "{ Guardall Prox II RFIDs... }"},
|
{"gproxii", CmdLFGuard, 1, "{ Guardall Prox II RFIDs... }"},
|
||||||
{"hid", CmdLFHID, 1, "{ HID RFIDs... }"},
|
{"hid", CmdLFHID, 1, "{ HID RFIDs... }"},
|
||||||
|
#ifdef WITH_HITAG
|
||||||
{"hitag", CmdLFHitag, 1, "{ Hitag CHIPs... }"},
|
{"hitag", CmdLFHitag, 1, "{ Hitag CHIPs... }"},
|
||||||
|
#endif
|
||||||
{"indala", CmdLFINDALA, 1, "{ Indala RFIDs... }"},
|
{"indala", CmdLFINDALA, 1, "{ Indala RFIDs... }"},
|
||||||
{"io", CmdLFIO, 1, "{ ioProx RFIDs... }"},
|
{"io", CmdLFIO, 1, "{ ioProx RFIDs... }"},
|
||||||
{"jablotron", CmdLFJablotron, 1, "{ Jablotron RFIDs... }"},
|
{"jablotron", CmdLFJablotron, 1, "{ Jablotron RFIDs... }"},
|
||||||
|
|
Loading…
Add table
Reference in a new issue