>From db032e7d31be01aa45caf7143a1451e61473f3f9 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 | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/john.c b/src/john.c index 7e809c8..ab5c6fc 100644 --- a/src/john.c +++ b/src/john.c @@ -817,7 +817,15 @@ 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, binary_hash, salt_hash, set_key,"); + puts("set_key, clear_keys, crypt_all, get_hash, cmp_all, cmp_one, cmp_exact,"); + puts("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