openwall / openwall/john

Improve blockchain2john.py script to handle multiple hashes

Open
#5,198 0 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

Someone sent me this request in private.

This doesn't seem hard to fix, for anyone with python skills and a sample wallet.


I would like to extract several blockchain hash, from a text file that contains line by line, the encrypted blockchain hases. (eg:wallets.json file)

Eg:
input file wallets.json

{"pbkdf2_iterations":5000,"version":3,"payload":".........
{"pbkdf2_iterations":5000,"version":4,"payload":".........

etc...

Eg:
ouput file extracted-wallets.json

$blockchain$v2$5000$2530$.........
$blockchain$v2$5000$1556$.........
etc..

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 with blockchain2john.py and inspect how it reads a single wallet record. Try the wallets.json example as input, then make the script produce one extracted hash line for each record in the file, matching the extracted-wallets.json format shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.