add new keybox arg

This commit is contained in:
hyugogirubato 2024-10-27 19:38:24 +01:00
parent 6505ea9a5d
commit 6f77ac89cf
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ def main() -> None:
# Advanced options
group_advanced = parser.add_argument_group('Advanced')
group_advanced.add_argument('-f', '--functions', required=False, type=Path, metavar='<file>', help='Path to Ghidra XML functions file.')
# group_advanced.add_argument('-k', '--keybox', required=False, action='store_true', help='Export keybox if available.')
group_advanced.add_argument('-k', '--keybox', required=False, action='store_true', help='Enable export of the Keybox data if it is available.')
group_advanced.add_argument('--challenge', required=False, type=Path, metavar='<file>', help='Path to unencrypted challenge for extracting client ID.')
group_advanced.add_argument('--private-key', required=False, type=Path, metavar='<file>', help='Path to private key for extracting client ID.')
@ -115,7 +115,7 @@ def main() -> None:
adb = ADB(device=args.device)
# Initialize Cdm instance
cdm = Cdm()
cdm = Cdm(keybox=args.keybox)
if args.challenge:
cdm.set_challenge(data=args.challenge)
if args.private_key: