openwall / openwall/john

pkzip_fmt does not support bzip2 compression type

Open
#4,124 22 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

I have a zipfile with bzip2 compressed entries (compression type 'c'). I was initially confused as to why john wasn't accepting my zip2john generated hash as no useful error message was generated. Fortunately, enabling debugging produced a good trail to follow.

I located a file within the zip with a 'stored' compression type and used that file to allow me to continue cracking the password on the zip.

It'd be useful if john-the-ripper could support either the bzip2 compression method, or if zip2john could ignore compression formats not supported by john-the-ripper. The latter would hopefully produce a useful error message if no files were found within the zip with the supported compression format, or choose a file that used a supported compression format if one exists.

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 inspecting the pkzip_fmt handling and the zip2john path for entries using compression type 'c'; reproduce the issue with a ZIP containing bzip2-compressed entries and use the reported debug trail. Done should mean unsupported compression is handled explicitly, either through support or by selecting a supported entry and producing a useful error when none exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
security
Issue type
Bug
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.