>From 2a806c5f26af25672d3ba6a9e12d26984158fc3e Mon Sep 17 00:00:00 2001 From: Frank Dittrich Date: Tue, 3 Jul 2012 14:47:51 +0200 Subject: [PATCH] Add --list=format-methods:?, for a list of supported methods --- src/john.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/john.c b/src/john.c index 7e809c8..5aa446a 100644 --- a/src/john.c +++ b/src/john.c @@ -817,7 +817,14 @@ static void john_init(char *name, int argc, char **argv) exit(0); } if (options.listconf && - !strncasecmp(options.listconf, "format-methods", 14)) { + (!strncasecmp(options.listconf, "format-methods:?", 16) || + !strncasecmp(options.listconf, "format-methods=?", 16))) { + puts("init, prepare, valid, split, binary, salt, set_key, get_key, clear_keys,"); + puts("crypt_all, get_hash, cmp_all, cmp_one, cmp_exact, get_source"); + exit(0); + } + else if (options.listconf && + !strncasecmp(options.listconf, "format-methods", 14)) { struct fmt_main *format; format = fmt_list; do { -- 1.7.7.6