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 2013-06-24 22:25:14

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

hf mf restore - authentication failed

Actually,  I'm running on the scripting/r745 build  and it successfully works with
hf mf mifare,
hf mf nested
hf mf dump

So I successfully get the dumpdata.bin, 1024kb.

However:
hf mf restore doesn't work. I get

#db# Authentication failed. Card timeout.
#db# Auth error
#db# WRITE BLOCK FINISHED
isOk:00
proxmark3>

Is there something I missed with the restore cmd?

Offline

#2 2014-08-03 04:10:46

ale88
Contributor
Registered: 2014-04-13
Posts: 10

Re: hf mf restore - authentication failed

Hello, I have the same problem. How did you solve this???

Regards...

Offline

#3 2014-08-03 08:59:25

piwi
Contributor
Registered: 2013-06-04
Posts: 704

Re: hf mf restore - authentication failed

I don't think that there is something to "solve" - probably there are misunderstandings regarding the functionality of hf mf restore.

hf mf restore writes the contents of the files dumpdata.bin and dumpkeys.bin to a blank card using the default transport key (0xffffffffffff) as key A to authenticate.

If you get authentication errors during hf mf restore, then most probably your card isn't empty (or configured with another transport key).

Offline

#4 2014-08-03 10:23:47

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

Re: hf mf restore - authentication failed

Yes, indeed,  my problem was wrong authenticate key the second time I tried to restore a dump on a magic card.
I got the idea to create a lua-script to reset a magic card to blank-state.  Instead of doing it manually.

Offline

#5 2014-08-03 19:31:08

ale88
Contributor
Registered: 2014-04-13
Posts: 10

Re: hf mf restore - authentication failed

Thanks...

I tried to write several blocks of different sectors and the error says:

proxmark3> hf mf wrbl 1 A 7b296f353c6b 43FFFF7FBD00008042FFFF7F00FF00FF
--block no:01 key type:00 key:7b 29 6f 35 3c 6b           
--data: 43 ff ff 7f bd 00 00 80 42 ff ff 7f 00 ff 00 ff           
#db# Cmd Error: 04                 
#db# Write block error                 
#db# WRITE BLOCK FINISHED
-------------------------------------

hf mf wrbl 5 A 668737F0EB0A 08ACDEC8984107EDDC8210F24D1914A9
--block no:05 key type:00 key:66 87 37 f0 eb 0a           
--data: 08 ac de c8 98 41 07 ed dc 82 10 f2 4d 19 14 a9           
#db# Cmd Error: 04                 
#db# Write block error                 
#db# WRITE BLOCK FINISHED
--------------------------------------
The key is correct!
The card is a NXP MIFARE CLASSIC 1k | 2k Plus SL1. The card isn't empty and I want to modify some bocks.
Access conditions don't allow write access to all blocks. What can I do?


Regards...

Offline

#6 2014-08-03 19:44:17

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

Re: hf mf restore - authentication failed

See if you can change the access condition bits?

Offline

#7 2014-08-03 20:24:50

ale88
Contributor
Registered: 2014-04-13
Posts: 10

Re: hf mf restore - authentication failed

I don`t know how to do that. Can you help me please, some tutorial or manual to do that?

Thanks...

Offline

#8 2014-08-03 20:40:01

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

Re: hf mf restore - authentication failed

same way as you would write an ordinary block...   

there is on the forum a piece of software that helps you with finding out the actual bits and meanings.
search for "access calc"

Offline

#9 2014-08-03 22:54:56

ale88
Contributor
Registered: 2014-04-13
Posts: 10

Re: hf mf restore - authentication failed

ok, thank you Iceman!

Offline

#10 2014-08-04 06:57:56

piwi
Contributor
Registered: 2013-06-04
Posts: 704

Re: hf mf restore - authentication failed

You may simply try key B instead of key A. If key B doesn't work either then this is probably a value block.

Offline

Board footer

Powered by FluxBB