|
Message-ID: <0f934ef85cb9ac9af85c0364130aa7a7@smtp.hushmail.com> Date: Sun, 11 May 2014 01:27:01 +0200 From: magnum <john.magnum@...hmail.com> To: john-dev@...ts.openwall.com Subject: Re: Bad formats, and some ideas on helping in this area On 2014-05-11 01:09, magnum wrote: > On 2014-05-09 19:54, jfoug wrote: >> I would think it easier for a user to add some format >> labels to a list in a conf file, than to try to muck with moving >> files, or >> possibly having to edit other files. > > This should be trivial. I can think of a way of doing it that should be > a one line patch in john.c. I'll try that and see if it flies. It could have been trivial. I did this: static void john_register_one(struct fmt_main *format) { + if (cfg_get_bool("Disabled", "Formats", format->params.label, 0)) + return; + ...and added this to john.local.conf: [Disabled:Formats] rar = Y There is just one problem: john_register_all() is called before cfg_init(). The devil is, like always, in the details. magnum
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.