From 9ac762c2c78c64bb7f281a67d58bb0d076935593 Mon Sep 17 00:00:00 2001 From: philsmd Date: Fri, 13 May 2016 19:02:57 +0200 Subject: [PATCH 1/1] test fix: ArubaOS salts are 8 hexadecimal chars long (4 binary), not 10 (4 binary), because '01' will be appended afterwards (total length is 10) --- tools/test.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test.pl b/tools/test.pl index 9ef274b..598f1b9 100755 --- a/tools/test.pl +++ b/tools/test.pl @@ -2836,7 +2836,7 @@ sub passthrough } elsif ($mode == 125) { - $tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, 10)); + $tmp_hash = gen_hash ($mode, $word_buf, substr ($salt_buf, 0, 8)); } elsif ($mode == 141 || $mode == 1441) { -- 2.25.1