[GH-ISSUE #2324] Add ?h and ?H mask placeholders #1556

Closed
opened 2026-10-15 04:20:05 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @magnumripper on GitHub (Nov 10, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2324

?h is [0-9a-f]
?H is [0-9A-F]

This is for compatibility with (bleeding) Hashcat

Originally created by @magnumripper on GitHub (Nov 10, 2016). Original GitHub issue: https://github.com/openwall/john/issues/2324 ?h is [0-9a-f] ?H is [0-9A-F] This is for compatibility with (bleeding) Hashcat
bsakaguchi 2026-10-15 04:20:05 +07:00
Author
Owner

@jfoug commented on GitHub (Nov 10, 2016):

We don't have those? wow. an oversite. I know most do ?x type stuff (in rules not mask). At the same time, I think we need to add these as rules char classes. We have ?x which is [0-9][a-f][A-F] So there is no way we could simply add ?X

NOTE, I have not updated the title here, but once we make sure this observation is correct (I am not sure it is), then I think we should update this enhancement to be both mask and rules (and add 2 to-do check-boxes to the original post).

<!-- gh-comment-id:259807718 --> @jfoug commented on GitHub (Nov 10, 2016): We don't have those? wow. an oversite. I know most do ?x type stuff (in rules not mask). At the same time, I think we need to add these as rules char classes. We have ?x which is [0-9][a-f][A-F] So there is no way we could simply add ?X NOTE, I have not updated the title here, but once we make sure this observation is correct (I am not sure it is), then I think we should update this enhancement to be both mask and rules (and add 2 to-do check-boxes to the original post).
Author
Owner

@nuartvision commented on GitHub (Nov 10, 2016):

Oh, compatibility is good.
Hope it will not bring us to separate entities for "suitable for email address", "suitable for domain name", "numpad and surrounding" character sets in core config instead of user-defined ranges/sets

Are you suggesting to add them globally of just update "!! hashcat logic ON" behaviour?

<!-- gh-comment-id:259808567 --> @nuartvision commented on GitHub (Nov 10, 2016): Oh, compatibility is good. Hope it will not bring us to separate entities for "suitable for email address", "suitable for domain name", "numpad and surrounding" character sets in core config instead of user-defined ranges/sets Are you suggesting to add them globally of just update "!! hashcat logic ON" behaviour?
Author
Owner

@jfoug commented on GitHub (Nov 10, 2016):

Looking at rules.c, I think we have some VERY large bugs in the ?x (encoding)

case ISO_8859_15:
        rules_init_class('x', CHARS_LOWER CHARS_UPPER
                         CHARS_ALPHA_ISO_8859_15 CHARS_DIGITS
                         CHARS_DIGITS_ISO_8859_15);

There are other cases like this. This is NOT hex!

<!-- gh-comment-id:259808611 --> @jfoug commented on GitHub (Nov 10, 2016): Looking at rules.c, I think we have some VERY large bugs in the ?x (encoding) ``` c case ISO_8859_15: rules_init_class('x', CHARS_LOWER CHARS_UPPER CHARS_ALPHA_ISO_8859_15 CHARS_DIGITS CHARS_DIGITS_ISO_8859_15); ``` There are other cases like this. This is NOT hex!
Author
Owner

@jfoug commented on GitHub (Nov 10, 2016):

Are you suggesting to add them globally of just update "!! hashcat logic ON" behaviour?

I would think this would be global, and have nothing to do with 'hc' compatibility stuff in the reading of the rules. Jumbo and core are NOT compatible, and never will be, until Solar implements things like the .include....... logic.

I guess it 'could' also be compatible if solar (and jumbo) implement something like C's #ifdef type logic in processing the file. But I really think it would be MUCH better if he implemented the include file/section logic. Yes, just having that logic does NOT make the .conf files compatible between core/jumbo, BUT it provides the needed impetus to take the time to redo the parts of the .conf system in jumbo to make it work in core.

<!-- gh-comment-id:259808955 --> @jfoug commented on GitHub (Nov 10, 2016): > Are you suggesting to add them globally of just update "!! hashcat logic ON" behaviour? I would think this would be global, and have nothing to do with 'hc' compatibility stuff in the reading of the rules. Jumbo and core are NOT compatible, and never will be, until Solar implements things like the .include....... logic. I guess it 'could' also be compatible if solar (and jumbo) implement something like C's #ifdef type logic in processing the file. But I really think it would be MUCH better if he implemented the include file/section logic. Yes, just having that logic does NOT make the .conf files compatible between core/jumbo, BUT it provides the needed impetus to take the time to redo the parts of the .conf system in jumbo to make it work in core.
Author
Owner

@magnumripper commented on GitHub (Nov 14, 2016):

Looking at rules.c, I think we have some VERY large bugs in the ?x (encoding)

First, The ?x character class in rules have absolutely NOTHING to do with masks nor with this issue. They just look alike. Second, that is not a bug. Look at http://www.openwall.com/john/doc/RULES.shtml.

<!-- gh-comment-id:260259476 --> @magnumripper commented on GitHub (Nov 14, 2016): > Looking at rules.c, I think we have some VERY large bugs in the ?x (encoding) First, The ?x character class in rules have absolutely NOTHING to do with masks nor with this issue. They just look alike. Second, that is not a bug. Look at http://www.openwall.com/john/doc/RULES.shtml.
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#1556
No description provided.