[GH-ISSUE #2260] Missing parameter for --*encoding options not detected #1514

Closed
opened 2026-10-15 04:19:12 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @frank-dittrich on GitHub (Sep 5, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2260

Usually, if you specify an option without a parameter, john checks whether the option requires a parameter:

 (bleeding-jumbo)run $ ./john --config
Option requires a parameter: "--config"
(bleeding-jumbo)run $ ./john --config=
Option requires a parameter: "--config="
(bleeding-jumbo)run $ ./john --config= --list=help
Option requires a parameter: "--config="

For --encoding, --input-encoding, --target-encoding and --internal-codepage, this doesn't work.

(bleeding-jumbo)run $ ./john --input-encoding
Password files required, but none specified
(bleeding-jumbo)run $ ./john --input-encoding=
Password files required, but none specified
(bleeding-jumbo)run $ ./john --input-encoding= --list=help
help[:WHAT], subformats, inc-modes, rules, externals, ext-modes, ext-hybrids,
ext-filters, ext-filters-only, build-info, hidden-options, encodings,
formats, format-details, format-all-details, format-methods[:WHICH],
format-tests, sections, parameters:SECTION, list-data:SECTION,
<conf section name>
Originally created by @frank-dittrich on GitHub (Sep 5, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2260 Usually, if you specify an option without a parameter, john checks whether the option requires a parameter: ``` (bleeding-jumbo)run $ ./john --config Option requires a parameter: "--config" (bleeding-jumbo)run $ ./john --config= Option requires a parameter: "--config=" (bleeding-jumbo)run $ ./john --config= --list=help Option requires a parameter: "--config=" ``` For `--encoding`, `--input-encoding`, `--target-encoding` and `--internal-codepage`, this doesn't work. ``` (bleeding-jumbo)run $ ./john --input-encoding Password files required, but none specified (bleeding-jumbo)run $ ./john --input-encoding= Password files required, but none specified (bleeding-jumbo)run $ ./john --input-encoding= --list=help help[:WHAT], subformats, inc-modes, rules, externals, ext-modes, ext-hybrids, ext-filters, ext-filters-only, build-info, hidden-options, encodings, formats, format-details, format-all-details, format-methods[:WHICH], format-tests, sections, parameters:SECTION, list-data:SECTION, <conf section name> ```
Author
Owner

@magnumripper commented on GitHub (Sep 5, 2016):

It also didn't work correctly for --prince-skip and --prince-limit. Fixed also.

<!-- gh-comment-id:244791559 --> @magnumripper commented on GitHub (Sep 5, 2016): It also didn't work correctly for --prince-skip and --prince-limit. Fixed also.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1514
No description provided.