authentication error for mifare card “6982:Security status not satisfied”

这一生的挚爱 提交于 2019-12-21 23:52:43

问题


I know. This question asked before under same tag and same name here. But the answers are useless for me. and i opened again for real answers.

I have pc/sc reader and Contactless card(mifare card), I can connect to the card and also I execute getdate command successfully, but when I want to authenticate I see this error "6982:Security status not satisfied" I've tried these 4 different commands for authentication but I get the same error for all of them.

FF 88 00 00 06 FF FF FF FF FF FF
FF 88 00 00 60 12
FF 88 00 00 05 01 00 12 60 00
FF 88 00 00 60 00

how can I authenticate to this card ?


回答1:


The GENERAL AUTHENTICATE instruction performs a Mifare Classic authentication (CRYPTO1). The application must provide the index of the key to be used; this key must have been loaded into the reader through a previous LOAD KEY instruction.

Do not invoke this function if the currently activated PICC/VICC is not a Mifare Classic!

FF 86 00 00 05 01 00 blockNo keyLocation keyIndex

Where

blockNo = is the address on the card, where we try to be authenticated.

keyLocation =

  • h60 for authentication using a CRYPTO1 “A” key (standard PC/SC-defined value)
  • h61 for authentication using a CRYPTO1 “B” key (standard PC/SC-defined value)

keyIndex = key index in the reader where you have load the key(posible value from 0x00 to 0x1f)




回答2:


Finally I found this *.pdf file. And, there are all what i need.

All command is working on my system.

Content of the *.pdf file is :

  • GET DATA
  • LOAD KEY
  • AUTHENTICATION
  • READ BINARY
  • UPDATE BINARY
  • INCREASE
  • DECREASE
  • TRANSFER
  • RESTORE

You can download *.pdf file from here



来源:https://stackoverflow.com/questions/15881962/authentication-error-for-mifare-card-6982security-status-not-satisfied

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!