Merge pull request #2804 from matrix/autodetect
Added new feature: autodetect hash-mode
This commit is contained in:
@@ -210,6 +210,7 @@ typedef enum status_rc
|
||||
STATUS_ABORTED_RUNTIME = 11,
|
||||
STATUS_ERROR = 13,
|
||||
STATUS_ABORTED_FINISH = 14,
|
||||
STATUS_AUTODETECT = 16,
|
||||
|
||||
} status_rc_t;
|
||||
|
||||
@@ -443,6 +444,7 @@ typedef enum opts_type
|
||||
OPTS_TYPE_MP_MULTI_DISABLE = (1ULL << 52), // do not multiply the kernel-accel with the multiprocessor count per device to allow more fine-tuned workload settings
|
||||
OPTS_TYPE_NATIVE_THREADS = (1ULL << 53), // forces "native" thread count: CPU=1, GPU-Intel=8, GPU-AMD=64 (wavefront), GPU-NV=32 (warps)
|
||||
OPTS_TYPE_POST_AMP_UTF16LE = (1ULL << 54), // run the utf8 to utf16le conversion kernel after they have been processed from amplifiers
|
||||
OPTS_TYPE_AUTODETECT_DISABLE = (1ULL << 55), // skip autodetect engine
|
||||
|
||||
} opts_type_t;
|
||||
|
||||
@@ -594,6 +596,7 @@ typedef enum user_options_defaults
|
||||
{
|
||||
ADVICE_DISABLE = false,
|
||||
ATTACK_MODE = ATTACK_MODE_STRAIGHT,
|
||||
AUTODETECT = false,
|
||||
BENCHMARK_ALL = false,
|
||||
BENCHMARK = false,
|
||||
BITMAP_MAX = 18,
|
||||
@@ -1939,6 +1942,7 @@ typedef struct user_options
|
||||
char **hc_argv;
|
||||
|
||||
bool attack_mode_chgd;
|
||||
bool autodetect;
|
||||
#ifdef WITH_BRAIN
|
||||
bool brain_host_chgd;
|
||||
bool brain_port_chgd;
|
||||
|
||||
@@ -9,7 +9,16 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
typedef struct usage_sort
|
||||
{
|
||||
u32 hash_mode;
|
||||
char *hash_name;
|
||||
u32 hash_category;
|
||||
|
||||
} usage_sort_t;
|
||||
|
||||
void usage_mini_print (const char *progname);
|
||||
void usage_big_print (hashcat_ctx_t *hashcat_ctx);
|
||||
int sort_by_usage (const void *p1, const void *p2);
|
||||
|
||||
#endif // _USAGE_H
|
||||
|
||||
Reference in New Issue
Block a user