mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 18:57:12 +08:00
chg: 'hf iclass sim' not save when no mac-responses was collected.
This commit is contained in:
parent
507fd2d43a
commit
4e7c987cbd
1 changed files with 10 additions and 0 deletions
|
@ -345,6 +345,11 @@ int CmdHFiClassSim(const char *Cmd) {
|
|||
uint8_t num_mac_responses = resp.arg[1];
|
||||
PrintAndLog("Mac responses: %d MACs obtained (should be %d)", num_mac_responses, NUM_CSNS);
|
||||
|
||||
if ( num_mac_responses == 0 ) {
|
||||
PrintAndLog("hf iclass sim - attack failed");
|
||||
break;
|
||||
}
|
||||
|
||||
size_t datalen = NUM_CSNS*24;
|
||||
|
||||
void* dump = malloc(datalen);
|
||||
|
@ -382,6 +387,11 @@ int CmdHFiClassSim(const char *Cmd) {
|
|||
uint8_t num_mac_responses = resp.arg[1];
|
||||
PrintAndLog("Mac responses: %d MACs obtained (should be %d)", num_mac_responses, NUM_CSNS * 2);
|
||||
|
||||
if ( num_mac_responses == 0 ) {
|
||||
PrintAndLog("hf iclass sim - attack failed");
|
||||
break;
|
||||
}
|
||||
|
||||
size_t datalen = NUM_CSNS*24;
|
||||
void* dump = malloc(datalen);
|
||||
if ( !dump ) {
|
||||
|
|
Loading…
Reference in a new issue