mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-01 05:07:03 +08:00
fix: one less block
This commit is contained in:
parent
6327b767fc
commit
40dbb6b813
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
#or
|
#or
|
||||||
# pip install bitstring
|
# pip install bitstring
|
||||||
#Usage:
|
#Usage:
|
||||||
# mfdread.py ./dump.mfd
|
# pm3_mfdread.py ./dump.mfd
|
||||||
#
|
#
|
||||||
|
|
||||||
import codecs
|
import codecs
|
||||||
|
@ -220,7 +220,7 @@ def print_info(data):
|
||||||
if q == 0 and z == 0:
|
if q == 0 and z == 0:
|
||||||
permissions = "-"
|
permissions = "-"
|
||||||
|
|
||||||
elif z == n_blocks:
|
elif z == n_blocks - 1:
|
||||||
permissions = accbits_to_permission_sector(blockrights[q][z])
|
permissions = accbits_to_permission_sector(blockrights[q][z])
|
||||||
else:
|
else:
|
||||||
permissions = accbits_to_permission_data(blockrights[q][z])
|
permissions = accbits_to_permission_data(blockrights[q][z])
|
||||||
|
|
Loading…
Reference in a new issue