mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 15:18:16 +00:00
fixes #1153: incorrect error message when --keyspace combined with custom charsets was used
This commit is contained in:
parent
89f8739dde
commit
8bd6001072
@ -1,3 +1,11 @@
|
|||||||
|
* changes v3.40 -> ?:
|
||||||
|
|
||||||
|
##
|
||||||
|
## Bugs
|
||||||
|
##
|
||||||
|
|
||||||
|
- Fixed a problem where --keyspace combined with custom charsets incorrectly displayed an error message
|
||||||
|
|
||||||
* changes v3.30 -> v3.40:
|
* changes v3.30 -> v3.40:
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -819,12 +819,15 @@ int user_options_sanity (hashcat_ctx_t *hashcat_ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (user_options->hc_argc < 2)
|
if (user_options->hc_argc < 2)
|
||||||
|
{
|
||||||
|
if (user_options->keyspace == false) // special case, we do not need a hash file
|
||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "You need to specify a mask if you specify a custom-charset");
|
event_log_error (hashcat_ctx, "You need to specify a mask if you specify a custom-charset");
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// argc / argv checks
|
// argc / argv checks
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user