mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
hitag signal refactoring
This commit is contained in:
parent
d956e8c2a3
commit
89bae75c55
7 changed files with 523 additions and 340 deletions
|
@ -485,8 +485,9 @@ static int CmdLFHitagInfo(const char *Cmd) {
|
|||
if (getHitagUid(&uid) == false)
|
||||
return 1;
|
||||
|
||||
PrintAndLogEx(SUCCESS, "UID: %08X", uid);
|
||||
PrintAndLogEx(SUCCESS, "UID: " _YELLOW_("%08X"), uid);
|
||||
|
||||
return PM3_SUCCESS;
|
||||
// how to detemine Hitag types?
|
||||
// read block3, get configuration byte.
|
||||
PrintAndLogEx(FAILED, _RED_("TODO: This is a hardcoded example!"));
|
||||
|
@ -497,7 +498,7 @@ static int CmdLFHitagInfo(const char *Cmd) {
|
|||
//printHitagConfiguration( 0x02 );
|
||||
//printHitagConfiguration( 0x00 );
|
||||
//printHitagConfiguration( 0x04 );
|
||||
return 0;
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
// TODO: iceman
|
||||
|
@ -564,7 +565,7 @@ static int CmdLFHitagReader(const char *Cmd) {
|
|||
|
||||
uint32_t id = bytes_to_num(resp.data.asBytes, 4);
|
||||
|
||||
PrintAndLogEx(SUCCESS, "Valid Hitag2 tag found - UID: %08x", id);
|
||||
PrintAndLogEx(SUCCESS, "Valid Hitag2 tag found - UID: " _YELLOW_("%08x"), id);
|
||||
if (htf != RHT2F_UID_ONLY) {
|
||||
|
||||
PrintAndLogEx(SUCCESS, "Dumping tag memory...");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue