Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 5 May 2013 11:02:40 +0200
From: Smiling Wolf <lupo996@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: Paths rework

All,
YES!!! This is exactly the kind of input/suggestions/whatever I was looking for!

2013/5/4  <jfoug@....net>:
>
> ---- Frank Dittrich <frank_dittrich@...mail.com> wrote:
>> On 05/04/2013 07:19 AM, Alexander Cherepanov wrote:
>> An alternative would be to make all the (default) subdirectories
>> configurable.
>>
>> Invent a new john.conf section, and add variables which point to the
>> appropriate directories per file type.
>
> IMHO, I did not think the old way was all that bad, with the exception of the log/pot/rec files, i.e. temp files.
>
> However, if we are proposing changes, then how about:
>
> 1. make $JOHN be the base directory of john, (under .current /src and ./run)
Done.

> 2. place john.conf into this dir (i.e. base dir, the new $JOHN).
Done.

> 3. add a new section to john.conf, that sets required location information for all other items.
Done.

> 4. place all executable files in 1 directory.  Whether it is run or bin, I do not care, but convention is bin.
Done. I'm using $JOHN/bin.

> 5. make whatever changes are required in john executable or any other supporting executable to make sure they honor this.
Working on this right now. ATM john loads the configs from $JOHN and
$ ../bin/john --list=ext-modes
works perfectly, next I've got to work to make it honor the new
variables in john.conf for the other files (charsets, *.log, *.pot,
etc.)

> 6. if partial path file names are given on command line (i.e -pot=jims.pot -wo:mybig_list.dict), then john would search in the dir listed in the john.conf section.
> 7. have a env var  JOHN_LOCAL_CONF_DIR, and have john and other 'tools' honor that.  In fact the bottom local file include could be .include "$JOHN_LOCAL_CONF_DIR/john.local.conf"  If JOHN_LOCAL_CONF_DIR is not set in env, then JOHN_LOCAL_CONF_DIR would fallback to $JOHN

Should we keep the cuda and opencl kernels dir under bin or make a
specific directory for them (e.g. $JOHN/kernels)?

*hat tip*,
SmilingWolf

Powered by blists - more mailing lists

Your e-mail address:

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