Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 25 Oct 2013 20:45:32 +0400
From: "Sergey V." <sftp.mtuci@...il.com>
To: john-users@...ts.openwall.com
Subject: Re: Knownforce mask

On 2013-10-24 at 12:34:28, Rich Rumble <richrumble@...il.com> wrote:
> I'm trying to do this pattern in known force
> digit, digit, alpha, alpha, digit, alpha, alpha
> It doesn't error, but it also don't produce anything to stdout, I bet I'm
> over complicating it.
> john.exe -stdout -external=knowforce-mask
> 
> Relevant code is:
> length = 7;
> 
> pos = 0;
>     while (pos <= 1) {
>         ofs = pos++ << 8;
>         i = 0;
>         c = '0';
>         while (c <= '9')
>             charset[ofs + i++] = c++;
>         charset[ofs + i] = 0;
>     }
>     while (pos = 2) {
Here (and below in other while()s) you need to use "==" for compare, no?
I believe external mode language have C-like syntax.
>         ofs = pos++ << 8;
>         i = 0;
>         c = '0';
>         while (c <= '9')
>             charset[ofs + i++] = c++;
>         c = 'A';
>         while (c <= 'z')
>             charset[ofs + i++] = c++;
>         charset[ofs + i] = 0;
>     }
> [...]

Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.