[GH-ISSUE #2106] Stacking external hybrid modes #1410

Open
opened 2026-10-15 04:15:52 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @jfoug on GitHub (Apr 2, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2106

From #2072

I think we should come up with a way to stack these.

So we might have a -extern:leet and also an -extern:casemangle. It would be nice to allow:

./john -w=input -extern:leet -extern:casemangle

so that each would would be put through the leet script, and then every word output from the leet script would be put through the casemangle script. This would allow leet to be written 'cleanly', without having to muddy it up doing case mangling also if we wanted to do both leet and casing.

In here, order would be very important. This may also be prone to building duplicate words, so that would need to be looked at also.

Now we 'can' stack them, like this:

./john -w=input -extern:leet -stdout > input2
./john -w=input2 -extern:casemangle

Doing stacking like that may be preferred over trying to stack within 1 run of john. I will wait to hear from others on this. I have NOT started on doing this yet, it may not be trivial so the ROI may not be there.

Originally created by @jfoug on GitHub (Apr 2, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2106 From #2072 I think we should come up with a way to stack these. So we might have a -extern:leet and also an -extern:casemangle. It would be nice to allow: ./john -w=input -extern:leet -extern:casemangle so that each would would be put through the leet script, and then every word output from the leet script would be put through the casemangle script. This would allow leet to be written 'cleanly', without having to muddy it up doing case mangling also if we wanted to do both leet and casing. In here, order would be very important. This may also be prone to building duplicate words, so that would need to be looked at also. Now we 'can' stack them, like this: ./john -w=input -extern:leet -stdout > input2 ./john -w=input2 -extern:casemangle Doing stacking like that may be preferred over trying to stack within 1 run of john. I will wait to hear from others on this. I have NOT started on doing this yet, it may not be trivial so the ROI may not be there.
Author
Owner

@frank-dittrich commented on GitHub (Apr 2, 2016):

So we might have a -extern:leet and also an -extern:casemangle.

why not --extern=leet;casemangle instead?

<!-- gh-comment-id:204756467 --> @frank-dittrich commented on GitHub (Apr 2, 2016): > So we might have a -extern:leet and also an -extern:casemangle. why not `--extern=leet;casemangle` instead?
Author
Owner

@jfoug commented on GitHub (Apr 2, 2016):

That does handle the command line issue. But there are many more still to tackle.

<!-- gh-comment-id:204764544 --> @jfoug commented on GitHub (Apr 2, 2016): That does handle the command line issue. But there are many more still to tackle.
Author
Owner

@jfoug commented on GitHub (Apr 2, 2016):

getting leet and case will be a good test for this. It may be that there are so many dupes, that it ends up being better to simply run john twice, dumping to files and running unique to strip it. Time will tell ;)

<!-- gh-comment-id:204801065 --> @jfoug commented on GitHub (Apr 2, 2016): getting leet and case will be a good test for this. It may be that there are so many dupes, that it ends up being better to simply run john twice, dumping to files and running unique to strip it. Time will tell ;)
Author
Owner

@jfoug commented on GitHub (Apr 2, 2016):

Ok, got a case extern done. Using 2 runs of john to stack, I am pretty surprised.

stacking case;leet or leet;case produces the same output (as long as the word going to case;leet was lower cased). ALSO, it appears there are no duplicates!! I am surprised about both of those findings.

I have not done very in depth testing yet. Just -pipe in 1 word for now, Did pass then pass3 then password All ended up with same words in the end with no dupes (well order was different, but the exact same words spit out).

Now, I am not sure all chaining will be that 'nice'. But leet and case do appear to play very well with each other.

<!-- gh-comment-id:204806720 --> @jfoug commented on GitHub (Apr 2, 2016): Ok, got a case extern done. Using 2 runs of john to stack, I am pretty surprised. stacking case;leet or leet;case produces the same output (as long as the word going to case;leet was lower cased). ALSO, it appears there are no duplicates!! I am surprised about both of those findings. I have not done very in depth testing yet. Just -pipe in 1 word for now, Did pass then pass3 then password All ended up with same words in the end with no dupes (well order was different, but the exact same words spit out). Now, I am not sure all chaining will be that 'nice'. But leet and case do appear to play very well with each other.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1410
No description provided.