1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-03-24 11:25:41 +00:00

Fix some formating for -m 7701 and -m 7801 in test.pl

This commit is contained in:
jsteube 2018-06-12 16:40:20 +02:00
parent fee4cb42cc
commit 215063d0fc

View File

@ -6350,11 +6350,14 @@ sub gen_hash
$a ^= $c;
$b ^= $d;
if ($mode == 7700) {
$tmp_hash = sprintf ("%s\$%08X%08X", $salt_buf, $a, $b);
if ($mode == 7700)
{
$tmp_hash = sprintf ("%s\$%08X%08X", $salt_buf, $a, $b);
}
else {
$tmp_hash = sprintf ("%s\$%08X%08X", $salt_buf, $a, 0);
else
{
$tmp_hash = sprintf ("%s\$%08X%08X", $salt_buf, $a, 0);
}
}
elsif ($mode == 7800 || $mode == 7801)
@ -6402,13 +6405,16 @@ sub gen_hash
$offsetMagicArray += (($e >> 24) & 0xff) % 8;
my $hash_buf = sha1_hex ($word_buf . substr ($theMagicArray_s, $offsetMagicArray, $lengthMagicArray) . $salt_buf);
if ($mode == 7800) {
$tmp_hash = sprintf ("%s\$%s", $salt_buf, uc $hash_buf);
if ($mode == 7800)
{
$tmp_hash = sprintf ("%s\$%s", $salt_buf, uc $hash_buf);
}
else {
$tmp_hash = sprintf("%s\$%.20s%020X", $salt_buf, uc $hash_buf, 0);
else
{
$tmp_hash = sprintf("%s\$%.20s%020X", $salt_buf, uc $hash_buf, 0);
}
}
}
elsif ($mode == 7900)
{
my $cost = 14;