Skip to content

Commit

Permalink
make the default pin 'a', as it is on Renode
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Nov 1, 2022
1 parent 4e2d799 commit f738781
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/pddbdbg.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ def main():
parser.add_argument(
"--basis", type=str, help="Extra Bases to unlock, as `name:pass`. Each additional basis requires another --basis separator. Note that : is not legal to use in a Basis name.", action="append", nargs="+"
)
parser.add_argument(
"-p", "--pin", help="Unlock PIN", type=str, default='a'
)
args = parser.parse_args()

numeric_level = getattr(logging, args.loglevel.upper(), None)
Expand All @@ -47,7 +50,7 @@ def main():
with open(imagefile, 'rb') as img_f:
raw_img = img_f.read()
raw_img = raw_img[0x01D80000:0x07F80000]
keys = extract_keys(keyrom, raw_img, 'a', basis_credentials)
keys = extract_keys(keyrom, raw_img, args.pin, basis_credentials)
else:
if args.name == None:
keyfile = './tools/pddb-images/pddb.key'
Expand Down

0 comments on commit f738781

Please sign in to comment.