mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-24 07:28:10 +00:00
Get rid of hash_mode depending branches in potfile.c
This commit is contained in:
parent
4c133c4567
commit
aec6a3bc99
@ -617,8 +617,11 @@ int potfile_handle_show (hashcat_ctx_t *hashcat_ctx)
|
||||
u32 salts_cnt = hashes->salts_cnt;
|
||||
salt_t *salts_buf = hashes->salts_buf;
|
||||
|
||||
if (hashconfig->hash_mode == 3000)
|
||||
if (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT)
|
||||
{
|
||||
// this implementation will work for LM only
|
||||
// however, LM is the only hash support which splits the password into multiple hashes
|
||||
|
||||
for (u32 salt_idx = 0; salt_idx < salts_cnt; salt_idx++)
|
||||
{
|
||||
salt_t *salt_buf = salts_buf + salt_idx;
|
||||
@ -822,8 +825,11 @@ int potfile_handle_left (hashcat_ctx_t *hashcat_ctx)
|
||||
u32 salts_cnt = hashes->salts_cnt;
|
||||
salt_t *salts_buf = hashes->salts_buf;
|
||||
|
||||
if (hashconfig->hash_mode == 3000)
|
||||
if (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT)
|
||||
{
|
||||
// this implementation will work for LM only
|
||||
// however, LM is the only hash support which splits the password into multiple hashes
|
||||
|
||||
for (u32 salt_idx = 0; salt_idx < salts_cnt; salt_idx++)
|
||||
{
|
||||
salt_t *salt_buf = salts_buf + salt_idx;
|
||||
|
Loading…
Reference in New Issue
Block a user