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 2020-03-25 14:11:10

The_swon_men
Contributor
Registered: 2020-01-14
Posts: 16

Impossible to write in tag.

Dear all;

I'd like to take the liberty of bothering you for a moment.

About a Mifare Classic 1k badge. I want to write inside (whatever the block is, it's an exercise).

First I'm looking for a key with the nested attack and then I'm looking for all of them with the command "hf mf nested 1 0 A 484558414354 d";

|---|----------------|---|----------------|---|
|sec|key A           |res|key B           |res|
|---|----------------|---|----------------|---|
|000|  484558414354  | 1 |  a22ae129c013  | 1 |
|001|  484558414354  | 1 |  49fae4e3849f  | 1 |
|002|  484558414354  | 1 |  38fcf33072e0  | 1 |
|003|  484558414354  | 1 |  8ad5517b4b18  | 1 |
|004|  484558414354  | 1 |  509359f131b1  | 1 |
|005|  484558414354  | 1 |  6c78928e1317  | 1 |
|006|  484558414354  | 1 |  aa0720018738  | 1 |
|007|  484558414354  | 1 |  000000000000  | 0 |
|008|  484558414354  | 1 |  62d0c424ed8e  | 1 |
|009|  484558414354  | 1 |  000000000000  | 0 |
|010|  484558414354  | 1 |  8fa1d601d0a2  | 1 |
|011|  484558414354  | 1 |  89347350bd36  | 1 |
|012|  484558414354  | 1 |  66d2b7dc39ef  | 1 |
|013|  484558414354  | 1 |  6bc1e1ae547d  | 1 |
|014|  484558414354  | 1 |  22729a9bd40f  | 1 |
|015|  484558414354  | 1 |  484558414354  | 1 |
|---|----------------|---|----------------|---|

The problem is that when I do the command "hf mf wrbl 3 A 484558414354 01010101010101010101010101010101" the display returns to me;

#db# Cmd Error: 04
#db# Write block error
#db# WRITE BLOCK FINISHED
isOk:00

What do you think the problem is?

Thanks!
Best regards

Offline

#2 2020-03-25 14:29:35

loupetre
Contributor
Registered: 2019-01-21
Posts: 29

Re: Impossible to write in tag.

First, you should dump your tag.
Then, you will be able to check acces bytes for each sector (16 sectors for a Mifare 1K) => according to these access bytes, you may have to use B key in order to write a block in the sector concerned.

Anyway, another thing is wrong with your test : you try to write the trailer block (3). Try writing block 2 or 4 instead (and likely with B key instead of A key).

Offline

#3 2020-03-25 14:30:43

zorks56
Contributor
Registered: 2020-02-02
Posts: 14

Re: Impossible to write in tag.

Check if you are confused between block and sector!
Block 3 is in sector 0 .the sector 0 is unwritable if you are editing a uid non writable

Offline

#4 2020-03-25 14:58:12

loupetre
Contributor
Registered: 2019-01-21
Posts: 29

Re: Impossible to write in tag.

zorks56 wrote:

Check if you are confused between block and sector!
Block 3 is in sector 0 .the sector 0 is unwritable if you are editing a uid non writable

I suggest that only block 0 is not writable (except on magic cards).
All other blocks are writable (except trailers blocks - (block+1) %4 -, that can be locked definitively via their respective access bytes)

Offline

#5 2020-03-27 16:32:26

The_swon_men
Contributor
Registered: 2020-01-14
Posts: 16

Re: Impossible to write in tag.

Hello,

Thanks for your message !
very thing is Ok now ! Thanks !

Last question: is it possible to change the keys with the proxmark?

Thanks !

Offline

Board footer

Powered by FluxBB