cli: fix unused target key type parameter for nested (#204)

* cli: fix unused target key type parameter for nested
* Added entry to CHANGELOG.md
This commit is contained in:
Peter-Simon Dieterich
2024-03-07 14:57:11 +08:00
committed by GitHub
parent 3d8451a133
commit 1608892140
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
## [unreleased][unreleased]
- Fixed unused target key type parameter for nested (@petepriority)
- Skip already used items `hf mf elog --decrypt` (@p-l-)
- Parallelize mfkey32v2 processes called from CLI (@p-l-)
- Added support for mifare classic value block operations (@taichunmin)
+1 -1
View File
@@ -763,7 +763,7 @@ class HFMFNested(ReaderRequiredUnit):
key_known_bytes = bytes.fromhex(key_known)
block_target = args.tblk
# default to A
type_target = MfcKeyType.B if args.b else MfcKeyType.A
type_target = MfcKeyType.B if args.tb else MfcKeyType.A
if block_known == block_target and type_known == type_target:
print(f"{CR}Target key already known{C0}")
return