Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 19 Jul 2012 12:02:16 +0200
From: Frank Dittrich <>
Subject: RFC: add more information to --list=build-info output?

The recent change of FMT_MAIN_VERSION from 9 to 10 in bleeding-jumbo
inspired me to look at what other information might be useful to see in

I came up with these:

Format interface version: FMT_MAIN_VERSION
Charset file version: CHARSET_V
Max. Markov mode level: MAX_MKV_LVL
Max. Markov mode password length: MAX_MKV_LEN

So, for 1.7.9-jumbo-6-fixes with the attached patch applied, the new
--list=build-info output looks like this:

Version: 1.7.9-jumbo-7RC
Build: linux-x86-sse2i
Arch: 32-bit LE
$JOHN is ./
Format interface version: 9
Rec file version: REC3
Charset file version: CHR2
CHARSET_MIN: 32 (0x20)
CHARSET_MAX: 126 (0x7e)
Max. Markov mode level: 400
Max. Markov mode password length: 30
Compiler version: 4.6.3 20120306 (Red Hat 4.6.3-2)
gcc version: 4.6.3

What do you think?
Should I avoid adding information that is less likely to change (e.g.,
the Markov mode limits)?
Should I put Markov mode limits into one line, to save space for future
Is the charset file version useful at all? I just checked the contest
edition, and the version is still CHR2.

Is there other information which should have been added?


>From 623398d083f4cd2526e257606360dc46d85a3939 Mon Sep 17 00:00:00 2001
From: Frank Dittrich <>
Date: Thu, 19 Jul 2012 10:48:33 +0200
Subject: [PATCH] Add FMT_MAIN_VERSION, CHARSET_V and MAX_MKV_* to build-info

 src/john.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/john.c b/src/john.c
index c5ebcc7..c298aa1 100644
--- a/src/john.c
+++ b/src/john.c
@@ -640,12 +640,16 @@ static void john_init(char *name, int argc, char **argv)
 			puts("Private home: " JOHN_PRIVATE_HOME);
 			printf("$JOHN is %s\n", path_expand("$JOHN/"));
+			printf("Format interface version: %d\n", FMT_MAIN_VERSION);
 			puts("Rec file version: " RECOVERY_V);
+			puts("Charset file version: " CHARSET_V);
 			printf("CHARSET_MIN: %d (0x%02x)\n", CHARSET_MIN,
 			printf("CHARSET_MAX: %d (0x%02x)\n", CHARSET_MAX,
+			printf("Max. Markov mode level: %d\n", MAX_MKV_LVL);
+			printf("Max. Markov mode password length: %d\n", MAX_MKV_LEN);
 #ifdef __VERSION__
 		printf("Compiler version: %s\n", __VERSION__);

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ