[GH-ISSUE #1612] Implement ?W for --mask mode #1060

Closed
opened 2026-10-14 03:33:29 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @frank-dittrich on GitHub (Aug 5, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1612

Unlike ?w, I'd like ?W to mean the input word, but case toggled for every character.
With --mask='?W?s?w', you could easily produce candidates like WORD!word etc.
If GPU side mask mode doesn't support that right after implementation, I wouldn't care too much.

Originally created by @frank-dittrich on GitHub (Aug 5, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1612 Unlike `?w`, I'd like `?W` to mean the input word, but case toggled for every character. With `--mask='?W?s?w'`, you could easily produce candidates like `WORD!word` etc. If GPU side mask mode doesn't support that right after implementation, I wouldn't care too much.
bsakaguchi 2026-10-14 03:33:29 +07:00
Author
Owner

@jfoug commented on GitHub (Aug 6, 2015):

so you would want ?w?W to be JohnjOHN if the input word is John ? or JOHNjohn if the input word was JOHN

<!-- gh-comment-id:128197177 --> @jfoug commented on GitHub (Aug 6, 2015): so you would want ?w?W to be JohnjOHN if the input word is John ? or JOHNjohn if the input word was JOHN
Author
Owner

@sayan1an commented on GitHub (Aug 6, 2015):

This does not affect gpu side mask.

<!-- gh-comment-id:128215041 --> @sayan1an commented on GitHub (Aug 6, 2015): This does not affect gpu side mask.
Author
Owner

@jfoug commented on GitHub (Aug 6, 2015):

I did not think it would impact GPU stuff. It looks like ?w (and now ?W when I can figure out what is wrong with my git), simply set constant data into the mask, so the GPU does not even know ?w or ?W were even used.

<!-- gh-comment-id:128216205 --> @jfoug commented on GitHub (Aug 6, 2015): I did not think it would impact GPU stuff. It looks like ?w (and now ?W when I can figure out what is wrong with my git), simply set constant data into the mask, so the GPU does not even know ?w or ?W were even used.
Author
Owner

@magnumripper commented on GitHub (Aug 6, 2015):

Good stuff. Cool idea, and implemented a couple hours later! 👍

<!-- gh-comment-id:128523586 --> @magnumripper commented on GitHub (Aug 6, 2015): Good stuff. Cool idea, and implemented a couple hours later! :+1:
Author
Owner

@frank-dittrich commented on GitHub (Aug 7, 2015):

This was just to compensate for moving your plaintext format down the list.
@Sayantan2048 had to fix what @jfoug accidentally broke, but now everything works.

<!-- gh-comment-id:128610980 --> @frank-dittrich commented on GitHub (Aug 7, 2015): This was just to compensate for moving your plaintext format down the list. @Sayantan2048 had to fix what @jfoug accidentally broke, but now everything works.
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#1060
No description provided.