mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 15:18:16 +00:00
Test module variable scope fix
This commit is contained in:
parent
61ac3e3282
commit
5adb941f9a
@ -81,8 +81,8 @@ sub module_generate_hash
|
|||||||
|
|
||||||
my $b_ke = $cbc->encrypt ($b_nfolded2, $b_key_bytes, $b_iv);
|
my $b_ke = $cbc->encrypt ($b_nfolded2, $b_key_bytes, $b_iv);
|
||||||
|
|
||||||
my $cleartext_ticket = '68c8459f3f10c851b8827118bb459c6e301aa011180f323031'.
|
my $cleartext_ticket = '';
|
||||||
'32313131363134323835355aa10502030c28a2';
|
my $check_correct = 0;
|
||||||
|
|
||||||
if (defined $enc_timestamp)
|
if (defined $enc_timestamp)
|
||||||
{
|
{
|
||||||
@ -119,6 +119,7 @@ sub module_generate_hash
|
|||||||
|
|
||||||
$check_correct = ($checksum eq byte2hex(substr $b_checksum, 0, 12));
|
$check_correct = ($checksum eq byte2hex(substr $b_checksum, 0, 12));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($check_correct != 1)
|
if ($check_correct != 1)
|
||||||
{
|
{
|
||||||
@ -132,7 +133,6 @@ sub module_generate_hash
|
|||||||
|
|
||||||
$checksum = byte2hex(substr $checksum, 0, 12);
|
$checksum = byte2hex(substr $checksum, 0, 12);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
# CTS Encrypt our new block
|
# CTS Encrypt our new block
|
||||||
my $len_cleartext_last_block = length($cleartext_ticket)%32;
|
my $len_cleartext_last_block = length($cleartext_ticket)%32;
|
||||||
|
@ -85,8 +85,9 @@ sub module_generate_hash
|
|||||||
my $b_ke = $cbc->encrypt ($b_nfolded2, $b_key_bytes, $b_iv);
|
my $b_ke = $cbc->encrypt ($b_nfolded2, $b_key_bytes, $b_iv);
|
||||||
|
|
||||||
$b_ke = $b_ke . $cbc->encrypt ($b_ke, $b_key_bytes, $b_iv);
|
$b_ke = $b_ke . $cbc->encrypt ($b_ke, $b_key_bytes, $b_iv);
|
||||||
my $cleartext_ticket = '68c8459f3f10c851b8827118bb459c6e301aa011180f323031'.
|
|
||||||
'32313131363134323835355aa10502030c28a2';
|
my $cleartext_ticket = '';
|
||||||
|
my $check_correct = 0;
|
||||||
|
|
||||||
if (defined $enc_timestamp)
|
if (defined $enc_timestamp)
|
||||||
{
|
{
|
||||||
@ -123,6 +124,7 @@ sub module_generate_hash
|
|||||||
|
|
||||||
$check_correct = ($checksum eq byte2hex(substr $b_checksum, 0, 12));
|
$check_correct = ($checksum eq byte2hex(substr $b_checksum, 0, 12));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($check_correct != 1)
|
if ($check_correct != 1)
|
||||||
{
|
{
|
||||||
@ -136,7 +138,6 @@ sub module_generate_hash
|
|||||||
|
|
||||||
$checksum = byte2hex(substr $checksum, 0, 12);
|
$checksum = byte2hex(substr $checksum, 0, 12);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
# CTS Encrypt our new block
|
# CTS Encrypt our new block
|
||||||
my $len_cleartext_last_block = length($cleartext_ticket)%32;
|
my $len_cleartext_last_block = length($cleartext_ticket)%32;
|
||||||
|
Loading…
Reference in New Issue
Block a user