From ab5ecd8eaacf6860468b779c165ee7b04448ae6d Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sat, 6 Feb 2016 23:22:26 +0100 Subject: [PATCH] Fix some updated buffer sizes and new optimizer descriptions --- include/shared.h | 4 ++++ src/oclHashcat.c | 4 ++-- src/shared.c | 14 +++++++++----- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/include/shared.h b/include/shared.h index 9bf5cc1..3cd4812 100644 --- a/include/shared.h +++ b/include/shared.h @@ -1628,6 +1628,10 @@ extern hc_thread_mutex_t mux_display; #define OPTI_STR_SINGLE_SALT "Single-Salt" #define OPTI_STR_BRUTE_FORCE "Brute-Force" #define OPTI_STR_RAW_HASH "Raw-Hash" +#define OPTI_STR_USES_BITS_8 "Uses-8-Bit" +#define OPTI_STR_USES_BITS_16 "Uses-16-Bit" +#define OPTI_STR_USES_BITS_32 "Uses-32-Bit" +#define OPTI_STR_USES_BITS_64 "Uses-64-Bit" /** * hash options diff --git a/src/oclHashcat.c b/src/oclHashcat.c index e4eaca5..7372980 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -11606,7 +11606,7 @@ int main (int argc, char **argv) if (hash_mode == 6800) { - if (i < 48) // 48 = 12 * uint in salt_buf[] + if (i < 64) // 64 = 16 * uint in salt_buf[] { // manipulate salt_buf memcpy (hash_buf.salt->salt_buf, line_buf, i); @@ -11618,7 +11618,7 @@ int main (int argc, char **argv) } else if (hash_mode == 2500) { - if (i < 48) // 48 = 12 * uint in salt_buf[] + if (i < 64) // 64 = 16 * uint in salt_buf[] { // here we have in line_buf: ESSID:MAC1:MAC2 (without the plain) // manipulate salt_buf diff --git a/src/shared.c b/src/shared.c index de0fb2e..baa7d92 100644 --- a/src/shared.c +++ b/src/shared.c @@ -4320,7 +4320,7 @@ int sort_by_salt (const void *v1, const void *v2) uint n; - n = 12; + n = 16; while (n--) { @@ -4350,7 +4350,7 @@ int sort_by_salt_buf (const void *v1, const void *v2) const salt_t *s1 = h1->salt; const salt_t *s2 = h2->salt; - uint n = 12; + uint n = 16; while (n--) { @@ -4370,7 +4370,7 @@ int sort_by_hash_t_salt (const void *v1, const void *v2) const salt_t *s2 = h2->salt; // testphase: this should work - uint n = 12; + uint n = 16; while (n--) { @@ -4403,8 +4403,8 @@ int sort_by_hash_t_salt_hccap (const void *v1, const void *v2) const salt_t *s1 = h1->salt; const salt_t *s2 = h2->salt; - // 12 - 2 (since last 2 uints contain the digest) - uint n = 10; + // 16 - 2 (since last 2 uints contain the digest) + uint n = 14; while (n--) { @@ -5540,6 +5540,10 @@ char *stroptitype (const uint opti_type) case OPTI_TYPE_SINGLE_SALT: return ((char *) OPTI_STR_SINGLE_SALT); break; case OPTI_TYPE_BRUTE_FORCE: return ((char *) OPTI_STR_BRUTE_FORCE); break; case OPTI_TYPE_RAW_HASH: return ((char *) OPTI_STR_RAW_HASH); break; + case OPTI_TYPE_USES_BITS_8: return ((char *) OPTI_STR_USES_BITS_8); break; + case OPTI_TYPE_USES_BITS_16: return ((char *) OPTI_STR_USES_BITS_16); break; + case OPTI_TYPE_USES_BITS_32: return ((char *) OPTI_STR_USES_BITS_32); break; + case OPTI_TYPE_USES_BITS_64: return ((char *) OPTI_STR_USES_BITS_64); break; } return (NULL); -- 2.25.1