mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 10:11:58 +08:00
Partial fix of ioProx clone on EM4305 but EM4305 runs at RF/50 instead of the configured RF/64??
This commit is contained in:
parent
7f37958144
commit
d31c9747d6
1 changed files with 11 additions and 0 deletions
|
@ -316,6 +316,9 @@ static int CmdIOProxClone(const char *Cmd) {
|
|||
|
||||
// EM4305
|
||||
if (em) {
|
||||
// TODO: it seems an EM4305 tag supporting FSK still runs at RF/50 even if configured at RF/64
|
||||
// lf em 4x05 info <> lf read ; data detectclock --fs
|
||||
// So, it seems cloning ioProx on EM4305 is not possible...
|
||||
blocks[0] = EM4305_IOPROX_CONFIG_BLOCK;
|
||||
snprintf(cardtype, sizeof(cardtype), "EM4305/4469");
|
||||
}
|
||||
|
@ -323,6 +326,14 @@ static int CmdIOProxClone(const char *Cmd) {
|
|||
blocks[1] = bytebits_to_byte(bits, 32);
|
||||
blocks[2] = bytebits_to_byte(bits + 32, 32);
|
||||
|
||||
// EM4305
|
||||
if (em) {
|
||||
// invert FSK data
|
||||
for (uint8_t i = 1; i < ARRAYLEN(blocks); i++) {
|
||||
blocks[i] = blocks[i] ^ 0xFFFFFFFF;
|
||||
}
|
||||
}
|
||||
|
||||
PrintAndLogEx(INFO, "Preparing to clone ioProx to " _YELLOW_("%s") " with Version: " _GREEN_("%u") " FC: " _GREEN_("%u (0x%02x)") " CN: " _GREEN_("%u")
|
||||
, cardtype
|
||||
, version
|
||||
|
|
Loading…
Reference in a new issue