fixed to get UID from even partial trace lists if 9320 exists

This commit is contained in:
iceman1001 2022-11-02 19:27:03 +01:00
parent fe11c1876f
commit 97263ab3b1
2 changed files with 5 additions and 0 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...
## [unreleased][unreleased]
- Fixed `trace list -t mf` - now also finds UID if anticollision is partial captured, to be used for mfkey (@iceman1001)
## [Radium.4.15864][2022-10-29]
- Changed `lf indala sim` - now accepts fc / cn (@iceman1001)

View file

@ -1570,6 +1570,10 @@ void annotateMifare(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize,
// get UID
if (MifareAuthState == masNone) {
if (isResponse && cmdsize == 5 ) {
ClearAuthData();
AuthData.uid = bytes_to_num(&cmd[0], 4);
}
if (cmdsize == 9 && cmd[0] == ISO14443A_CMD_ANTICOLL_OR_SELECT && cmd[1] == 0x70) {
ClearAuthData();
AuthData.uid = bytes_to_num(&cmd[2], 4);