Date: Mon, 7 May 2012 12:02:49 +0400 From: Aleksey Cherepanov <aleksey.4erepanov@...il.com> To: john-users@...ts.openwall.com Subject: Re: file name expansion for --wordlist= and file name starting with ~ On Sun, May 06, 2012 at 02:52:47PM -0600, Stephen John Smoogen wrote: > On 6 May 2012 13:59, Frank Dittrich <frank_dittrich@...mail.com> wrote: > > did anybody else of you notice that for --wordlist=filename, even bash > > auto-completion for file names starting with ~/ or ~user works, but john > > fails to recognize e.g. --wordlist=~/test.txt? It does not work for me too. $ bash --version GNU bash, version 4.2.20(1)-release (x86_64-pc-linux-gnu) ... $ apt-cache show john Package: john Version: 1.7.8-1 ... Filename: pool/main/j/john/john_1.7.8-1_amd64.deb ... > Works for me, which says that the problem is either with your shell or > depends on the version of john you have. Neither of which you say. > > $ john --session=DD --wordlist=~/x --pot=xyz.pot --format=raw-md5 y000 > Loaded 10 password hashes with no different salts (Raw MD5 [SSE2i 10x4x3]) > guesses: 0/80 time: 0:00:00:00 DONE (2012-05-06 14:51) c/s: 285 > trying: redhat - rhel > $ rpm -q bash john > bash-4.1.2-8.el6.x86_64 > john-1.7.9-1jumbo5.el6.x86_64 > > So something in your shell is not expanding the items when it hands it > off to the program. I do not think that shell should expand this. I think it should expand ~ only at the begin of argument: $ perl -le 'print "@ARGV"' 1 ~ 2 --wordlist=~ 3 ~/x 4 -w=~/x 5 1 /home/a 2 --wordlist=~ 3 /home/a/x 4 -w=~/x 5 Does your shell do the same? 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.