From edb7ae5658eb4fb306548ea34480bfca80522c4d Mon Sep 17 00:00:00 2001 From: jsteube Date: Mon, 23 Jan 2017 14:19:37 +0100 Subject: [PATCH] Fixed rule 'O' (RULE_OP_MANGLE_OMIT) in host mode in case the offset + length parameter equals the length of the input word Fixes https://github.com/hashcat/hashcat/issues/969 --- docs/changes.txt | 1 + src/rp_cpu.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 2fcf934d3..699671229 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -25,6 +25,7 @@ - Fixed truncation of password after position 32 with the combinator attack - Fixed DEScrypt cracking in BF mode in case the hashlist contains more than 16 times the same salt - Fixed use of option --keyspace in combination with -m 2500 (WPA) +- Fixed rule 'O' (RULE_OP_MANGLE_OMIT) in host mode in case the offset + length parameter equals the length of the input word * changes v3.20 -> v3.30: diff --git a/src/rp_cpu.c b/src/rp_cpu.c index 213c29b8d..bd2eb3d07 100644 --- a/src/rp_cpu.c +++ b/src/rp_cpu.c @@ -199,7 +199,7 @@ static int mangle_omit (char arr[BLOCK_SIZE], int arr_len, int upos, int ulen) { if (upos >= arr_len) return (arr_len); - if ((upos + ulen) >= arr_len) return (arr_len); + if ((upos + ulen) > arr_len) return (arr_len); int arr_pos;