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

Increase buffer sizes for -m 11600 = 7-Zip

This commit is contained in:
philsmd 2021-07-30 15:29:47 +02:00
parent 03ed06849a
commit 92dfa7e137
2 changed files with 6 additions and 5 deletions

View File

@ -41,6 +41,7 @@
- Kernel Cache: Add kernel threads into hash computation which is later used in the kernel cache filename
- Memory Management: Refactored the code responsible for limiting kernel accel in order to avoid out of -host- memory situations
- SCRYPT Kernels: Add more optimized values for some new NV/AMD GPUs
- 7-Zip Hook: Increase supported data length from 320kb to 8mb
##
## Algorithms

View File

@ -80,7 +80,7 @@ typedef struct seven_zip_hook_salt
u8 data_type;
u32 data_buf[81882];
u32 data_buf[0x200000];
u32 data_len;
u32 unpack_size;
@ -130,8 +130,8 @@ bool module_hook_extra_param_init (MAYBE_UNUSED const hashconfig_t *hashconfig,
{
seven_zip_hook_extra_t *seven_zip_hook_extra = (seven_zip_hook_extra_t *) hook_extra_param;
#define AESSIZE 320 * 1024
#define UNPSIZE 9766 * 1024 // or actually maximum is 9999999
#define AESSIZE 8 * 1024 * 1024
#define UNPSIZE 9999999
seven_zip_hook_extra->aes = hccalloc (backend_ctx->backend_devices_cnt, sizeof (void *));
@ -500,7 +500,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
token.sep[10] = '$';
token.len_min[10] = 2;
token.len_max[10] = 655056;
token.len_max[10] = 0x200000 * 4 * 2;
token.attr[10] = TOKEN_ATTR_VERIFY_LENGTH;
const int rc_tokenizer = input_tokenizer ((const u8 *) line_buf, line_len, &token);
@ -592,7 +592,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
if ((data_len * 2) != data_buf_len) return (PARSER_SALT_VALUE);
if (data_len > 327528) return (PARSER_SALT_VALUE);
if (data_len > 0x200000 * 4) return (PARSER_SALT_VALUE);
if (unpack_size > data_len) return (PARSER_SALT_VALUE);