Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Spider624 opened this issue Aug 9, 2024 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@Spider624
Copy link

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;
@Spider624 Spider624 added the enhancement New feature or request label Aug 9, 2024
@GameTec-live
Copy link
Contributor

if it only was that easy lol

@GameTec-live
Copy link
Contributor

also #185

@Spider624
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants