From bcbaef3853ba0f7a9926db40ae07649ad2ab2dc7 Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 28 Dec 2018 13:20:20 +0100 Subject: [PATCH] Fix maximum password and salt length in -m 23 --- tools/test_modules/m00023.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/test_modules/m00023.pm b/tools/test_modules/m00023.pm index c99a74870..bea2d24a1 100644 --- a/tools/test_modules/m00023.pm +++ b/tools/test_modules/m00023.pm @@ -10,17 +10,17 @@ use warnings; use Digest::MD5 qw (md5_hex); -sub module_constraints { [[0, 256], [0, 248], [0, 55], [0, 47], [0, 55]] } +sub module_constraints { [[0, 248], [0, 248], [0, 47], [0, 47], [0, 47]] } sub module_generate_hash { my $word = shift; my $salt = shift; - # we need to reduce the maximum salt buffer size by 8 since we + # we need to reduce the maximum password and salt buffer size by 8 since we # add it here statically - my $digest = md5_hex ($salt . "\nskyper\n" . $word); + my $digest = md5_hex ($salt . "\nskyper\n" . $word); my $hash = sprintf ("%s:%s", $digest, $salt);