1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-06-17 13:38:50 +00:00

Comment some pw_min and pw_max ranges for better overview

This commit is contained in:
jsteube 2017-07-03 12:14:15 +02:00
parent bb1341015f
commit 113b8f672f

View File

@ -24513,25 +24513,25 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx)
case 11600: hashconfig->hook_size = sizeof (seven_zip_hook_t); break; case 11600: hashconfig->hook_size = sizeof (seven_zip_hook_t); break;
}; };
// pw_min // pw_min : algo specific hard min length
hashconfig->pw_min = PW_MIN; hashconfig->pw_min = PW_MIN;
switch (hashconfig->hash_mode) switch (hashconfig->hash_mode)
{ {
case 2500: hashconfig->pw_min = 8; case 2500: hashconfig->pw_min = 8; // WPA min
break; break;
case 9710: hashconfig->pw_min = 5; case 9710: hashconfig->pw_min = 5; // RC4-40 min
break; break;
case 9810: hashconfig->pw_min = 5; case 9810: hashconfig->pw_min = 5; // RC4-40 min
break; break;
case 10410: hashconfig->pw_min = 5; case 10410: hashconfig->pw_min = 5; // RC4-40 min
break; break;
case 14000: hashconfig->pw_min = 8; case 14000: hashconfig->pw_min = 8; // DES min
break; break;
case 14100: hashconfig->pw_min = 24; case 14100: hashconfig->pw_min = 24; // 3DES min
break; break;
case 14900: hashconfig->pw_min = 10; case 14900: hashconfig->pw_min = 10; // Skip32 min
break; break;
} }
@ -24560,8 +24560,6 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx)
break; break;
case 1800: hashconfig->pw_max = 16; case 1800: hashconfig->pw_max = 16;
break; break;
case 2100: hashconfig->pw_max = 27;
break;
case 5200: hashconfig->pw_max = 24; case 5200: hashconfig->pw_max = 24;
break; break;
case 5800: hashconfig->pw_max = 16; case 5800: hashconfig->pw_max = 16;
@ -24601,37 +24599,37 @@ int hashconfig_init (hashcat_ctx_t *hashcat_ctx)
} }
} }
// pw_max : algo specific hard limits // pw_max : algo specific hard max length
switch (hashconfig->hash_mode) switch (hashconfig->hash_mode)
{ {
case 1500: hashconfig->pw_max = 8; case 1500: hashconfig->pw_max = 8; // DES max
break; break;
case 2100: hashconfig->pw_max = 64; // PBKDF2-HMAC-SHA1 limit case 2100: hashconfig->pw_max = 64; // PBKDF2-HMAC-SHA1 max
break; break;
case 2500: hashconfig->pw_max = 64; // PBKDF2-HMAC-SHA1 limit case 2500: hashconfig->pw_max = 64; // PBKDF2-HMAC-SHA1 max
break; break;
case 3000: hashconfig->pw_max = 7; case 3000: hashconfig->pw_max = 7; // LM half max
break; break;
case 3200: hashconfig->pw_max = 72; case 3200: hashconfig->pw_max = 72; // bcrypt max
break; break;
case 6400: hashconfig->pw_max = 64; // PBKDF2-HMAC-SHA256 limit case 6400: hashconfig->pw_max = 64; // PBKDF2-HMAC-SHA256 max
break; break;
case 8500: hashconfig->pw_max = 8; case 8500: hashconfig->pw_max = 8; // DES max
break; break;
case 8800: hashconfig->pw_max = 64; // PBKDF2-HMAC-SHA1 limit case 8800: hashconfig->pw_max = 64; // PBKDF2-HMAC-SHA1 max
break; break;
case 9710: hashconfig->pw_max = 5; case 9710: hashconfig->pw_max = 5; // RC4-40 max
break; break;
case 9810: hashconfig->pw_max = 5; case 9810: hashconfig->pw_max = 5; // RC4-40 max
break; break;
case 10410: hashconfig->pw_max = 5; case 10410: hashconfig->pw_max = 5; // RC4-40 max
break; break;
case 14000: hashconfig->pw_max = 8; case 14000: hashconfig->pw_max = 8; // DES max
break; break;
case 14100: hashconfig->pw_max = 24; case 14100: hashconfig->pw_max = 24; // 3DES max
break; break;
case 14900: hashconfig->pw_max = 10; case 14900: hashconfig->pw_max = 10; // Skip32 max
break; break;
} }