Skip to content

Brunnerne/bkwhack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bkwhack

Automated helper tool for bkcrack.

bkwhack searches a ZIP archive for any ZipCrypto encrypted, non-compressed files and checks for auto-crackable file types.

Supported file types are attempted cracked with bkcrack using known bytes (mostly header/footer) in order of fastest crackable.

Usage

Clone the repo and simply run

$ python3 bkwhack.py <zipfile>

on the ZIP archive you want to crack with bkcrack and let bkwhack handle the rest.

NOTE: bkwhack just calls bkcrack, make sure this is already downloaded and on your path. It is important to use bkcrack v1.7.0 or later which added the -D option to generate a decrypted archive.

Full usage:

usage: bkwhack.py [-h] [-l] [-o OUT] [zipfile]

BKWHACK: bkcrack automation tool

positional arguments:
  zipfile        Encrypted ZIP file

options:
  -h, --help     show this help message and exit
  -l, --list     List supported file types
  -o, --out OUT  Filename for unlocked ZIP file (default: decrypted.zip)

Development

Feel free to post an issue or pull request in case of bugs or new features / file types.

To add support for a new file format, please create a new entry in fileformats.py with the file extension and any known bytes. Offsets can be negative to count from the end of the file in case of footers.

Please make sure to fill in at least

  • One contiguous sequence of length 8+
  • 12 total bytes across all sequences

Please make sure the known bytes are certain by downloading many sample files and ensuring they all have these bytes at the provided offsets.

For any new file types added, please add a small sample file in /examples/files, then zip it with

zip -e -P password -Z Store <ext> <filename>

and place the ZIP archive in /examples. Make sure to run bkwhack on this file as a sanity check before submitting the pull request.

About

Automated helper tool for bkcrack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages