Write to Mifare sector NFC RFIDIOT Python -


i'm trying write number sector 10 / block 40 on mifare 4k classic card

any ideas on how can working?

here code:

block = 40  key = 'ffffffffffff'  type = 'aa'    import rfidiot  import re    card = rfidiot.card  if card.select():      'card selected uid: ' + str(card.uid)      if card.login(block, type, key):          if card.readmifareblock(block):              print card.mifaredata              data = card.readableprint(card.tobinary(card.mifaredata))              id = re.findall('\d+', data)[0]              print id                if card.writeblock(block, '1234567'):                  print 'write success'              else:                   print 'error %s %s' % (card.errorcode , card.iso7816errorcodes[card.errorcode])          else:              print 'read failed'      else:          print 'login failed'

ouput+ error message:

card selected uid: dbf93873  33333735353334000000000000000000  3375534  error 6300 no information given


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -