mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
adapt comparision of text
This commit is contained in:
parent
d65094b7e0
commit
a4a7033b23
2 changed files with 6 additions and 2 deletions
|
@ -927,7 +927,7 @@ static int ndefDecodeExternal_record(NDEFHeader_t *ndef) {
|
|||
print_hex_noascii_break(ndef->Payload, ndef->PayloadLen, 32);
|
||||
|
||||
// do a character check?
|
||||
if (!strncmp((char *)ndef->Type, "pilet.ee:ekaart:2", ndef->TypeLen)) {
|
||||
if (!strncmp((char *)ndef->Type, "pilet.ee:ekaart:", ndef->TypeLen - 1)) {
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
PrintAndLogEx(SUCCESS, _GREEN_("Ekaart detected") " - Trying ASN1 decode...");
|
||||
asn1_print(ndef->Payload, ndef->PayloadLen, " ");
|
||||
|
|
|
@ -730,7 +730,9 @@ static bool Pack_C15001(wiegand_card_t *card, wiegand_message_t *packed, bool pr
|
|||
static bool Unpack_C15001(wiegand_message_t *packed, wiegand_card_t *card) {
|
||||
memset(card, 0, sizeof(wiegand_card_t));
|
||||
|
||||
if (packed->Length != 36) return false; // Wrong length? Stop here.
|
||||
|
||||
if (packed->Length != 36)
|
||||
return false; // Wrong length? Stop here.
|
||||
|
||||
card->OEM = get_linear_field(packed, 1, 10);
|
||||
card->FacilityCode = get_linear_field(packed, 11, 8);
|
||||
|
@ -976,8 +978,10 @@ static bool Pack_C1k48s(wiegand_card_t *card, wiegand_message_t *packed, bool pr
|
|||
packed->Mid |= (evenparity32((packed->Mid & 0x00001B6D) ^ (packed->Bot & 0xB6DB6DB6))) << 14;
|
||||
packed->Bot |= (oddparity32((packed->Mid & 0x000036DB) ^ (packed->Bot & 0x6DB6DB6C)));
|
||||
packed->Mid |= (oddparity32((packed->Mid & 0x00007FFF) ^ (packed->Bot & 0xFFFFFFFF))) << 15;
|
||||
|
||||
if (preamble)
|
||||
return add_HID_header(packed);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue