|
|
Message-ID: <CANWtx03JTDzNLrPr1GzGfrbyruPG5wi1fDnZs6c8i_5giNd6GQ@mail.gmail.com>
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.