From 6aadc2ec10f1bfc97af9a4530a9a7ed07e5dbb6e Mon Sep 17 00:00:00 2001 From: BlueChip Date: Tue, 12 Nov 2024 18:40:18 +0000 Subject: [PATCH] add switch to force MAD decode --- client/pyscripts/fm11rf08_full.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/pyscripts/fm11rf08_full.py b/client/pyscripts/fm11rf08_full.py index e55964aef..4eb9e2b8d 100644 --- a/client/pyscripts/fm11rf08_full.py +++ b/client/pyscripts/fm11rf08_full.py @@ -166,7 +166,7 @@ globals: # Currently dumpAcl is hardcoded for RF08S dumpAcl(data) - if mad is True: + if (mad is True) or (args.mad is True): dumpMad(dump18) if (args.bambu is True) or (detectBambu(data) is True): @@ -207,6 +207,7 @@ def parseCli(): parser.add_argument('-r', '--recover', action='store_true', help='run key recovery script if required') parser.add_argument('-f', '--force', action='store_true', help='force recovery of keys') parser.add_argument('-b', '--bambu', action='store_true', help='force Bambu tag decode') + parser.add_argument('-m', '--mad', action='store_true', help='force M.A.D. decode') parser.add_argument('-v', '--validate', action='store_true', help='check Fudan signature (requires internet)') parser.add_argument('--fast', action='store_true', help='use ecfill for faster card transactions')