Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 20 Apr 2015 05:55:52 +0300
From: Alexander Cherepanov <ch3root@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: Re: Advice on proposal: John the Ripper jumbo robustness

On 2015-04-18 18:10, Kai Zhao wrote:
> I am glad to show you that I have got 1200~1500 exec/s!

Nice!

> 4. Change source code (3x)
>
> 4.1 git diff
> ---------------------------------------------------------------------------
> diff --git a/src/john.c b/src/john.c
> index 0c730ff..6dc7fe8 100644
> --- a/src/john.c
> +++ b/src/john.c
> @@ -270,7 +270,8 @@ static void john_register_all(void)
>          // to dynamic.
>          // Since gen(27) and gen(28) are MD5 and MD5a formats, we build the
>          // generic format first
> -       cnt = dynamic_Register_formats(&selfs);
> +       // cnt = dynamic_Register_formats(&selfs);
> +       cnt = 0;
>
>          john_register_one(&fmt_DES);
>          john_register_one(&fmt_BSDI);

This can be done with configure:

./configure CFLAGS=-DDYNAMIC_DISABLED

> @@ -1673,6 +1674,7 @@ int main(int argc, char **argv)
>          }
>   #endif
>          john_init(name, argc, argv);
> +       return 0;
>
>          /* Placed here to disregard load time. */
>   #if OS_TIMER

How much speed does this change add?

Then please find where the next bottleneck is.

-- 
Alexander Cherepanov

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ