1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Status Code: Add specific return code for self-test fail (-11)

Fixes https://github.com/hashcat/hashcat/issues/3437
This commit is contained in:
Jens Steube 2022-09-03 15:46:40 +02:00
parent 9de24b8598
commit 93d40beb17
4 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,11 @@
* changes v6.2.6 -> v6.2.x * changes v6.2.6 -> v6.2.x
##
## Technical
##
- Status Code: Add specific return code for self-test fail (-11)
* changes v6.2.5 -> v6.2.6 * changes v6.2.5 -> v6.2.6
## ##

View File

@ -1,6 +1,7 @@
status codes on exit: status codes on exit:
===================== =====================
-11 = self-test failed
-10 = autotune failure -10 = autotune failure
-9 = mixed backend errors (combo of -3, -4, -5, -6, -7 errors type) -9 = mixed backend errors (combo of -3, -4, -5, -6, -7 errors type)
-8 = backend error: Invalid module_extra_buffer_size -8 = backend error: Invalid module_extra_buffer_size

View File

@ -1842,6 +1842,7 @@ typedef struct backend_ctx
bool kernel_accel_warnings; bool kernel_accel_warnings;
bool extra_size_warning; bool extra_size_warning;
bool mixed_warnings; bool mixed_warnings;
bool self_test_warnings;
// generic // generic

View File

@ -913,6 +913,8 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
event_log_warning (hashcat_ctx, "You can use --self-test-disable to override, but do not report related errors."); event_log_warning (hashcat_ctx, "You can use --self-test-disable to override, but do not report related errors.");
event_log_warning (hashcat_ctx, NULL); event_log_warning (hashcat_ctx, NULL);
backend_ctx->self_test_warnings = true;
return -1; return -1;
} }
} }
@ -1825,6 +1827,7 @@ int hashcat_session_execute (hashcat_ctx_t *hashcat_ctx)
if (backend_ctx->kernel_accel_warnings == true) rc_final = -7; if (backend_ctx->kernel_accel_warnings == true) rc_final = -7;
if (backend_ctx->extra_size_warning == true) rc_final = -8; if (backend_ctx->extra_size_warning == true) rc_final = -8;
if (backend_ctx->mixed_warnings == true) rc_final = -9; if (backend_ctx->mixed_warnings == true) rc_final = -9;
if (backend_ctx->self_test_warnings == true) rc_final = -11;
} }
// special case for --stdout // special case for --stdout