fix to crack real hashes

This commit is contained in:
Gabriele Gristina
2021-07-26 23:00:33 +02:00
parent 58bb2b69b4
commit d711c593de
3 changed files with 27 additions and 20 deletions
+3 -3
View File
@@ -11,14 +11,14 @@ use warnings;
use Digest::SHA qw (sha256 sha256_hex);
use Digest::HMAC qw (hmac hmac_hex);
sub module_constraints { [[1, 256], [48, 3000], [-1, -1], [-1, -1], [-1, -1]] }
sub module_constraints { [[8, 256], [48, 3000], [-1, -1], [-1, -1], [-1, -1]] }
sub module_generate_hash
{
my $word = shift;
my $salt = shift;
my $pkt_num = shift // int(rand(99999999));
my $engineID = shift // random_hex_string(6);
my $pkt_num = shift // int(rand(100000000));
my $engineID = shift // random_hex_string(26, 34);
# make even if needed