mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-13 09:11:01 +00:00
removed bcrypt password length limits
This commit is contained in:
parent
46c2464417
commit
3b34289c48
@ -59,13 +59,6 @@ typedef struct bcrypt_tmp
|
|||||||
|
|
||||||
} bcrypt_tmp_t;
|
} bcrypt_tmp_t;
|
||||||
|
|
||||||
u32 module_pw_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
|
||||||
{
|
|
||||||
const u32 pw_max = 72; // Underlaying Blowfish max
|
|
||||||
|
|
||||||
return pw_max;
|
|
||||||
}
|
|
||||||
|
|
||||||
u64 module_tmp_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
u64 module_tmp_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
||||||
{
|
{
|
||||||
const u64 tmp_size = (const u64) sizeof (bcrypt_tmp_t);
|
const u64 tmp_size = (const u64) sizeof (bcrypt_tmp_t);
|
||||||
@ -352,7 +345,7 @@ void module_init (module_ctx_t *module_ctx)
|
|||||||
module_ctx->module_potfile_disable = MODULE_DEFAULT;
|
module_ctx->module_potfile_disable = MODULE_DEFAULT;
|
||||||
module_ctx->module_potfile_keep_all_hashes = MODULE_DEFAULT;
|
module_ctx->module_potfile_keep_all_hashes = MODULE_DEFAULT;
|
||||||
module_ctx->module_pwdump_column = MODULE_DEFAULT;
|
module_ctx->module_pwdump_column = MODULE_DEFAULT;
|
||||||
module_ctx->module_pw_max = module_pw_max;
|
module_ctx->module_pw_max = MODULE_DEFAULT;
|
||||||
module_ctx->module_pw_min = MODULE_DEFAULT;
|
module_ctx->module_pw_min = MODULE_DEFAULT;
|
||||||
module_ctx->module_salt_max = MODULE_DEFAULT;
|
module_ctx->module_salt_max = MODULE_DEFAULT;
|
||||||
module_ctx->module_salt_min = MODULE_DEFAULT;
|
module_ctx->module_salt_min = MODULE_DEFAULT;
|
||||||
|
@ -12,7 +12,7 @@ use Crypt::Eksblowfish::Bcrypt qw (bcrypt en_base64);
|
|||||||
use MIME::Base64 qw (decode_base64);
|
use MIME::Base64 qw (decode_base64);
|
||||||
use Digest::MD5 qw (md5_hex);
|
use Digest::MD5 qw (md5_hex);
|
||||||
|
|
||||||
sub module_constraints { [[0, 72], [16, 16], [-1, -1], [-1, -1], [-1, -1]] }
|
sub module_constraints { [[0, 256], [16, 16], [-1, -1], [-1, -1], [-1, -1]] }
|
||||||
|
|
||||||
sub module_generate_hash
|
sub module_generate_hash
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user