mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
fix: sc bruteforce' - wrong assign
This commit is contained in:
parent
265c069edc
commit
421604a395
1 changed files with 3 additions and 3 deletions
|
@ -946,8 +946,8 @@ static int smart_brute_sfi(bool decodeTLV){
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void smart_brute_options(bool decodeTLV){
|
static void smart_brute_options(bool decodeTLV) {
|
||||||
|
|
||||||
uint8_t* buf = calloc(USB_CMD_DATA_SIZE, sizeof(uint8_t));
|
uint8_t* buf = calloc(USB_CMD_DATA_SIZE, sizeof(uint8_t));
|
||||||
if ( !buf )
|
if ( !buf )
|
||||||
return;
|
return;
|
||||||
|
@ -1057,7 +1057,7 @@ int CmdSmartBruteforceSFI(const char *Cmd) {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
size_t aidlen = strlen(aid);
|
size_t aidlen = strlen(aid);
|
||||||
char* caid = calloc( 8+2+aidlen+1, sizeof(uint8_t));
|
caid = calloc( 8+2+aidlen+1, sizeof(uint8_t));
|
||||||
snprintf(caid, 8+2+aidlen+1, SELECT, aidlen >> 1, aid);
|
snprintf(caid, 8+2+aidlen+1, SELECT, aidlen >> 1, aid);
|
||||||
|
|
||||||
int hexlen = 0;
|
int hexlen = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue