Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2015-08-27 18:58:20

rbubba1911
Contributor
Registered: 2014-08-14
Posts: 86

Cmd Error: 4 when reading with B key

Hi,

I have a strange behaviour, when I'm try to read block/sector with B key

let's say: a  MIFARE CLASSIC 1k card, with key:

|---|----------------|---|----------------|---|         
|sec|key A           |res|key B           |res|         
|---|----------------|---|----------------|---|         
|000|  ffffffffffff  | 1 |  ffffffffffff  | 1 |

Read block with key A work,

hf mf rdbl 3 A FFFFFFFFFFFF
--block no:3, key type:A, key:ff ff ff ff ff ff           
#db# READ BLOCK FINISHED                 
isOk:01 data:00 00 00 00 00 00 ff 07 80 69 ff ff ff ff ff ff


With Key B I've got a error:

hf mf rdbl 3 B FFFFFFFFFFFF
--block no:3, key type:B, key:ff ff ff ff ff ff           
#db# Cmd Error: 04                 
#db# Read block error                 
#db# READ BLOCK FINISHED                 
isOk:00         

The raw trace

    Start |       End | Src | Data (! denotes parity error)                                   | CRC | Annotation         |         
-----------|-----------|-----|-----------------------------------------------------------------|-----|--------------------|         
         0 |       992 | Rdr | 52                                                              |     | WUPA         
      2228 |      4596 | Tag | 04  00                                                          |     |           
      7040 |      9504 | Rdr | 93  20                                                          |     | ANTICOLL         
     10676 |     16564 | Tag | bc  2a  ce  21  79                                              |     |           
     18688 |     29216 | Rdr | 93  70  bc  2a  ce  21  79  f9  6d                              |     | SELECT_UID         
     30388 |     33908 | Tag | 08  b6  dd                                                      |     |           
     35456 |     40160 | Rdr | 61  03  b6  50                                                  |     | AUTH-B(3)         
     42164 |     46900 | Tag | 57  f3  72  86                                                  |     |           
     55680 |     64992 | Rdr | aa  ed! 5a  47  6d! 73! c3  b2                                  | !crc| ?         
     66228 |     70964 | Tag | 6a  c6  8c! 3e                                                  |     |           
     76288 |     81056 | Rdr | 7d  b9! d7! 3d                                                  | !crc| ?         
     82356 |     82996 | Tag | 03!                                                             |     |   



I'm sure the B key is correct, when I try with a wrong key, I've got the "Authentication failed" message

note:  the write command with B key do the same " Cmd Error: 04 "

Do you have a clue ?

My version:
Prox/RFID mark3 RFID instrument         
bootrom: master/v2.2.0-44-g987dfb6-suspect 2015-07-24 09:54:15
os: master/v2.2.0-44-g987dfb6-suspect 2015-07-24 09:54:16
LF FPGA image built for 2s30vq100 on 2015/03/06 at 07:38:04
HF FPGA image built for 2s30vq100 on 2015/06/22 at 21:47:54

Last edited by rbubba1911 (2015-08-27 19:14:25)

Offline

#2 2015-08-27 19:52:52

iceman
Administrator
Registered: 2013-04-25
Posts: 9,506
Website

Re: Cmd Error: 4 when reading with B key

maybe your accessbits doesnt allow reading with key B...

Offline

#3 2015-08-28 12:22:27

rbubba1911
Contributor
Registered: 2014-08-14
Posts: 86

Re: Cmd Error: 4 when reading with B key

that why I read block 3, as you can see, my access condition is okay : ff 07 80

I try with other card, with B key I always have trouble.

btw, what is your firmware version (I use the last git version) , there is a "stable" version of the firmware/client ?

Offline

Board footer

Powered by FluxBB