From aaa4c7ac4fd5df216ff1ae39f0996833fab6de7c Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 12 Dec 2020 13:37:21 +0100 Subject: [PATCH] magic doc --- doc/magic_cards_notes.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/magic_cards_notes.md b/doc/magic_cards_notes.md index 4f9cb2f68..9e4cdce12 100644 --- a/doc/magic_cards_notes.md +++ b/doc/magic_cards_notes.md @@ -426,6 +426,12 @@ Note: it seems some cards only accept the "change UID" command. It accepts direct read of block0 (and only block0) without prior auth. +Writing to block 0 has some side-effects: + +* It changes also the UID. Changing the UID *does not* change block 0. +* ATQA and SAK bytes are automatically replaced by fixed values. +* On 4-byte UID cards, BCC byte is automatically corrected. + ### Characteristics * UID: 4b and 7b versions @@ -452,6 +458,8 @@ Equivalent: ``` # change just UID: hf 14a raw -s -c -t 2000 90FBCCCC07 11223344556677 +# read block0: +hf 14a raw -s -c 3000 # write block0: hf 14a raw -s -c -t 2000 90F0CCCC10 041219c3219316984200e32000000000 # lock (uid/block0?) forever: