fixed hf 15 writedsfid, it was missing the longer wait for writes. Also made the command honor the -o flag instead of enforing it. I tested with and without on a card and both works

This commit is contained in:
iceman1001 2024-01-25 12:11:44 +01:00
parent b7928eb85e
commit 649e8f581a
2 changed files with 2 additions and 9 deletions

View file

@ -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 15 writedsfid` - long wait after write and dont force -o flag (@iceman1001)
- Changed `hf 14a sniff -i` - now supports the interactive flag (@iceman1001) - Changed `hf 14a sniff -i` - now supports the interactive flag (@iceman1001)
- Added `HF_15SIM` standalone mode that dump then simulate iso15 tags (@lnv42) - Added `HF_15SIM` standalone mode that dump then simulate iso15 tags (@lnv42)
- Changed `iso15 simulation`, reworked, added support for lot of features (@lnv42) - Changed `iso15 simulation`, reworked, added support for lot of features (@lnv42)

View file

@ -1660,14 +1660,6 @@ static int CmdHF15WriteDsfid(const char *Cmd) {
return PM3_EINVARG; return PM3_EINVARG;
} }
// enforcing add_option since we are writing.
if (add_option == false) {
if (verbose) {
PrintAndLogEx(INFO, "Overriding OPTION param since we are writing (ENFORCE)");
}
add_option = true;
}
// request to be sent to device/card // request to be sent to device/card
uint8_t approxlen = 2 + 8 + 1 + 2; uint8_t approxlen = 2 + 8 + 1 + 2;
iso15_raw_cmd_t *packet = (iso15_raw_cmd_t *)calloc(1, sizeof(iso15_raw_cmd_t) + approxlen); iso15_raw_cmd_t *packet = (iso15_raw_cmd_t *)calloc(1, sizeof(iso15_raw_cmd_t) + approxlen);
@ -1705,7 +1697,7 @@ static int CmdHF15WriteDsfid(const char *Cmd) {
AddCrc15(packet->raw, packet->rawlen); AddCrc15(packet->raw, packet->rawlen);
packet->rawlen += 2; packet->rawlen += 2;
packet->flags = (ISO15_CONNECT | ISO15_READ_RESPONSE); packet->flags = (ISO15_CONNECT | ISO15_READ_RESPONSE | ISO15_LONG_WAIT);
if (fast) { if (fast) {
packet->flags |= ISO15_HIGH_SPEED; packet->flags |= ISO15_HIGH_SPEED;
} }