Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key guessing does not work in RFID-Cloner example #642

Open
dem1tris opened this issue Oct 11, 2024 · 0 comments
Open

Key guessing does not work in RFID-Cloner example #642

dem1tris opened this issue Oct 11, 2024 · 0 comments
Labels
bug 🐛 a not intended feature need_confirmation 🧷 bug report must be confirmed by a second person, write if you have the same issue

Comments

@dem1tris
Copy link

Step 1: Describe your environment

  • OS version: MacOS 14.2.1 (23C71)
  • Arduino IDE version: 2.3.3
  • MFRC522 Library version: 1.4.11
  • Arduino device: Wemos D1 R2 mini
  • MFRC522 device: MINI RFID-RC522

Step 2: Describe the problem

Key guessing in RFID-Cloner example can't guess key if it's not 1st in the list. This is because card prevents any communications after failed authentication. The case is handled in rfid_default_keys example with the code:

// http://arduino.stackexchange.com/a/14316
if ( ! mfrc522.PICC_IsNewCardPresent())
    break;
if ( ! mfrc522.PICC_ReadCardSerial())
    break;

Affected file(s) or example(s):

  • RFID-Cloner

Steps to reproduce:

  1. Put known (e.g. 0xFF...) key not in the first place of the list
  2. Run reading

Observed Results:

All attempts will fail with timeout even if know key was tried

Expected Results:

Attempt on known key success, even if the key is not first in the list

@Rotzbua Rotzbua added bug 🐛 a not intended feature need_confirmation 🧷 bug report must be confirmed by a second person, write if you have the same issue labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 a not intended feature need_confirmation 🧷 bug report must be confirmed by a second person, write if you have the same issue
Projects
None yet
Development

No branches or pull requests

2 participants