2016-09-08 09:21:25 +02:00
|
|
|
/**
|
2016-09-11 22:20:15 +02:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-08 09:21:25 +02:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _STATUS_H
|
|
|
|
#define _STATUS_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2016-09-30 00:38:29 +02:00
|
|
|
#include <time.h>
|
2016-09-08 09:21:25 +02:00
|
|
|
#include <inttypes.h>
|
|
|
|
|
2016-09-14 16:07:24 +02:00
|
|
|
double get_avg_exec_time (hc_device_param_t *device_param, const int last_num_entries);
|
|
|
|
|
2016-10-17 13:44:07 +02:00
|
|
|
// should be static after refactoring
|
|
|
|
void format_timer_display (struct tm *tm, char *buf, size_t len);
|
|
|
|
void format_speed_display (double val, char *buf, size_t len);
|
|
|
|
|
2016-10-17 15:19:25 +02:00
|
|
|
int status_get_device_info_cnt (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_device_info_active (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
bool status_get_skipped_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
2016-10-17 13:44:07 +02:00
|
|
|
char *status_get_session (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
char *status_get_status_string (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-18 00:13:40 +02:00
|
|
|
int status_get_status_number (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 13:55:55 +02:00
|
|
|
int status_get_input_mode (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
char *status_get_input_base (const hashcat_ctx_t *hashcat_ctx);
|
2016-11-10 22:30:17 +01:00
|
|
|
int status_get_input_base_offset (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_input_base_count (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
double status_get_input_base_percent (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 13:55:55 +02:00
|
|
|
char *status_get_input_mod (const hashcat_ctx_t *hashcat_ctx);
|
2016-11-10 22:30:17 +01:00
|
|
|
int status_get_input_mod_offset (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_input_mod_count (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
double status_get_input_mod_percent (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 13:55:55 +02:00
|
|
|
char *status_get_input_charset (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-29 22:44:01 +02:00
|
|
|
int status_get_input_mask_length (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 16:46:16 +02:00
|
|
|
char *status_get_input_candidates_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
2016-10-17 13:44:07 +02:00
|
|
|
char *status_get_hash_type (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
char *status_get_hash_target (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_digests_done (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_digests_cnt (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
double status_get_digests_percent (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_salts_done (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_salts_cnt (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
double status_get_salts_percent (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
double status_get_msec_running (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
double status_get_msec_paused (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 15:19:25 +02:00
|
|
|
double status_get_msec_real (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 13:44:07 +02:00
|
|
|
char *status_get_time_started_absolute (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
char *status_get_time_started_relative (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
char *status_get_time_estimated_absolute (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
char *status_get_time_estimated_relative (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 14:25:16 +02:00
|
|
|
u64 status_get_restore_point (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
u64 status_get_restore_total (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
double status_get_restore_percent (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 16:22:32 +02:00
|
|
|
int status_get_progress_mode (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
double status_get_progress_finished_percent (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 13:44:07 +02:00
|
|
|
u64 status_get_progress_done (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
u64 status_get_progress_rejected (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 16:22:32 +02:00
|
|
|
double status_get_progress_rejected_percent (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 13:44:07 +02:00
|
|
|
u64 status_get_progress_restored (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
u64 status_get_progress_cur (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
u64 status_get_progress_end (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
u64 status_get_progress_ignore (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
u64 status_get_progress_skip (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
u64 status_get_progress_cur_relative_skip (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
u64 status_get_progress_end_relative_skip (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
double status_get_hashes_msec_all (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 15:19:25 +02:00
|
|
|
double status_get_hashes_msec_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
2016-10-17 17:20:19 +02:00
|
|
|
double status_get_hashes_msec_dev_benchmark (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
2016-10-17 13:44:07 +02:00
|
|
|
double status_get_exec_msec_all (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 15:19:25 +02:00
|
|
|
double status_get_exec_msec_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
2016-10-17 13:44:07 +02:00
|
|
|
char *status_get_speed_sec_all (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 15:19:25 +02:00
|
|
|
char *status_get_speed_sec_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
|
|
|
int status_get_cpt_cur_min (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_cpt_cur_hour (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_cpt_cur_day (const hashcat_ctx_t *hashcat_ctx);
|
2016-11-30 11:12:56 +01:00
|
|
|
int status_get_cpt_avg_min (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_cpt_avg_hour (const hashcat_ctx_t *hashcat_ctx);
|
|
|
|
int status_get_cpt_avg_day (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 15:19:25 +02:00
|
|
|
char *status_get_cpt (const hashcat_ctx_t *hashcat_ctx);
|
2016-10-17 17:02:56 +02:00
|
|
|
char *status_get_hwmon_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
2016-11-10 17:50:29 +01:00
|
|
|
int status_get_corespeed_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
|
|
|
int status_get_memoryspeed_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
2016-12-09 23:44:43 +01:00
|
|
|
int status_get_progress_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
|
|
|
double status_get_runtime_msec_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id);
|
2016-10-17 13:44:07 +02:00
|
|
|
|
|
|
|
int status_progress_init (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void status_progress_destroy (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void status_progress_reset (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
|
|
|
|
int status_ctx_init (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void status_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
|
2016-09-08 09:21:25 +02:00
|
|
|
|
|
|
|
#endif // _STATUS_H
|