mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-10 15:51:10 +00:00
Merge pull request #2479 from philsmd/stdout_status_code
fixes #2465: --stdout should return status code 0
This commit is contained in:
commit
2b08f736eb
@ -12,6 +12,7 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
- Fixed maximum password length in modules of hash-modes 600, 7800, 7801 and 9900
|
- Fixed maximum password length in modules of hash-modes 600, 7800, 7801 and 9900
|
||||||
|
- Fixed non-zero status code when using --stdout
|
||||||
- Fixed uninitialized value in bitsliced DES kernel (BF mode only) leading to false negatives
|
- Fixed uninitialized value in bitsliced DES kernel (BF mode only) leading to false negatives
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -1214,7 +1214,7 @@ int hashcat_session_execute (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
logfile_top_msg ("STOP");
|
logfile_top_msg ("STOP");
|
||||||
|
|
||||||
// free memory
|
// set final status code
|
||||||
|
|
||||||
if (rc_final == 0)
|
if (rc_final == 0)
|
||||||
{
|
{
|
||||||
@ -1227,6 +1227,16 @@ int hashcat_session_execute (hashcat_ctx_t *hashcat_ctx)
|
|||||||
if (status_ctx->devices_status == STATUS_ERROR) rc_final = -1;
|
if (status_ctx->devices_status == STATUS_ERROR) rc_final = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// special case for --stdout
|
||||||
|
|
||||||
|
if (user_options->stdout_flag == true)
|
||||||
|
{
|
||||||
|
if (status_ctx->devices_status == STATUS_EXHAUSTED)
|
||||||
|
{
|
||||||
|
rc_final = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// done
|
// done
|
||||||
|
|
||||||
return rc_final;
|
return rc_final;
|
||||||
|
Loading…
Reference in New Issue
Block a user