Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 24 Oct 2013 12:34:28 -0400
From: Rich Rumble <richrumble@...il.com>
To: john-users@...ts.openwall.com
Subject: Knownforce mask

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) {
        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;
    }
    while (pos = 3) {
        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;
    }
    while (pos = 4) {
        ofs = pos++ << 8;
        i = 0;
        c = '0';
        while (c <= '9')
            charset[ofs + i++] = c++;
        charset[ofs + i] = 0;
    }

    while (pos > 4) {
        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;
    }
-rich

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.