Date: Tue, 8 May 2012 11:57:14 +0200 From: Frank Dittrich <frank_dittrich@...mail.com> To: john-users@...ts.openwall.com Subject: Re: file name expansion for --wordlist= and file name starting with ~ On 05/06/2012 10:52 PM, 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? > > 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. I noticed this behavior for years using various fedora releases and different john versions (but the john version is probably irrelevant, because this is a bash "problem"). $ uname -a Linux fdn.localdomain 3.3.4-3.fc16.i686.PAE #1 SMP Thu May 3 14:54:14 UTC 2012 i686 i686 i386 GNU/Linux $ bash --version GNU bash, version 4.2.24(1)-release (i386-redhat-linux-gnu) > $ 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. Which shell are you using? Bash? Which version? Which is your OS? Is there any bash completion defined for john? What is the output of the following command: complete -p|grep john Or does this work for other commands as well? What is the output of the command Aleksey posted: perl -le 'print "@ARGV"' 1 ~ 2 --wordlist=~ 3 ~/x 4 -w=~/x 5 Regards, Frank
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.