From 3c899ec5280e90c651997c0f6736934165ecc73b Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sat, 3 Jul 2021 14:22:14 +0200 Subject: [PATCH] Potfile: Disable potfile for hash-mode 99999 --- docs/changes.txt | 1 + src/modules/module_99999.c | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index c846a1d26..bbaa736b5 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -36,6 +36,7 @@ - Backend Information: Added new column showing the PCI Address per CUDA/OpenCL device to easier identify broken cards - Debug Rules: HEX-ify rules debug non-rules outputs that contain colons - KeePass: Increase supported size for KeePass 1 databases from 300kB to 16MB +- Potfile: Disable potfile for hash-mode 99999 - VeraCrypt: Increase password length support for non-boot volumes from 64 to 128 ## diff --git a/src/modules/module_99999.c b/src/modules/module_99999.c index e079aa7ba..0611c7ef6 100644 --- a/src/modules/module_99999.c +++ b/src/modules/module_99999.c @@ -51,6 +51,13 @@ u32 module_salt_type (MAYBE_UNUSED const hashconfig_t *hashconfig, const char *module_st_hash (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ST_HASH; } const char *module_st_pass (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { return ST_PASS; } +bool module_potfile_disable (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) +{ + const bool potfile_disable = true; + + return potfile_disable; +} + int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED void *digest_buf, MAYBE_UNUSED salt_t *salt, MAYBE_UNUSED void *esalt_buf, MAYBE_UNUSED void *hook_salt_buf, MAYBE_UNUSED hashinfo_t *hash_info, const char *line_buf, MAYBE_UNUSED const int line_len) { u32 *digest = (u32 *) digest_buf; @@ -171,7 +178,7 @@ void module_init (module_ctx_t *module_ctx) module_ctx->module_outfile_check_disable = MODULE_DEFAULT; module_ctx->module_outfile_check_nocomp = MODULE_DEFAULT; module_ctx->module_potfile_custom_check = MODULE_DEFAULT; - module_ctx->module_potfile_disable = MODULE_DEFAULT; + module_ctx->module_potfile_disable = module_potfile_disable; module_ctx->module_potfile_keep_all_hashes = MODULE_DEFAULT; module_ctx->module_pwdump_column = MODULE_DEFAULT; module_ctx->module_pw_max = MODULE_DEFAULT;