Skip to content

Commit

Permalink
Add ability to use gzipped passwordlists (and seedlists)
Browse files Browse the repository at this point in the history
  • Loading branch information
3rdIteration committed Nov 4, 2023
1 parent c1801b1 commit e06561b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions btcrecover/btcrpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -5444,6 +5444,9 @@ def open_or_use(filename, mode = "r",
#
if tstr == str and "b" not in mode:
file = io.open(filename, mode, encoding="utf_8_sig", errors=decoding_errors)
if filename[-3:] == ".gz":
file = gzip.open(filename, mode, encoding="utf_8_sig", errors=decoding_errors)
else:
else:
file = open(filename, mode)
#
Expand Down
2 changes: 1 addition & 1 deletion docs/passwordlist_file.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
contributors: gurnec
## The Passwordlist ##

If you already have a simple list of whole passwords you'd like to test, and you don't need any of the features described above, you can use the `--passwordlist` command-line option (instead of the `--tokenlist` option as described later in the [Running *btcrecover*](#running-btcrecover) section). If your password contains any non-[ASCII](https://en.wikipedia.org/wiki/ASCII) (non-English) characters, you should read the section on [Unicode Support](#unicode-support) before continuing.
If you already have a simple list of whole passwords you'd like to test, and you don't need any of the features described above, you can use the `--passwordlist` command-line option (instead of the `--tokenlist` option as described later in the [Running *btcrecover*](#running-btcrecover) section). The passwordlist is just a standard text file, with one password per line. (It can be either raw text or also compressed with gzip)If your password contains any non-[ASCII](https://en.wikipedia.org/wiki/ASCII) (non-English) characters, you should read the section on [Unicode Support](#unicode-support) before continuing.

If you specify `--passwordlist` without a file, *btcrecover* will prompt you to type in a list of passwords, one per line, in the Command Prompt window. If you already have a text file with the passwords in it, you can use `--passwordlist FILE` instead (replacing `FILE` with the file name).

Expand Down

0 comments on commit e06561b

Please sign in to comment.