Skip to content

Default key does not accepted #10

Description

@zsomi18

Hello, I'm having difficulties with extracting the keys. I always receive the following output:

Recovering keys.. this may take some time
Timeout
Not the right key? Could not authenticate
Could not find key, time elapsed: 0
Timeout

Things that I've done:
0. setup:
raspberry pi 2b raspbian. stretch 9.9 kernel (4.19.58-v7+)
wiring: MOSI-19, MISO-21, SCK-23, RST-22, SDA/SS-24

  1. with other tools discovered that the blocs 0- 48 have the default key a0a1a2a3a4a5
  2. Modded RC522.cpp and added this key instead ffffffffffff.
    byte def_keys[6] = {0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5} ;
    in for loop->
    p_keys[sector][bytePos] = def_keys[bytePos];// fill with default key
  3. Modded main.cpp with correct vectors (AUTHENT_A, 4, 49, )

I also cloned @omersiar project but that is a no go too.

Do you guys have any hint, what should I check?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions