Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 7 May 2015 21:27:58 +0300
From: Aleksey Cherepanov <lyosha@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: Re: Session names somename.[0-9]+ shouldn't be allowed

On Thu, May 07, 2015 at 08:23:24PM +0300, Shinnok wrote:
> 
> > On May 7, 2015, at 8:04 PM, Mathieu Laprise <mathlaprise@...il.com> wrote:
> > 
> > On Thu, May 7, 2015 at 12:45 PM, Shinnok <admin@...nnok.com <mailto:admin@...nnok.com>> wrote:
> > I agree. I was more hinting Mathieu at the fact that we should use http://doc.qt.io/qt-5/qstandardpaths.html <http://doc.qt.io/qt-5/qstandardpaths.html> to figure out where to store Johnny's stuff cross-platform.
> > Weather that'd be just .ini settings or include sessions too remains to be decided as a result of this thread.
> > 
> > Yes, I'll keep an eye on this thread to modify Johnny if it is decided to not permit dot.
> > PS : This doc page is a good reference for further uses. Right now we use QDir::home() (same as QStandardPaths::HomeLocation) + /.john/.
> 
> On a second thought, we can fix this properly right now.

john installed from distro uses ~/.john to write and /etc/john to read
system wide configuration if it does not find local config file.

$ /usr/sbin/john
John the Ripper password cracker, version 1.8.0
[...]
$ strace /usr/sbin/john 2>&1 | grep 'open('
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libnss_compat.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libnss_nis.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
open("/home/a/.john/john.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/a/.john/john.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/john/john.conf", O_RDONLY)   = 3

Thanks!

-- 
Regards,
Aleksey Cherepanov

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.