Merge pull request #1152 from ikarus23/format

hf_mf_format.lua: fixed off by one and typo.
This commit is contained in:
Iceman 2020-12-30 23:13:00 +01:00 committed by GitHub
commit 4cd329aec3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 Alla datablocks gets 0x00
As default the script sets the keys A/B to 0xFFFFFFFFFFFF As default the script sets the keys A/B to 0xFFFFFFFFFFFF
and the access bytes will become 0x78,0x77,0x88 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. The script will skip the manufactoring block 0.
]] ]]
@ -169,7 +169,7 @@ local function main(args)
GetCardInfo() GetCardInfo()
-- Show info -- 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('Old key: %s', OldKey))
print( string.format('New key: %s', NewKey)) print( string.format('New key: %s', NewKey))
print( string.format('New Access: %s', Accessbytes)) print( string.format('New Access: %s', Accessbytes))