RfidResearchGroup / ChameleonUltra

The new generation chameleon based on NRF52840 makes the performance of card emulation more stable. And gave the chameleon the ability to read, write, and decrypt cards.
https://chameleonultra.com
GNU General Public License v3.0
939 stars 155 forks source link

[idea] add Pyramid card support (here is a code from PM3 repo for it) #223

Open Spider624 opened 3 months ago

Spider624 commented 3 months ago

Pyramid card is Wiegand communication protocol and it is already realized in Proxmark3 repo, so idea is add this code to Chameleon Ultra. Here is file in proxmark repo - "wiegand.c" (full link is https://github.com/RfidResearchGroup/proxmark3/blob/master/armsrc/wiegand.c)

And there is code for pyramid cards support:

    case 39 :               // 39bit KERI System Pyramid
        fc &= 0x1FFFF;      // 17bits
        cn &= 0xFFFFFFFF;   // 20bits
        value = fc << 20 | cn;
        num_to_bytebits(value, 37, temp);
        wiegand_add_parity(temp, dest, 37);
        break;
    case 44 :               // 44bit KERI system Pyramid
        oem &= 0xFF;        // 8bits
        fc &= 0xFFF;        // 12bits
        cn &= 0xFFFFFFFF;   // 21bits
        value = oem << 20 | fc << 12 | cn;
        num_to_bytebits(value, 42, temp);
        wiegand_add_parity(temp, dest, 42);
        break;
GameTec-live commented 3 months ago

if it only was that easy lol

GameTec-live commented 3 months ago

also #185

Spider624 commented 3 months ago

so sad. Hope, that it will be added one day