mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2095] Add HC rules not yet in JtR #1402
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1402
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jfoug on GitHub (Mar 21, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2095
There are these rules. Should we add them to bleeding (should not be too hard to do)
There were other rules also:
pN q 4 6 zN ZNAlso, if only some of these are 'deemed' worthwhile, then let's work on those. I see some of these as VERY powerful (E seems VERY strong, as does the k K and *).
@jfoug commented on GitHub (Mar 21, 2016):
I see a problem from the start. The '-' is already used in JtR as rule reject. + is used as a length, but that should not cause any problems. Also + is used in single crack mode to concatenation, so it is 'out'
@magnumripper commented on GitHub (Mar 22, 2016):
This definitely has to be discussed on the ML - the only hard part is the mnemonic collisions you already noticed. I tried doing so in http://www.openwall.com/lists/john-users/2013/09/22/10 but got no answer at all.
@jfoug commented on GitHub (Mar 22, 2016):
Is there a way to reply to the above email archives ?
@frank-dittrich commented on GitHub (Mar 22, 2016):
From john-users mail headers:
So may be there's a way to retrieve old messages individually.
Just send an empty message and check the available commands.
Alternatively, if you locate that mail in the gmane archives, you should be able to reply to the mail via gmane.
http://thread.gmane.org/gmane.comp.security.openwall.john.user/6848
http://post.gmane.org/post.php?group=gmane.comp.security.openwall.john.user&followup=6848
@frank-dittrich commented on GitHub (Mar 22, 2016):
If it doesn't work: I still have that mail, so I could reply to it, e.g., mentioning the issue with incrementing/decrementing utf-8, but full-quoting the original message, so that you can reply to my mail...
@jfoug commented on GitHub (Mar 25, 2016):
I thought of other rules to add.
we have shift right, and shift left (i.e. hello becomes jr;;p for shift right). I thought little of these for a while, as they really do not 'crack' passwords. BUT they are very useful for someone that set a password, but then it does no work (i.e. their fingers were not on keyboard correctly). However, I think we should expand this, to also include a rule where right hand only is shifted right (or left), and only left hand is shifted right or left (using 'correct' fingering for letters), and possibly also providing a shift 1-to-7 for letter-#n (for 1 finger typers). Would someone likely want shift up or down? When I misstype it is almost always one hand (or both) are not set left or right properly.
@magnumripper commented on GitHub (Mar 27, 2016):
@solardiz I'm not sure how we should attack the mnemonic collisions. But it would be nice to support all rules HC supports.
@frank-dittrich commented on GitHub (Mar 27, 2016):
AFAIK, there are semantic differences for some existing commands already, so may be we need a conversion tool from JtR rules to hashcat rules, anyway.
We should try to communicate with hashcat to avoid creating more mnemonic collisions in the future.
Does InsidePro have some rules we are missing? Do we care? At least we might want to avoid to create new mnemonic collisions with InsidePro.
@jfoug commented on GitHub (Mar 27, 2016):
It is even more pronounced with HC, (I think), since there are different flavors of rules processing for CPU vs GPU. Currently john does all rules processing on CPU, so even though it is inefficient for the GPU, we only have a single dialect.
It is very unlikely that exact words generated between all rules processors will ever be unified. However, handling the language SHOULD be something we strive to unify, and doing the same type operations for each others language.
But it is likely that things like pPIRL can easily return different words. Also there are many instances where some edge conditions are not fully documented. I have been working on a 100% compatible pure perl rules and ppr replacement. I have found things which simply have to go look at the code in rpp.c or rules.c to figure them out (to get full compatibility with jtr).
@jfoug commented on GitHub (Mar 27, 2016):
I have been trying to get the pure perl rules tester done, so we have something fully backwards regression test compatible, that if any changes to the language are made, we are 100% certain that it is fully backward compatible (i.e. that we did not bone ourselves).
@jfoug commented on GitHub (Mar 27, 2016):
Eek. - and + are a bit more complex already. Both are used as a numeric variable. Yes, we certainly can 'work' around these problems. But then you get really fun code like:
-- -+ +- or ++where the first one is a command, and the second is the length value, lol. This still does not make + and - out of range, if when parsing a token that is supposed to be a command, you are NOT looking for a numeric variable, and same goes when when processing the char that is a numeric var, you are not fooled by a command byte. The language is regular, even if some items get used for multiple things.
However, the -rejection clauses do NOT have to be the first byte of the line. We could state that ALL - rejections have to come FIRST, and that after the first non-rejection command is seen, that no other - rejection commands are valid and that if any commands are seen starting with a '-' char, that they are then decrement letter.
@jfoug commented on GitHub (Mar 27, 2016):
Here is an example from single for reject not starting at start of line:
-s-c x** /?u l@jfoug commented on GitHub (Mar 27, 2016):
R and L are also already used. But the HC version seems VERY suspect. bit shift a character left or right ?? Seems unlikely to me.
@jfoug commented on GitHub (Mar 28, 2016):
I can think of one other rule that we should also add (and coordinate) That would be 'e' It is like 'E', but instead of just casing after spaces, it cases after any non-alpha or non-alnum (not sure which would be better)).
So e on the word happy-to-be-here would be Happy-To-Be-Here Or on password#$eggs would be Password#$Eggs
I do see reason for both. The 'e' as defined here, would cause problem with leet words. p@ssword would become P@Ssword which might be a possible word, but it is not as likely as P@ssword and p@ssw0rd becomes P@Ssw0Rd again, not what is likely going to help much.
But I have seen a lot more than just space.
It may be that 'E' should case for - _ / \ , . ! Those are often separators I have seen used in passwords where following words were cased. Or we could do E and E?c where E?c is case after anything in the class (user classes included). Or have E and e (e being all symbols, space, punc), and e?c to allow different tunable behavior of the e rule.
Comments wanted for sure on this one. But the E is one of the main things I REALLY see as an important item (but also + and - seem VERY important, but harder)
@jfoug commented on GitHub (Apr 9, 2016):
Not 100%, but not far off. Started off by first off getting d3ad0ne.rule to load. NOTE, there were still some lines in the file that required commenting out, OR changes. Lines like @? had to be changed to @?? for john. I had to do some search/replace. \ -> \ then [ -> [ then ] -> ] (in that order, so that \ would be done properly). Then any RX or LX where X was > '9' were are not handled. I simply added code into the existing R and L handler code, so that if the byte following the R or L was >= 0 and <= '9', then it uses HC logic, otherwise it assume this is a john R or L (keyboard shift).
Other than that, the file loaded. NOTE, I am not 100% sure every command is correct yet. Also 'E' and 'e' are not handled yet at all.
Also, some HC rules started with - char. For those, I simply added a M command (no-op) as the first command of the rule.
@jfoug commented on GitHub (Apr 9, 2016):
I might add a pair of magic comments to the spec (tried comments, but they get stripped out, so now using !!) I think they will need to be put into rpp.c but also affect rules.c The comments will be:
That way, we will not have to escape, \ or [ or ] Also RA will work just fine, since we know Hashcat does not have R or L commands, only RN or LN commands. Also, -N being on line 1 would not fail. Pretty simple stuff actually (I think). One other big thing that can not work in HC mode, is classes.
Then you only need to add that command at the top of a HC .rule file, and add the off comment at the bottom of the file.
So far for using these rules, I have done this in my john-local.conf file:
Note, I have 2 lines, since VC runs do not know about my cygwin symlink /c back to root of drive C. So far things work pretty slick BUT if I add the HashCat on/off logic, it should work flawlessly. NOTE, even if you do not use the HC_On/Off logic, most HC scripting will work just fine (in JtR mode). Only a couple things will not work, or will require modfifications to the script. I am trying to avoid modifications to the scripts. The On/OFF could actually be lines in the john-local.conf file.
One thing that still needs hand editing, is any [ char at the start of a line. This trips johns config.c code, as a bad config line. So any rule that starts with [ MUST have a M or a : no op shoved in front of it.
@jfoug commented on GitHub (Apr 10, 2016):
Here is a full working patch. There are a couple of issues I have seen, but almost everything is worked in FULLY. Now original HC rules sets can be used if we want to (this code is not yet checked in).
The known issues.
:[This is a requirement of john's config.c:.This is a requirement of john's config.c (.include)4then in HC, random stuff gets appended. In JtR, it works properly, lol.NOTE the change to wordlist.c Without this, the way I have hooked this into john gives no passwords AT ALL. I think this is likely a long standing bug, but until we handled things skipping the rpp code, we did not see this. Also, it could be where we are 'skipping' the
!! HashCat logic ONline.@jfoug commented on GitHub (Apr 10, 2016):
Created a PR for HashCat's rules https://github.com/hashcat/oclHashcat/pull/292 Those were the rules which would not work, and cause john's config.c to choke on them. No rule can start with a [ or . character. The conf reading engine fails to load when lines like that are there. So to fix that, I simply add a : no-op to each of them.
@jfoug commented on GitHub (Apr 11, 2016):
Pull request created: https://github.com/magnumripper/JohnTheRipper/pull/2113
This fully works, without any adjustments of the existing HC files. Also includes documentation on what new rules there are, and how to 'link' the .rule files into john. We really can not link them in by default, since we do not ship the .rule files. However, the user can easily link them into his john-local.conf file.
@jfoug commented on GitHub (Apr 12, 2016):
I feel good about this patch, all testing I have tossed at it appears to work just fine. This should handle both PwP and HC rules, since (from atom), HC rules are simply PwP rules.
Thus, now john should handle all of them, along with rules that are only in john, AND the rpp which is only in john.
I will wait a bit to merge this, in case someone still have an issue, but I have only gotten a couple of responses on requests, and ALL of them are 'lemme at it!' type responses. Ppl want this, so I really do not want to hold it up too long.
@frank-dittrich commented on GitHub (Apr 12, 2016):
A good test would be to run a large enough sample of fast hashes against a large enough set of rules, especially those with different semantics (character positions start from 0 or 1 etc.) with a small word list, once using hashcat (or oclHashcat), and once JtR (in "hashcat" mode), and compare the results.
I know that @magnumripper is quite familiar with hashcat, but he is rather busy.
Anybody else who could do that test?
@jfoug commented on GitHub (Apr 12, 2016):
I tested using --stdout on both tools (very small word set). I am pretty comfortable that I have captured the logic/nuances of HC and hopefully thus, PwPro.
There are still differences. I was not going to put in the 'bug' (IMHO), that HC has of not preparing the memory element at start. It puts random crap out there (old stack??) if memory is used prior to a M command. John defines that M is called by default for every word prior to the rules starting.
The other difference I saw was in different buffer sizes. Other than that, I believe I have captured the rules properly, and the nuances of a few commands being processed slightly differently on edge conditions.
I am not nearly as worried about the logic. I am more concerned that people will have issues with the plumbing such as the !! HashCat logic ON/OFF or handling of +, L, R, etc which are the already assigned commands.
@jfoug commented on GitHub (Apr 12, 2016):
The lack of rpp and lack of type classes when loading HC files, and handling things like naked [ ] ? \ chars is some of the stranger things, for anyone who knows how john does both .conf files, and john rules/rpp. Also the lack of file loading is a difference, but if the [List.Rules:file] HC-ON .include 'file.rule' HC-OFF method is used, then none of these side effects should ever rear their head.
I have things 'right', but I did add a warning to the dox. I was using a '!! HashCat logic ON` on some rules I wrote doing a lot of [ and ] and I did not want to escape them. well I forgot to turn this off, and had some really ugly somewhat hidden side effects, since it kind of screwed up the .conf file reading/parsing John was running, but thing were not working as I hoped, and unfortunately some side effects were only being displayed in the .log file, and when running -verb=4 or higher. Thus I added a warning to the dox.
@frank-dittrich commented on GitHub (Apr 13, 2016):
May be it would be good to report this hashcat bug.
@jfoug commented on GitHub (Apr 13, 2016):
It may not be bug. It requires CPU cycles which are almost never used. It is much easier to simply NOT load memory unless the user later wants to use it.
In john it is documented to happen at the start of each word in a rule, and it also sets m and l now for HC, I really do not know if m or l are 'valid' either without a M command happening. I am not 100% worried about changing tools to eliminated all of these nuances. For 99.99% of the real work being done by users, it will not matter at all.
@solardiz commented on GitHub (Apr 14, 2016):
Jim, JFYI, the "l" and "m" variables are in fact valid without a "M" command. They are documented as "initial or updated word's length" and "initial or memorized word's last character position", respectively. The documentation also says that "the initial value of "m" (last character position) is one less than that of "l" (length)".
Some assorted observation on your hashcat rules support addition:
Overall, we should have this functionality indeed. However, I think rather than hack the config file loader, it might be better to limit the config file supported functionality to whatever is not conflicting with what we have. For the rest of hashcat rules, only support them if properly escaped (for our config file) or if loaded from an external file (a file containing hashcat rules only, like hashcat itself accepts).
Are we still missing the 'O' command (for "omit"), as negotiated with hashcat via Twitter a few months ago? hashcat had wrongly defined 'x' to mean omit instead of extract, and has since corrected it to be same as in Crack and JtR, and introduced 'O' to mean what 'x' used to mean in older hashcat. We should also introduce 'O'. And we should keep in mind that older hashcat rulesets mean 'O' where they write 'x'.
We just gained doc/RULES-HashCat, and it spells "HashCat" that way, with two caps, inside the file as well. I think this isn't their preferred spelling, is it? Perhaps correct it to just "hashcat".
@jfoug commented on GitHub (Apr 14, 2016):
For john. (I do know know logic for HC for l or m).
I do know that HC added 4 and 6 rules (which stick memory to head and tail). There are rules in HC's ruleset where a 4 or 6 is being used prior to a M (in fact as the first command on a couple). HC (at least the command line using --stdout) outputs garbage (but repeatable). John outputs expected data. Even in HC mode, I did not try to mimic the 'bug', since it may be done by design (speed up), and since it is stack or heap stuff, I am not sure it would be the same for different builds of HC. So since john 'defines' that an implicit M is done prior to the start of the rule, the same logic will be provided no matter if in normal or HC mode.
Then you would get almost nothing....... The biggest differences are:
Why limit, when I have gotten 100% coverage? Yes, there 'is' some slight ambiguity on commands such as R and L if NOT being told we are in a specific hashcat mode. R and L are jtr specific, but used as something different on both HC and ISP. I use the fact that JTR is R and L and HC/ISP is RN LN Thus, if the byte following the R or L is 0 to 9 and not in single mode, then I assume it is the HC byte shift command.
The 'hack' to .config comes from 2 things in john. First is a leading [ in a .conf file is viewed as a start of a section. And what appears between the [ and ] is free form, it is pretty hard to try to figure out if it was a section, an invalid section, or a HC rule that started with a [ character. As for the leading . first off, that is a jumbo only addition, and one that I added. It DOES have a very easy to spot form, and thus, it was pretty easy to work around this case.
I did not see the 'O' command in their wiki (that was the only dox I was using). If there are missing commands, it will take just moments to get them into the rules.
All of the rulesets I have worked with are from their current github, and thus, I would assume are 'current' and do not use the 'x' as 'O'. I will NOT add logic to mimic the older broken 'x' logic.
Dox can easily be updated. I will ask what is preferred.
@jfoug commented on GitHub (Apr 14, 2016):
As for the 'hacks' atom refused to make the change to the .rule files in github. I do agree with his logic, since he is using rules straight from ISP. So I made the small config changes, and now john can handle these just fine.
One 'other' benefit, is that if you have a 'lot' of [ or ] commands (which I am finding are VERY VERY powerful in single mode), then you can simply jump into HC mode, output those rules without the need for escaping, and then leave HC mode and have sections work again.
Take for instance this pair of rules (Note, this one can NOT be done in HC mode, since I need the rpp)
I have about 50k of these back to back ;) It would be SOOOO nice to be able to do that without the escape characters.
This would be 'so' much nicer for the above rules, but the escapes (which does make the rpp easier internally) do not allow for it. yes, I know, this would be getting my cake, and eating it too, lol. (rpp logic without rpp constraints).
I guess one way to do this is sort of what we have done with the A rule allowing the user to define his quoting character. it would be nice to have a pragma that allowed the rpp to switch what characters were used for [ or ]
@jfoug commented on GitHub (Apr 14, 2016):
@solardiz
What is the exact logic (and syntax) of the O command ?
I see you also listed as possibly using the e as antiTitleCase. I was hoping to use e as eC and e?C which would allow things other than a space/tab to trigger casing (thus, in HC, they would have to have multiple eC rules, and would not be able to have multiple possible characters triggering casing, but other than that, they would get some of the usefulness). I think the most useful would be for user classes (but you could also use ?s ?p, etc), so you could define:
But this logic would not have to be the 'e' command if you wanted to do e=antiTitleCase. I will hold up on adding that rule, until I hear one way or the other what was agreed to .
@frank-dittrich commented on GitHub (Apr 15, 2016):
I'd also say, we don't need e in addition to E. You can just use Et
@jfoug commented on GitHub (Apr 15, 2016):
Et vs e for 'anti-title' sounds fine for me. I would like to propose that eC and e?C be used as a title case with an adjustable alphabet. The title case seems very powerful, especially for single mode. But limiting it to just the space character as a separator seems short sighted.
So in the end E would simply be a alias for e[ ] with the e rule being considerably more powerful. In reality, the code for E may go away, and E simply sets the character value to ' ' and jumps into the non class section of the e rule's processing code.
@jfoug commented on GitHub (Apr 17, 2016):
I have added the ONM logic (omit)
dd534ce. I used the exact same 'edge' conditions as seen in hashcat-cli64. That is where both N and N+M are within range (i.e. the full omitted block must be part of the word). Here is an example:In this case, the first value 012345 is left intact, and not cut to 012.
This same edge condition is used for the 'x' command IF we are in hashcat logic mode. In normal jtr mode,
$ echo 012345 | ../run/john -pipe -stdout -rules=:x34gives 345 while the same word/rule in hashcat logic would return original string of 012345 since the range extended outside of the existing word.For the O rule, I simply adopted the HC logic, of validating the entire range, so that we have only one logical result for the O rule between the 2 programs.
@solardiz commented on GitHub (Apr 17, 2016):
When @hashcat added the 'O' command for "omit" and adjusted 'x' to be same as ours, I think the intent was for it to be literally same as ours - including the edge cases. I guess atom might want to fix hashcat's different handling of the edge cases in 'x' as a bug now, and maybe make 'O' consistent with that too, although it's now up to him since hashcat was first to actually implement 'O'. In general, JtR's approach to handling out-of-range character positions is "best effort", whereas hashcat's appears to be "leave word as-is on any error". I think for password cracking "best effort" is likely more suitable, since leaving the word as-is is more likely to produce duplicate candidate passwords.
@jfoug commented on GitHub (Apr 17, 2016):
I agree that the 'best effort' is the better choice for this application. However, at this time, I built the code to do exactly what was there.
Removing these edge issues would be easy. There are 3 of them (well, if you count the new 'O' command).
x, O and i
@jfoug commented on GitHub (Apr 17, 2016):
I can easily make all of these changes now, if you would like me to.
Then when atom changes to 'best case', the tools will be in sync. For x and i, I simply have to remove the if(hc_mode) logic and go back to original jtr design. For O I simply only look at the pos in the if statement.
@jfoug commented on GitHub (Apr 17, 2016):
You might be backwards on logic here (at times)
input file:
0123
01234
012345
0123456
01234567
012345678
0123456789
rule O23
'best case' edge rules
012
012
012
0126
01267
012678
0126789
'leave alone' edge rules
0123
01234
012
0126
01267
012678
0126789
Now, for the way 'john' is implemented, this will produce no duplicates for this one rule, since john has 'uniq' logic built in (not unique, but uniq). hashcat does not have that logic, so if they change, they will produce dups. Same for the x command
This may be why the tools produce slightly different candidates, and why atom may chose to not handle them in exactly the same manner.
@frank-dittrich commented on GitHub (Apr 17, 2016):
OTOH, it is reasonable to expect that before applying the O23 rule to a word list, the user has already used that word list without any rules.
@frank-dittrich commented on GitHub (Apr 17, 2016):
May be the support of hashcat rules (and the remaining differences / edge cases) should be announced in the hashcat forum.
@jfoug commented on GitHub (Apr 17, 2016):
Agreed, so lack of mangling, when there can be some, is almost certainly wasted cycles, while doing some modification does have a chance of producing a new to be tested word.
But really, this is one of the reasons for using > rejection wherever needed, AND to have these edge conditions known, so that the > can be properly used to optimize results.
@jfoug commented on GitHub (Apr 17, 2016):
https://hashcat.net/forum/thread-5401-post-29151.html#pid29151
@solardiz commented on GitHub (Apr 17, 2016):
What about 'o', 'D', 'T', 'X', '='?
No, let's wait to hear from @hashcat first. Thank you for bringing this up on their forums.
There are also some other issues I have not yet commented on or haven't yet spoken on strongly enough:
My idea for 'e' was definitely not good enough (not worth spending a command character on) - I agree we can just use "Et" for that (and can even optimize this special case in the code if we like - maybe later). Jim, your idea for 'e', which you implemented, is much better. It makes me thinking what command character we'd (eventually) use for executing an external mode function from a ruleset, though - 'e' could have stood for "external" - but perhaps this should in fact be a separate topic, as it does make a lot of sense for 'e' to be related to 'E' rather than something entirely different. So luckily, even though I feel I wasn't given enough chance to comment (and we also didn't give @hashcat much chance to comment, which isn't great either), I agree with your choice here.
As to your hacking the loader to embed preprocessor-disabled hashcat rulesets directly in JtR .conf files, I disagree. Please consider this change NAK'ed upstream, not ever planned for inclusion in the core tree. Indeed, you might not care. What I think we should have done instead is support loading of full hashcat rulesets from external files only - that is, a separate command-line option or/and .conf file include directive sub-syntax to tell JtR to load that one file as hashcat rather than as JtR rules. For ruleset-only files (as opposed to arbitrary included .conf file portions), we could also support syntax similar to yours, but perhaps one that hashcat already treats as a comment - then both tools could read the same file with no edits and process it in exactly the same way.
I don't oppose being able to switch the behavior of rule commands between JtR and hashcat from within a ruleset as well (including from one that is embedded in a JtR .conf file), but only to the extent of individual commands' behavior, and not disabling the preprocessor, nor affecting the config file loader's whitespace trimming.
That said, I appreciate you working on this (and I realize that ideally I should have taken care of it myself a lot sooner). Thank you!
@jfoug commented on GitHub (Apr 17, 2016):
As for the whitespace trimming, actually, it is not HC only 'requirement'. Within john it is absolutely valid for rules to end with a space. Take for instance
Which shows that
$is perfectly valid rule. However, if that same rule$ended the line (i.e. a space was in the rule ending the line), then the config.c trim() ate that space, and john rpp would die seeing only the '$' character. I changed this behavior because there were many instances of this exact thing happening within the existing hashcat rulesets.As for the flags to go into or out of hashcat mode, the flags pretty much are needed.
I do not 'document' this at all. I document adding a section, setting a flag, doing a .include, and then unsetting the flag. Yes, you 'can' set the flag and get the side effect of the rpp being disabled (along with escape requirements removed), but that was not documented anywhere other than on this post, as I also find it to have an unpleasant taste.
I also purposely document to use this in the john-local.conf file, NOT in john.conf. This is a totally independent conf file, wholly owned and maintained by the user and NEVER touched by john.
As for independently loaded full .rule files, that certainly would have been an option. It would have had to be done after the normal config_init() call (or wherever the john.conf gets loaded). We would have had to allow the user to specify the section name (or hard code it to [List.Rules:hashcat] or something). That is not a bad option either, and if you are looking at doing that for core, then by all means, jumbo would support that also. As for core, I do not think you handle .include syntax anyway, so that is already out of the question.
@jfoug commented on GitHub (Apr 17, 2016):
I will fully test these others:
for edge conditions, to see if they produce the same. I am pretty sure 'o' does.
@jfoug commented on GitHub (Apr 17, 2016):
Edge conditions for 'o', 'D', 'T', 'X', '='
'o' Same behavior
'D' Same behavior
'T' Same behavior
'X' I get a syntax error from MX04z from hashcat, does it not support X ?
I changed hashcat rule to this: MX043 and when run, abc does not get output at all. It looks like lengths such as z, l, m, etc, are not recognized by hashcat either, so this is yet another difference, BUT not something that generally is an issue for us reading their rules file. So in this case, when the range goes outside of limits hashcat returns nothing (good to avoid dupes).
BUT 'X' is another edge condition difference.
'=' Same behavior There is no way to match an out of bounds character.
Also, lack of l m p z lengths are differences, but not sure it is worth 'noting'.
@solardiz commented on GitHub (Apr 17, 2016):
It certainly is valid to end a rule command with a whitespace character, which may be part of the command. However, I do not want us to support ending config file lines with meaningful whitespace, as this is a source of problems e.g. when copy-pasting rulesets or when retyping a rule from some mailing list message or tutorial. I understand that you only enable this for hashcat rules mode (right?), yet I dislike having any differences in the config file parser depending on what kind of rules it parses.
Regarding independently loaded rule files: there should be no section names in/for those.
Yes, there's currently no .include support in core, but I might add it.
@frank-dittrich commented on GitHub (Apr 17, 2016):
@jfoug Try if hashcat's X starts counting positions at 1 instead of 0.
@jfoug commented on GitHub (Apr 17, 2016):
@frank-dittrich it is the lack of 'z' MX043 worked just fine (for words longer than 3).
No, it is universal. I did have to re-enable full trim for most thing, since it is used for cutting of things like names, params ,etc. However, for lines being read from the file, if there are trailing spaces or tabs, then 1 is left.
Then this would simply take the place of 'Wordlist' rule in core, and then be THE rule used in jumbo? That would require additional things to happen within jumbo, since we allow the rule name to be given on command line, which in this case would not be valid.
@solardiz commented on GitHub (Apr 17, 2016):
That's even worse.
Yes, but we may also support multiple rulesets specified on the command line at once.
We need to support reading rules from 3 places: sections (including with/through .include's, which is handled by the config file parser), files given on the command-line, and direct command-line arguments.
P.S. I still find commenting on GitHub issues less convenient than using our mailing lists - in particular, it's more distracting from other work I am trying to do. So I will likely not comment more in this thread at least today.