Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sat, 10 Dec 2011 12:22:44 +0100
From: magnum <>
Subject: Re: Dynamic bash-completion scripts for JtR

2011-12-09 17:47, Lukas Odzioba wrote:
> I found feature from topic on JtR whish-list. I want to do it, and
> maybe some of you have got any interesting ideas, or something I
> should now before I'll start?

That would be awesome! I don't know much about how these things work but
I suppose you'll just need to write a couple clever bash functions that
can process the usage blob from john to get a list of supported options
and formats. I believe a simple example is /etc/bash_completion.d/make
and a more advanced and powerful one is /etc/bash_completion.d/git

Some things will be simple (like completing an option, --ru<TAB>) while
others may be very tricky (like completing an option argument like
--rules=know<TAB>). For the latter, you'll need to parse the right
john.conf and possibly even follow .include lines in it...

I'm not sure how you would *know* where to find john.conf in case john
is compiled with JOHN_SYSTEMWIDE=1.

This will probably be an interesting project!


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.