1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 15:18:16 +00:00

Abort session if module_hash_binary_count () returns zero

This commit is contained in:
jsteube 2019-03-17 15:01:41 +01:00
parent 5ecbcde945
commit ba56f41d26

View File

@ -604,6 +604,13 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
{
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)
{
event_log_error (hashcat_ctx, "%s: %s", hashes->hashfile, strerror (errno));