stdin: add read timeout checks (abort if no input for a long time)

This commit is contained in:
philsmd
2018-10-17 10:55:47 +02:00
parent 5b8a35a118
commit 73ed017daf
6 changed files with 61 additions and 0 deletions
+3
View File
@@ -6,6 +6,9 @@
#ifndef _MONITOR_H
#define _MONITOR_H
#define STDIN_TIMEOUT_MIN 20 // warn after no input from stdin for x seconds
#define STDIN_TIMEOUT_MAX 120 // abort after no input from stdin for x seconds
int get_runtime_left (const hashcat_ctx_t *hashcat_ctx);
HC_API_CALL void *thread_monitor (void *p);