1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 00:28:11 +00:00

Fix Joomla salt length

This commit is contained in:
jsteube 2019-02-13 09:37:30 +01:00
parent 25e4023c89
commit af634750f2
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ static const u64 OPTS_TYPE = OPTS_TYPE_PT_GENERATE_LE
| OPTS_TYPE_ST_ADDBITS14; | OPTS_TYPE_ST_ADDBITS14;
static const u32 SALT_TYPE = SALT_TYPE_GENERIC; static const u32 SALT_TYPE = SALT_TYPE_GENERIC;
static const char *ST_PASS = "hashcat"; static const char *ST_PASS = "hashcat";
static const char *ST_HASH = "5b91686523680d1e6bab1071ea4080cb:670326450574076786209992882236"; static const char *ST_HASH = "b78f863f2c67410c41e617f724e22f34:89384528665349271307465505333378";
u32 module_attack_exec (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ATTACK_EXEC; } u32 module_attack_exec (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ATTACK_EXEC; }
u32 module_dgst_pos0 (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_POS0; } u32 module_dgst_pos0 (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return DGST_POS0; }
@ -63,8 +63,8 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
token.attr[0] = TOKEN_ATTR_VERIFY_LENGTH token.attr[0] = TOKEN_ATTR_VERIFY_LENGTH
| TOKEN_ATTR_VERIFY_HEX; | TOKEN_ATTR_VERIFY_HEX;
token.len_min[1] = 30; token.len_min[1] = 32;
token.len_max[1] = 30; token.len_max[1] = 32;
token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH; token.attr[1] = TOKEN_ATTR_VERIFY_LENGTH;
if (hashconfig->opts_type & OPTS_TYPE_ST_HEX) if (hashconfig->opts_type & OPTS_TYPE_ST_HEX)

View File

@ -10,7 +10,7 @@ use warnings;
use Digest::MD5 qw (md5_hex); use Digest::MD5 qw (md5_hex);
sub module_constraints { [[0, 255], [30, 30], [0, 55], [30, 30], [30, 55]] } sub module_constraints { [[0, 255], [32, 32], [0, 55], [32, 32], [32, 55]] }
sub module_generate_hash sub module_generate_hash
{ {