mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Merge pull request #2619 from Antiklesys/master
Fixed elite configcard generation
This commit is contained in:
commit
106de8f3bb
2 changed files with 6 additions and 1 deletions
|
@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
|
||||||
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
|
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
|
||||||
|
|
||||||
## [unreleased][unreleased]
|
## [unreleased][unreleased]
|
||||||
|
- Fixed `hf iclass configcard` when generating elite or keyroll elite configcards for Rev.C legacy readers (@antiklesys)
|
||||||
- Changed `hf mf c*` - now accepts a --gdm flag to write using uscuid/gdm 20/23 alt magic wakeup (@nvx)
|
- Changed `hf mf c*` - now accepts a --gdm flag to write using uscuid/gdm 20/23 alt magic wakeup (@nvx)
|
||||||
- Changed `pm3_console()` - Python/Lua/C: replace `passthru` by `capture` and `quiet` (@doegox)
|
- Changed `pm3_console()` - Python/Lua/C: replace `passthru` by `capture` and `quiet` (@doegox)
|
||||||
- Fixed `hf iclass list` - annotation crc handled better (@iceman1001)
|
- Fixed `hf iclass list` - annotation crc handled better (@iceman1001)
|
||||||
|
|
|
@ -500,11 +500,15 @@ static int generate_config_card(const iclass_config_card_item_t *o, uint8_t *ke
|
||||||
memcpy(data + (0x0D * 8), lkey, sizeof(enckey1));
|
memcpy(data + (0x0D * 8), lkey, sizeof(enckey1));
|
||||||
}
|
}
|
||||||
// encrypted 0xFF
|
// encrypted 0xFF
|
||||||
for (uint8_t i = 0x0E; i < 0x14; i++) {
|
for (uint8_t i = 0x0E; i < 0x13; i++) {
|
||||||
memcpy(data + (i * 8), ffs, sizeof(ffs));
|
memcpy(data + (i * 8), ffs, sizeof(ffs));
|
||||||
}
|
}
|
||||||
PrintAndLogEx(NORMAL, "( " _GREEN_("ok") " )");
|
PrintAndLogEx(NORMAL, "( " _GREEN_("ok") " )");
|
||||||
|
|
||||||
|
//Block 13 (This is needed for Rev.C readers!)
|
||||||
|
uint8_t block_0x13[PICOPASS_BLOCK_SIZE] = {0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x1C};
|
||||||
|
memcpy(data + (0x13 * 8), block_0x13, sizeof(block_0x13));
|
||||||
|
|
||||||
// encrypted partial keyroll key 14
|
// encrypted partial keyroll key 14
|
||||||
PrintAndLogEx(INFO, "Setting encrypted partial key14... " NOLF);
|
PrintAndLogEx(INFO, "Setting encrypted partial key14... " NOLF);
|
||||||
uint8_t foo[8] = {0x15};
|
uint8_t foo[8] = {0x15};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue