1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Update tools/bitlocker2hashcat.py

Co-authored-by: kgolawski <konrad.golawski@gmail.com>
This commit is contained in:
holly-o 2024-09-13 15:07:01 +01:00 committed by GitHub
parent 02e7692eb9
commit 7c1688a266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -178,13 +178,11 @@ def main():
p = argparse.ArgumentParser()
p.add_argument('image_path', help="Path to encrypted BitLocker image")
p.add_argument('-o', '--offset', help='Offset in image where BitLocker partition starts, default=0')
p.add_argument('-o', '--offset', default=0, type=int, help='Offset in image where BitLocker partition starts')
args = p.parse_args()
bitlocker_partition = args.image_path
bitlocker_offset = 0
if args.offset:
bitlocker_offset = int(args.offset)
bitlocker_offset = args.offset
with open(bitlocker_partition, 'rb') as fp: