Re: Rule AN"STR"
Charles Weir <
cweir@...>
2010-01-01 19:42:53 GMT
Hey W.A.,
I don't have an elegant solution, but I have a good idea what's
happening, and have a kludge. Referring to your original command:
:[lc] A[0-12],[ a-z! <at> €#$%^&*\-=_+.?|)(:'"],
The problem is the A[0-12]. The rule preprocessor essentially treats
this as A[0-1] + A[2], since the '-' only works with one character
values. So that's the problem you are having. Normally you could use
A-Z to specify the numbers 10-35, but playing around with it, when I
tried to use A[0-C], I received the error: "Invalid position code". I
tried to assign a numerical variable, using the vVNM command but still
received the same error when I ran the command using A[0-a].
On a side note, I realize that you were probably using your examples
to demonstrate the idea of what you were trying to do, vs your actual
output, but I have to admit that it caused me a bit of confusion. Aka,
your rule will never create the actual guess "evoluzio99ne". Just to
help anyone else reading this reply, here is a rule breakdown, (and
please note this only works for version 1.7.4 and not earlier versions
of JtR).
: //No-op, necessary since we are starting the rule with a
pre-processor variable
[lc] //preprocessor, to create two rules, first lowercase the guess,
and then create another guess capitalized, aka password, and Password
A[0-9],[ a-z! <at> €#$%^&*\-=_+.?|)(:'"], //this whole command can be
broken down into several parts following the rule:
(Continue reading)