#password #zip #protected #find #generate-password #letter #brute-force

app zip-password-finder

Find the password of protected ZIP files

1 unstable release

0.5.1 Jan 12, 2023

#420 in Compression

Apache-2.0

59KB
856 lines

Contains (Zip file, 1KB) test-files/4.test.txt.zip, (Zip file, 1KB) test-files/2.test.txt.zip, (Zip file, 1KB) test-files/3.test.txt.zip

zip-password-finder

Build

zip-password-finder is a tool to find the password of protected zip files.

The initial design of this tool is described in details in the following blog article.

It supports two modes:

  • dictionary: test passwords from a dictionary text file (one word per line)
  • brute force: generate all passwords for a given charset and a password length range

The available charsets for generation are:

  • basic: lowercase letters
  • easy: basic + upper case letters
  • medium: easy + digits
  • hard: medium + punctuations and extras

Installation

crates.io

cargo install zip-password-finder

Usage

./zip-password-finder -h
Find the password of protected ZIP files

Usage: zip-password-finder [OPTIONS] --inputFile <inputFile>

Options:
  -i, --inputFile <inputFile>
          path to zip input file
  -w, --workers <workers>
          number of workers
  -p, --passwordDictionary <passwordDictionary>
          path to a password dictionary file
  -c, --charset <charset>
          charset to use to generate password [default: medium] [possible values: basic, easy, medium, hard]
      --minPasswordLen <minPasswordLen>
          minimum password length [default: 1]
      --maxPasswordLen <maxPasswordLen>
          maximum password length [default: 10]
  -h, --help
          Print help information
  -V, --version
          Print version information

Performance

It is rather slow and seems to suffer from contention as the number of workers increases which makes it impractical for non-trivial passwords.

Dependencies

~7–16MB
~181K SLoC