openwall / openwall/john

Support for $HEX[] wordlists (like in hashcat)

Open
#2,354 25 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hashcat support $HEX[] wordlists to encode control chars. Will be nice have this option available into JTR, in that way we can use hashcat wordlists into JTR.

So, a password of "foobar1[CRLF]" becomes: $HEX[666f6f626172310d0a]

Is this format already supported in JTR? Do you plan to add it? Exist any way to handle control chars in wordlists?

Not sure if i should post this here or at john-users list, since it contains ideas and also questions 😕 .

Thanks in advance for your help.

  • add $HEX[] handling to wordlist mode (wordlist.c)
  • add $HEX[] storing/handling to .pot files and screen output (logger.c, loader.c)
  • enhance base64_convert process to convert to and from $HEX[] format.

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

Start by reading the wordlist.c, logger.c, and loader.c areas named in the issue, then inspect the base64_convert process. The work is complete when $HEX[] input is handled in wordlist mode, represented appropriately in .pot files and screen output, and converted to and from the stated format.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli, security
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.