|
|
Message-ID: <5f4239740906230740r2cdd442cg90c534d70867af34@mail.gmail.com>
Date: Tue, 23 Jun 2009 09:40:39 -0500
From: Minga Minga <mingakore@...il.com>
To: john-users@...ts.openwall.com
Subject: Re: exclude/include charset from all.chr ?
This is not EXACTLY what you are looking for, and is a little bit
wasteful - but it works.
--Minga
# This will only allow passwords with AT LEAST one
# special character, one capital *AND* one number
# ./john -i:all -stdout -session:test.ses
--external:Filter_AtLeastOneCapSpecialNum | strings
[List.External:Filter_AtLeastOneCapSpecialNum]
void filter()
{
int i, c ;
int yesCAP;
int yesNUM;
int yesSPECIAL;
i = 0;
yesCAP = 0;
yesNUM = 0;
yesSPECIAL = 0;
while (c = word[i++])
{
if (c >= 'A' && c <= 'Z') { yesCAP = 1; }
if (c >= '0' && c <= '9') { yesNUM = 1; }
if (c == '!' || c == '$' || c == '@' || c == '#' ) { yesSPECIAL = 1; }
}
if (yesCAP==0 || yesNUM==0 || yesSPECIAL==0) { word = 0; return;}
}
----------
On Mon, Jun 22, 2009 at 8:59 PM, ph3arconf@...il.com<ph3arconf@...il.com> wrote:
> For example at least one special character, one numeric character and
> a combination of lower-upper case characters).
--
To unsubscribe, e-mail john-users-unsubscribe@...ts.openwall.com and reply
to the automated confirmation request that will be sent to you.
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.