mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Merge pull request #2663 from douniwan5788/fix_concatbits_again
fix Hitag S concatbits and `lf em 410x clone --hts`
This commit is contained in:
commit
447bb7804a
3 changed files with 4 additions and 3 deletions
|
@ -732,6 +732,7 @@ static int CmdEM410xClone(const char *Cmd) {
|
||||||
|
|
||||||
packet.cmd = HTSF_82xx;
|
packet.cmd = HTSF_82xx;
|
||||||
memcpy(packet.pwd, "\xBB\xDD\x33\x99", HITAGS_PAGE_SIZE);
|
memcpy(packet.pwd, "\xBB\xDD\x33\x99", HITAGS_PAGE_SIZE);
|
||||||
|
packet.mode = HITAGS_UID_REQ_FADV;
|
||||||
SendCommandNG(CMD_LF_HITAGS_WRITE, (uint8_t *)&packet, sizeof(packet));
|
SendCommandNG(CMD_LF_HITAGS_WRITE, (uint8_t *)&packet, sizeof(packet));
|
||||||
if (WaitForResponseTimeout(CMD_LF_HITAGS_WRITE, &resp, 4000) == false) {
|
if (WaitForResponseTimeout(CMD_LF_HITAGS_WRITE, &resp, 4000) == false) {
|
||||||
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
|
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
|
||||||
|
|
|
@ -554,8 +554,8 @@ size_t concatbits(uint8_t *dest, int dest_offset, const uint8_t *src, int src_of
|
||||||
end = nbits;
|
end = nbits;
|
||||||
step = 1;
|
step = 1;
|
||||||
} else {
|
} else {
|
||||||
i = nbits;
|
i = nbits - 1;
|
||||||
end = 0;
|
end = -1;
|
||||||
step = -1;
|
step = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -161,7 +161,7 @@ typedef struct {
|
||||||
uint8_t logdata_1[4];
|
uint8_t logdata_1[4];
|
||||||
uint8_t nonce[4];
|
uint8_t nonce[4];
|
||||||
|
|
||||||
//Hitag s section
|
// Hitag S section
|
||||||
uint8_t mode;
|
uint8_t mode;
|
||||||
} PACKED lf_hitag_data_t;
|
} PACKED lf_hitag_data_t;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue