mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-11 16:21:12 +00:00
Abort session if module_hash_binary_count () returns zero
This commit is contained in:
parent
5ecbcde945
commit
ba56f41d26
@ -604,6 +604,13 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
|
|||||||
{
|
{
|
||||||
const int binary_count = module_ctx->module_hash_binary_count (hashes);
|
const int binary_count = module_ctx->module_hash_binary_count (hashes);
|
||||||
|
|
||||||
|
if (binary_count == 0)
|
||||||
|
{
|
||||||
|
event_log_error (hashcat_ctx, "No hashes loaded.");
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (binary_count == -1)
|
if (binary_count == -1)
|
||||||
{
|
{
|
||||||
event_log_error (hashcat_ctx, "%s: %s", hashes->hashfile, strerror (errno));
|
event_log_error (hashcat_ctx, "%s: %s", hashes->hashfile, strerror (errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user