Skip to content

Commit

Permalink
Reuse existed directory for bruteforce dump (#111)
Browse files Browse the repository at this point in the history
Required for unpack ASUS CAP files.
  • Loading branch information
0lvin authored Jan 2, 2023
1 parent 72a6258 commit fbe26cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/uefi-firmware-parser
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ def _process_show_extract(parsed_object):
autodir = "%s_output" % FILENAME
if os.path.exists(autodir):
print("Skipping %s (_output directory exists)..." % (FILENAME))
return
os.makedirs(autodir)
if not args.brute:
return
else:
os.makedirs(autodir)
args.output = autodir

if args.extract:
Expand Down

0 comments on commit fbe26cc

Please sign in to comment.