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
You are not logged in.
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.
Pages: 1
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
can anyone change this? thank you..
Offline
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
Pages: 1