mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
modified standalone mode hf_unisniff. It now also sniffs iclass. Another option added was for hw standalone -b, which allows you to trigger a particular sniff from client. Good for debugging w/o need to recompile or upload a config file.
This commit is contained in:
parent
f966387c41
commit
9de6f59136
4 changed files with 201 additions and 94 deletions
|
@ -2822,8 +2822,22 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||
break;
|
||||
}
|
||||
case CMD_STANDALONE: {
|
||||
|
||||
struct p {
|
||||
uint8_t arg;
|
||||
uint8_t mlen;
|
||||
uint8_t mode[10];
|
||||
} PACKED;
|
||||
|
||||
struct p *payload = (struct p *) packet->data.asBytes;
|
||||
|
||||
uint8_t *bb = BigBuf_get_EM_addr();
|
||||
bb[0] = packet->data.asBytes[0];
|
||||
if (payload->mlen == 0) {
|
||||
bb[0] = payload->arg;
|
||||
} else {
|
||||
memcpy(bb, payload->mode, payload->mlen);
|
||||
}
|
||||
|
||||
RunMod();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue