mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
covery 263986
This commit is contained in:
parent
c2e3f8c7d5
commit
12885d6726
1 changed files with 4 additions and 2 deletions
|
@ -1332,6 +1332,7 @@ static int CmdHFFelicaRequestService(const char *Cmd) {
|
|||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
if (!all_nodes) {
|
||||
// Node Number
|
||||
if (param_getlength(Cmd, paramCount) == 2) {
|
||||
|
@ -1371,6 +1372,7 @@ static int CmdHFFelicaRequestService(const char *Cmd) {
|
|||
if (!custom_IDm && !check_last_idm(data, datalen)) {
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
data[0] = int_to_hex(&datalen);
|
||||
data[1] = 0x02; // Service Request Command ID
|
||||
if (all_nodes) {
|
||||
|
@ -1742,7 +1744,7 @@ static int CmdHFFelicaCmdRaw(const char *Cmd) {
|
|||
sscanf(buf, "%x", &temp);
|
||||
data[datalen] = (uint8_t)(temp & 0xff);
|
||||
*buf = 0;
|
||||
if (++datalen >= sizeof(data)) {
|
||||
if (++datalen >= (sizeof(data) - 2)) {
|
||||
if (crc)
|
||||
PrintAndLogEx(WARNING, "Buffer is full, we can't add CRC to your data");
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue