Fixed which was leaving the RF field on when interrupted by keyboard

This commit is contained in:
Philippe Teuwen 2024-08-08 08:51:41 +02:00
commit e0e43e728c
2 changed files with 9 additions and 1 deletions

View file

@ -3,13 +3,14 @@ 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...
## [unreleased][unreleased]
- Fixed `hf mf fchk` which was leaving the RF field on when interrupted by keyboard (@doegox)
- Changed file saving: do not prepend with default path if given path is an absolute path (@doegox)
- Added few tools to crack static encrypted nonce tags such as FM11RF08S (@doegox)
- Added `hf mf isen` for analyzing some static encrypted nonce tags (@doegox)
- Changed `hf mf rdbl/wrbl/rdsc/nested` to support extended authentication commands (@doegox)
- Changed `hf mf fchk` to allow cracking a single key and show progress info (@doegox)
- Changed `trace list -t mf` to add support for extended authentication commands (@doegox)
- Fixed `output_grabber.py` to allow several calls in a script (@doegox)
- Fixed `output_grabber.py` to allow several calls in a script, make it robust to emoji and make it available to scripts (@doegox)
- Changed `validate_prng_nonce` for a much faster version (@doegox)
- Changed standalone mode HF_MATTYRUN - support more card sizes, user dictionaries, improved emulation (@michaelroland)
- Changed `hf iclass dump --ns` - now supports the nosave flag (@iceman1001)

View file

@ -3392,6 +3392,13 @@ static int CmdHF14AMfChk_fast(const char *Cmd) {
if (kbd_enter_pressed()) {
PrintAndLogEx(NORMAL, "");
PrintAndLogEx(WARNING, "\naborted via keyboard!\n");
// field is still ON if not on last chunk
clearCommandBuffer();
SendCommandNG(CMD_FPGA_MAJOR_MODE_OFF, NULL, 0);
// TODO: we're missing these cleanups on arm side, not sure if it's important...
// set_tracing(false);
// BigBuf_free();
// BigBuf_Clear_ext(false);
goto out;
}
PrintAndLogEx(INPLACE, "Testing %5i/%5i %02.1f%%", i, keycnt, (float)i * 100 / keycnt);