hf_mf_format.lua: fixed off by one and typo.

This commit is contained in:
ikarus 2020-12-30 23:10:53 +01:00
commit 6d62f3f53c

View file

@ -14,7 +14,7 @@ This script will generate 'hf mf wrbl' commands for each block to format a Mifar
Alla datablocks gets 0x00
As default the script sets the keys A/B to 0xFFFFFFFFFFFF
and the access bytes will become 0x78,0x77,0x88
The GDB will become 0x00
The GPB will become 0x00
The script will skip the manufactoring block 0.
]]
@ -169,7 +169,7 @@ local function main(args)
GetCardInfo()
-- Show info
print( string.format('Estimating number of blocks: %d', numBlocks))
print( string.format('Estimating number of blocks: %d', numBlocks + 1))
print( string.format('Old key: %s', OldKey))
print( string.format('New key: %s', NewKey))
print( string.format('New Access: %s', Accessbytes))