Proxmark developers 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.

#1 2017-07-10 05:44:00

samburner3
Contributor
From: Sydney AUS
Registered: 2015-03-01
Posts: 47

[Solved] FDI Keys Set Lua Script

(deleted)

Last edited by samburner3 (2017-08-22 06:11:18)

Offline

#2 2017-07-10 15:08:01

piwi
Moderator
Registered: 2013-06-04
Posts: 468

Re: [Solved] FDI Keys Set Lua Script

samburner3 wrote:

have to use the hf mf wrbl commands, since the hf mf restore commands ignore the keys inside the dumpdata file and just put in F's.

hf mf restore command reads the keys inside the dumpkeys.bin file and writes them to the new card. No need to use hf mf wrbl commands to set the keys.

If you see FFFFFFFFFFFF keys in the new card this can have two reasons:

  • You are trying to read the keys with a rdbl command and access conditions don't allow to read the respective key (note: this is always true for Key A). This will display as "FFFFFFFFFFFF".

  • You had "FFFFFFFFFFFF" keys in the dumpkeys.bin file

Offline

#3 2017-07-10 18:08:06

Dot.Com
Contributor
From: Hong Kong
Registered: 2016-10-05
Posts: 153
Website

Re: [Solved] FDI Keys Set Lua Script

Nice test script there Sam!

If you need my help, do let me know. smile


You live, you learn.
You give, you take.
You win, you lose.

Offline

#4 2017-07-12 11:44:52

samburner3
Contributor
From: Sydney AUS
Registered: 2015-03-01
Posts: 47

Re: [Solved] FDI Keys Set Lua Script

(deleted)

Last edited by samburner3 (2017-08-22 06:10:59)

Offline

#5 2017-07-12 13:09:18

piwi
Moderator
Registered: 2013-06-04
Posts: 468

Re: [Solved] FDI Keys Set Lua Script

a) What keys are used to actually authenticate to write to the card?

hf mf restore uses key A = FFFFFFFFFFFF to write to the card

I know this error is due to access conditions.

Exactly. But this means that you don't write to a blank card. Access Conditions on blank cards allow writing the sector trailer with key A (transport configuration). Please note the capitalized "BLANK" in the help text of hf mf restore:

Restore MIFARE classic binary file to BLANK tag

Offline

#6 2017-07-12 13:24:11

samburner3
Contributor
From: Sydney AUS
Registered: 2015-03-01
Posts: 47

Re: [Solved] FDI Keys Set Lua Script

(deleted)

Last edited by samburner3 (2017-08-22 06:10:42)

Offline

Board footer

Powered by FluxBB