openwall / openwall/john

MASK mode. add 'empty' character to range

Open
#2,007 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
13.6k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Allow an escape or something to the range syntax, so that a range will output any listed character AND output nothing. Example (very useful for things like dates)

--mask=jan[\b0-2][0-9]19[7-9][0-9]

Here the \b is the escape (not sure that is the right thing, and this would give us these outputs:

jan11970
jan011970
jan111970
jan211970

The jan11970 is the example this issue requests (the empty).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by tracing John the Ripper's mask-mode range syntax and how the listed characters are expanded, then check the existing mask examples or tests. Done means the proposed escape or equivalent syntax produces both each listed character and the empty alternative, including the four date outputs shown.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.