Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

  • Logged in as ikarus
  • Last visit: Today 11:22:42

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2023-01-13 13:52:03

alfa-16-bravo
Contributor
Registered: 2023-01-09
Posts: 7

iso 7816-3 smart card

hello, and is it possible to create a mode to only sniff apdu exchanges between reader and sim card? I designed a pcb for it. thanks

Offline

#2 2023-01-14 11:31:57

alfa-16-bravo
Contributor
Registered: 2023-01-09
Posts: 7

Re: iso 7816-3 smart card

can anyone change this? thank you..

Offline

#3 2023-01-14 12:52:55

alfa-16-bravo
Contributor
Registered: 2023-01-09
Posts: 7

Re: iso 7816-3 smart card

I created this function in the cmdsmartcard file (client-src)


static int CmdSmartSniff(const char *Cmd) {
    (void) Cmd; // Cmd n'est pas utilisé dans cette fonction

    // Allocates memory to store received data
    uint8_t *buf = calloc(PM3_CMD_DATA_SIZE, sizeof(uint8_t));
    if (buf == NULL) {
        PrintAndLogEx(DEBUG, "failed to allocate memory");
        return PM3_EMALLOC;
    }

    // Infinite loop to continuously sniff APDU exchanges
    while (true) {
        // Attend la réception de données
        int len = smart_response(buf, PM3_CMD_DATA_SIZE);
        if (len < 0) {
            free(buf);
            return PM3_ESOFT;
        }

        // Displays received data in hexadecimal

        PrintAndLogEx(SUCCESS, "APDU Sniffed: %s", sprint_hex(buf, len));
    }
}

Last edited by alfa-16-bravo (2023-01-18 13:02:23)

Offline

Quick reply

Write your message and submit

Board footer

Powered by FluxBB