From 10fa1434ca37f8616d930b864847e31989256d5d Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 21 Jan 2022 20:28:13 +0100 Subject: [PATCH] Updated status code: set -10 for autotune failure --- docs/status_codes.txt | 27 ++++++++++++++------------- src/hashcat.c | 2 +- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/docs/status_codes.txt b/docs/status_codes.txt index b7889ff2e..33f44d0a6 100644 --- a/docs/status_codes.txt +++ b/docs/status_codes.txt @@ -1,16 +1,17 @@ status codes on exit: ===================== --8 = mixed backend errors (combo of -3, -4, -5, -6, -7 errors type) --7 = backend error: Invalid module_extra_buffer_size --6 = backend error: Too many compute units to keep minimum kernel accel limit --5 = backend error: main kernel build error --4 = backend error: memory hit --3 = backend error: skipping hash-type due to module_unstable_warning settings --2 = gpu-watchdog alarm --1 = error - 0 = OK/cracked - 1 = exhausted - 2 = aborted - 3 = aborted by checkpoint - 4 = aborted by runtime +-10 = autotune failure + -8 = mixed backend errors (combo of -3, -4, -5, -6, -7 errors type) + -7 = backend error: Invalid module_extra_buffer_size + -6 = backend error: Too many compute units to keep minimum kernel accel limit + -5 = backend error: main kernel build error + -4 = backend error: memory hit + -3 = backend error: skipping hash-type due to module_unstable_warning settings + -2 = gpu-watchdog alarm + -1 = error + 0 = OK/cracked + 1 = exhausted + 2 = aborted + 3 = aborted by checkpoint + 4 = aborted by runtime diff --git a/src/hashcat.c b/src/hashcat.c index 0572328db..22c669489 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -266,7 +266,7 @@ static int inner2_loop (hashcat_ctx_t *hashcat_ctx) event_log_warning (hashcat_ctx, "You can use --force to override this, but do not report related errors."); event_log_warning (hashcat_ctx, NULL); - return -1; + return -10; } } }