Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 17 Jan 2012 17:48:35 +0100
From: Guth <guth@...posor.com>
To: john-dev@...ts.openwall.com
Subject: getting computed hash value

Hi all,
i'm trying to make some (minor so far) hack on jtr and try to find a way to
get/display the computed hash of any promat from the crk_* functions.
Am I missing the key point ? Or does it requires to patch every format file
to add a get_computed_hash() function such as :

uint format_get_computed_hash(void *return_value) {
if (memcpy(return_value, format_local_storage_of_computed_hash,
size_of_hash))
  return (size_of_hash);

 return (0);
}


ex on MD5:
uint format_get_computed_hash(void *return_value) {
if (memcpy(return_value, crypt_out, BINARY_SIZE))
  return (BINARY_SIZE);

return (0);
}

Thanks.

[ CONTENT OF TYPE text/html SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

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