openwall / openwall/john

Dynamic "compiler" format (a.k.a. "ad-hoc dynamic") requires --format option

Open
#3,125 3 comments 0 reactions 1 assignee View on GitHub

@jfoug is already working on this.

Since Jan 24, 2018.

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

Description

The dynamic compiler format should be recognized without a --format option when given a format tag.

Example:

$ echo > test.in '@dynamic=md5($p.$u)@16ccb184ee1f16dd9af509135f504442$$Ujumbo'

$ ../run/john test.in
Using default input encoding: UTF-8
No password hashes loaded (see FAQ)

$ ../run/john test.in -form:'dynamic=md5($p.$u)'
Loaded 1 password hash (dynamic=md5($p.$u) [256/256 AVX2 8x3])
Press 'q' or Ctrl-C to abort, almost any other key for status
magnum           (?)
1g 0:00:00:00 DONE 2/3 (2018-01-24 11:43) 2.631g/s 8842p/s 8842c/s 8842C/s 123456..Geronimo
Use the "--show" option to display all of the cracked passwords reliably
Session completed

This behavior/requirement is documented, but if possible we should enhance it.

One effect of this problem is that external tools can't get any info using --show=types[-json]

$ ../run/john test.in --show=types
?:@dynamic=md5($p.$u)@16ccb184ee1f16dd9af509135f504442$$Ujumbo:::/:/:/:0:

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.