Openwall Project   /home  Owl  JtR  Pro  crypt  pam_passwdqc  tcb  phpass  scanlogd  popa3d  msulogin  /  Linux  BIND  /  advisories  presentations  /  services  donations  /  wordlists  passwords  /  community  lists  wiki  CVSweb  mirrors  signatures
bringing security into open environments
 
Order Openwall Wordlists CD (20+ languages) with delivery worldwide or download
[<prev] [next>] [<thread-prev] [thread-next>] [month] [year] [list]
Date: Thu, 24 Jan 2008 19:57:39 +0300
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re:  question about charsets

On Thu, Jan 24, 2008 at 04:25:30PM +0000, helleye wrote:
> looked in the source
> saw 3d table , guess it is for the 3 last chars , then u decalre an array of 
> that for the next char , but didnt see a different one for each position?

No, you've got it wrong.

The chars[] array declared in inc.c: do_incremental_crack() is indexed
with the position, and the lookup result is a pointer to a 3D array,
which is in turn indexed with 2 preceding character values (ASCII codes
minus CHARSET_MIN) and the index (not directly related to ASCII code)
for the character to be tried.  The final lookup result is the ASCII
code for that character.

-- 
Alexander Peslyak <solar at openwall.com>
GPG key ID: 5B341F15  fp: B3FB 63F4 D7A3 BCCC 6F6E  FC55 A2FC 027C 5B34 1F15
http://www.openwall.com - bringing security into open computing environments

-- 
To unsubscribe, e-mail john-users-unsubscribe@...ts.openwall.com and reply
to the automated confirmation request that will be sent to you.

Hosted by DataForce ISP - Powered by Openwall GNU/*/Linux