1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 07:08:19 +00:00

Merge pull request #1170 from philsmd/master

fixes #1162: visual indication if checkpoint quit is enabled
This commit is contained in:
Jens Steube 2017-03-08 08:47:25 +01:00 committed by GitHub
commit e0b0d3bd32
2 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,7 @@
- WPA cracking: Added support for WPA/WPA2 handshake AP nonce automatic error correction
- WPA cracking: Added parameter --nonce-error-corrections to configure range of error correction
- Added visual indicator to the status screen to indicate if the checkpoint quit feature is enabled
##
## Improvements

View File

@ -29,6 +29,7 @@ static const char ST_0007[] = "Quit";
static const char ST_0008[] = "Bypass";
static const char ST_0009[] = "Aborted (Checkpoint)";
static const char ST_0010[] = "Aborted (Runtime)";
static const char ST_0011[] = "Running (Checkpoint Quit requested)";
static const char ST_9999[] = "Unknown! Bug!";
static const char UNITS[7] = { ' ', 'k', 'M', 'G', 'T', 'P', 'E' };
@ -196,6 +197,16 @@ char *status_get_status_string (const hashcat_ctx_t *hashcat_ctx)
const int devices_status = status_ctx->devices_status;
// special case: running but checkpoint quit requested
if (devices_status == STATUS_RUNNING)
{
if (status_ctx->checkpoint_shutdown == true)
{
return ((char *) ST_0011);
}
}
switch (devices_status)
{
case STATUS_INIT: return ((char *) ST_0000);