[packages/hashcat] - new, version 8.0.0 (advanced password recovery utility)

arekm arekm at pld-linux.org
Sun Nov 1 22:08:57 CET 2026


commit 9bf5d472a5de768fc61fe16aa31dbb22018805c3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Nov 1 22:05:19 2026 +0100

    - new, version 8.0.0 (advanced password recovery utility)

 hashcat-argon2-brain-handshake.patch | 160 ++++++++++++++++++++++++++++++++
 hashcat-racf-memory-factor.patch     | 110 ++++++++++++++++++++++
 hashcat.spec                         | 171 +++++++++++++++++++++++++++++++++++
 3 files changed, 441 insertions(+)
---
diff --git a/hashcat.spec b/hashcat.spec
new file mode 100644
index 0000000..f70737f
--- /dev/null
+++ b/hashcat.spec
@@ -0,0 +1,171 @@
+Summary:	Advanced password recovery utility
+Summary(pl.UTF-8):	Zaawansowane narzędzie do odzyskiwania haseł
+Name:		hashcat
+Version:	8.0.0
+Release:	1
+License:	MIT, BSD, CC0 v1.0 or Apache v2.0, Public Domain
+Group:		Applications/System
+Source0:	https://hashcat.net/files/%{name}-%{version}.tar.gz
+# Source0-md5:	20234925e1f061718007c08c38ac03de
+# https://github.com/hashcat/hashcat/commit/694ddd0f2c93434536946791337d0f6085faee46
+Patch0:		%{name}-argon2-brain-handshake.patch
+# https://github.com/hashcat/hashcat/commit/0c39fad170911edb62f29f60147466abca7862e0
+Patch1:		%{name}-racf-memory-factor.patch
+URL:		https://hashcat.net/hashcat/
+BuildRequires:	khronos-OpenCL-headers
+BuildRequires:	rpmbuild(macros) >= 1.673
+# hcstat2 (every mask attack and --benchmark) and compressed inputs are read
+# through libraries loaded with dlopen(), which rpm cannot see
+Requires:	ocl-icd-libOpenCL
+Requires:	xz-libs
+Requires:	zlib
+Requires:	zstd
+Suggests:	openssl
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# prebuilt ARM boot loader for the ZC706 FPGA board, host strip cannot read it
+%define		_noautostrip	.*/fsbl\.elf
+
+# LFLAGS given on the command line replaces upstream's, which add -s and
+# strip everything before debuginfo is extracted; REPRO_TRY maps the build
+# dir to "." in DWARF, so debugedit finds no sources
+%define		make_opts	CC="%{__cc}" LFLAGS="%{rpmldflags}" REPRO_TRY= PREFIX=%{_prefix} LIBRARY_FOLDER=%{_libdir} SHARED_FOLDER=%{_libdir}/%{name} DOCUMENT_FOLDER=%{_docdir}/%{name}-%{version} MAINTAINER_MODE=1 USE_SYSTEM_OPENCL=1 RUST_CARGO=false
+
+%description
+hashcat is a password recovery utility supporting hundreds of hash
+algorithms and several attack modes. It runs on CPUs, GPUs and other
+accelerators through OpenCL, CUDA, HIP and Metal backends.
+
+%description -l pl.UTF-8
+hashcat to narzędzie do odzyskiwania haseł obsługujące setki
+algorytmów skrótu i kilka trybów ataku. Działa na procesorach CPU,
+GPU i innych akceleratorach poprzez interfejsy OpenCL, CUDA, HIP i
+Metal.
+
+%package devel
+Summary:	Header files for hashcat plugin development
+Summary(pl.UTF-8):	Pliki nagłówkowe do tworzenia wtyczek hashcata
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	khronos-OpenCL-headers
+
+%description devel
+Header files for building hashcat modules, bridges and feeds against
+libhashcat.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe do budowania wtyczek hashcata (modułów, mostków i
+generatorów haseł do sprawdzenia) z użyciem biblioteki libhashcat.
+
+%package tools
+Summary:	Scripts extracting hashes for hashcat
+Summary(pl.UTF-8):	Skrypty wydobywające skróty dla hashcata
+Group:		Applications/System
+Requires:	%{name} = %{version}-%{release}
+
+%description tools
+Scripts extracting hashes in hashcat format from encrypted volumes,
+wallets, password managers, keystores and other files.
+
+%description tools -l pl.UTF-8
+Skrypty wydobywające skróty w formacie hashcata z zaszyfrowanych
+woluminów, portfeli kryptowalut, menedżerów haseł, magazynów kluczy i
+innych plików.
+
+%package -n bash-completion-%{name}
+Summary:	bash-completion for hashcat
+Summary(pl.UTF-8):	Bashowe uzupełnianie parametrów dla hashcata
+Group:		Applications/Shells
+Requires:	%{name} = %{version}-%{release}
+Requires:	bash-completion >= 1:2.0
+BuildArch:	noarch
+
+%description -n bash-completion-%{name}
+bash-completion for hashcat.
+
+%description -n bash-completion-%{name} -l pl.UTF-8
+Bashowe uzupełnianie parametrów dla hashcata.
+
+%prep
+%setup -q
+%patch -P0 -p1
+%patch -P1 -p1
+
+%{__rm} -r deps/OpenCL-Headers
+
+%{__sed} -i -e '1s,^#!.*python3,#!%{__python3},' tools/*hashcat.py extra/fpga/zc706-sdboot/make_bootbin.py
+%{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' tools/*hashcat.pl
+%{__sed} -i -e 's,^HASHCAT_ROOT=.*,HASHCAT_ROOT="%{_bindir}",' extra/tab_completion/hashcat.sh
+
+%build
+CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+%{__make} \
+	%{make_opts}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+%{__make} install \
+	%{make_opts} \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# keyed on file size and nanosecond mtime, which stripping and rpm do not
+# keep; hashcat rebuilds it in the user's cache directory
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/module_options.so.cache
+
+find $RPM_BUILD_ROOT%{_libdir}/%{name} -name .gitkeep -delete
+
+# installed 0644, which find-debuginfo skips
+find $RPM_BUILD_ROOT%{_libdir}/%{name} -name '*.so' -exec chmod 755 {} +
+
+install -D -p extra/tab_completion/hashcat.sh $RPM_BUILD_ROOT%{bash_compdir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%{_docdir}/%{name}-%{version}
+%attr(755,root,root) %{_bindir}/hashcat
+%{_libdir}/libhashcat.so.8
+%dir %{_libdir}/%{name}
+%{_libdir}/%{name}/OpenCL
+%{_libdir}/%{name}/Python
+%dir %{_libdir}/%{name}/bridges
+%{_libdir}/%{name}/bridges/*.so
+%dir %{_libdir}/%{name}/bridges/subs
+%dir %{_libdir}/%{name}/extra
+%dir %{_libdir}/%{name}/extra/fpga
+%{_libdir}/%{name}/extra/fpga/99-*.rules
+%dir %{_libdir}/%{name}/extra/fpga/zc706-sdboot
+%{_libdir}/%{name}/extra/fpga/zc706-sdboot/README.md
+%{_libdir}/%{name}/extra/fpga/zc706-sdboot/build_fsbl.tcl
+%{_libdir}/%{name}/extra/fpga/zc706-sdboot/fsbl.elf
+%attr(755,root,root) %{_libdir}/%{name}/extra/fpga/zc706-sdboot/make_bootbin.py
+%dir %{_libdir}/%{name}/feeds
+%{_libdir}/%{name}/feeds/*.so
+%dir %{_libdir}/%{name}/modules
+%{_libdir}/%{name}/modules/*.so
+%{_libdir}/%{name}/pcfg
+%{_libdir}/%{name}/rules
+%{_libdir}/%{name}/tunings
+%{_libdir}/%{name}/hashcat.hcstat2
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libhashcat.so
+%{_includedir}/hashcat
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*2hashcat.p[ly]
+%attr(755,root,root) %{_bindir}/*_to_hashcat.p[ly]
+%attr(755,root,root) %{_bindir}/*-to-hashcat.py
+
+%files -n bash-completion-%{name}
+%defattr(644,root,root,755)
+%{bash_compdir}/%{name}
diff --git a/hashcat-argon2-brain-handshake.patch b/hashcat-argon2-brain-handshake.patch
new file mode 100644
index 0000000..1acc040
--- /dev/null
+++ b/hashcat-argon2-brain-handshake.patch
@@ -0,0 +1,160 @@
+From 694ddd0f2c93434536946791337d0f6085faee46 Mon Sep 17 00:00:00 2001
+From: Jens Steube <jens.steube at gmail.com>
+Date: Mon, 26 Oct 2026 20:06:41 +0100
+Subject: [PATCH] Limit Argon2 tag lengths and time out the brain handshake
+
+Mode 34000 took the Argon2 tag length from the hash line and checked it only against the 128 byte digest buffer. The kernel passed argon2_final() a 32 byte array, but argon2_final() writes digest_len / 4 words, so a tag longer than 32 bytes wrote past the end of that array on the device. Tags longer than 64 bytes also caused reads beyond the blake2b state. Both lengths were controlled by the hash line, so a hash file was enough to trigger either case. A 48 or 64 byte tag could still crack successfully because the comparison matched even after 12 or 16 words had been written into an eight word array, with no failure or warning.
+
+The kernel now uses a 16 word array, as the Argon2 modes that already support 64 byte tags do. The parser accepts tags from 16 to 64 bytes. The upper limit comes from the 64 byte blake2b state used to construct the tag. Below 16 bytes, the kernel passed unwritten words to COMPARE, which explains why an 8 byte tag never cracked. The other three modes using argon2_final() are unaffected. One already allocates room for 64 bytes, one requires a single tag length, and one sets the length internally.
+
+The brain server reserves one of its 255 client slots before authentication, then reads the protocol version and challenge response without a deadline or socket receive timeout. A peer could connect and send nothing, keeping its slot indefinitely. With 255 such connections, the server refused every subsequent connection with "Too many clients", even though none of those peers had supplied a password.
+
+The socket now has a 10 second receive timeout during the handshake, which is removed once the password is accepted. A failed read already releases the slot and closes the socket, so no new error path was needed. The timeout must be removed because an authenticated client can spend minutes processing a slow hash between requests. This is a denial of service against a server started with --brain-server, with no memory corruption or code execution. SECURITY.md already places resource exhaustion by a peer before authentication within the trust boundary.
+---
+ OpenCL/m34000-pure.cl      |  7 ++++-
+ include/brain.h            |  8 ++++++
+ src/brain.c                | 56 ++++++++++++++++++++++++++++++++++++++
+ src/modules/module_34000.c | 12 +++++++-
+ 4 files changed, 81 insertions(+), 2 deletions(-)
+
+diff --git a/OpenCL/m34000-pure.cl b/OpenCL/m34000-pure.cl
+index 1a48f5db22..4b666e5ae6 100644
+--- a/OpenCL/m34000-pure.cl
++++ b/OpenCL/m34000-pure.cl
+@@ -148,7 +148,12 @@ KERNEL_FQ KERNEL_FA void m34000_comp (KERN_ATTR_TMPS_ESALT (argon2_tmp_t, merged
+ 
+   GLOBAL_AS argon2_block_t *argon2_block = get_argon2_block (&argon2_options, V, gd4);
+ 
+-  u32 out[8];
++  // 16 words, because argon2_final () writes digest_len / 4 of them and digest_len comes from the
++  // tag in the hash line. The construction produces the tag out of the 64 byte blake2b state, so 16
++  // is the most it can ever fill, and the parser refuses a longer tag. This held 8 words, which a
++  // tag over 32 bytes wrote straight past. m34100-pure.cl sizes the same array the same way.
++
++  u32 out[16];
+ 
+   argon2_final (argon2_block, &argon2_options, out);
+ 
+diff --git a/include/brain.h b/include/brain.h
+index be38d98bcf..6d43a590cd 100644
+--- a/include/brain.h
++++ b/include/brain.h
+@@ -46,6 +46,14 @@ static const int BRAIN_SERVER_TIMER               = 5 * 60;
+ static const int BRAIN_SERVER_SESSIONS_MAX        = 64;
+ static const int BRAIN_SERVER_ATTACKS_MAX         = 64 * 1024;
+ static const int BRAIN_SERVER_CLIENTS_MAX         = 256;
++
++// How long a connection may take to get through the handshake. A connection that is still in it
++// holds one of the slots above, so without a deadline a peer that connects and sends nothing holds
++// a slot for as long as it likes. The deadline covers the handshake only, never the session after
++// it, so it has to be generous enough for a slow link and short enough that filling every slot
++// takes continuous effort rather than one burst.
++
++static const int BRAIN_SERVER_HANDSHAKE_TIMEOUT   = 10;
+ static const int BRAIN_SERVER_REALLOC_ATTACK_SIZE = 1024;
+ static const int BRAIN_HASH_SIZE                  = 2 * sizeof (u32);
+ // The wire format changed when brain_auth_hash moved from a checksum to SHA-256, so a client and
+diff --git a/src/brain.c b/src/brain.c
+index 79269b352d..9fe4cc2859 100644
+--- a/src/brain.c
++++ b/src/brain.c
+@@ -2499,6 +2499,32 @@ HC_THREAD_FUNC brain_server_handle_dumps (void *p)
+   return 0;
+ }
+ 
++// A receive deadline on one client socket. Seconds of 0 removes it, which is what both platforms
++// read as "block until something arrives".
++//
++// brain_recv_all () treats any recv () that does not return bytes as a failed read, so a socket that
++// times out takes the client's error path, and that path already frees the slot and closes the fd.
++
++static bool brain_server_set_recv_timeout (int client_fd, const int seconds)
++{
++  #if defined (_WIN)
++
++  DWORD timeout = (DWORD) seconds * 1000;
++
++  #else
++
++  struct timeval timeout;
++
++  timeout.tv_sec  = seconds;
++  timeout.tv_usec = 0;
++
++  #endif
++
++  if (setsockopt (client_fd, SOL_SOCKET, SO_RCVTIMEO, (const char *) &timeout, sizeof (timeout)) == -1) return false;
++
++  return true;
++}
++
+ HC_THREAD_FUNC brain_server_handle_client (void *p)
+ {
+   brain_server_client_options_t *brain_server_client_options = (brain_server_client_options_t *) p;
+@@ -2532,6 +2558,21 @@ HC_THREAD_FUNC brain_server_handle_client (void *p)
+ 
+   #endif
+ 
++  // The handshake is on the clock from here. The slot this connection holds was taken before any of
++  // it ran, so a peer that never finishes authenticating used to keep the slot indefinitely, and 255
++  // such peers filled the server without ever supplying a password.
++
++  if (brain_server_set_recv_timeout (client_fd, BRAIN_SERVER_HANDSHAKE_TIMEOUT) == false)
++  {
++    brain_logging (stderr, client_idx, "setsockopt: %s\n", strerror (errno));
++
++    brain_server_dbs->client_slots[client_idx] = 0;
++
++    close (client_fd);
++
++    return 0;
++  }
++
+   u32 brain_link_version = 0;
+ 
+   if (brain_recv (client_fd, &brain_link_version, sizeof (brain_link_version), 0, NULL, NULL) == false)
+@@ -2621,6 +2662,21 @@ HC_THREAD_FUNC brain_server_handle_client (void *p)
+     return 0;
+   }
+ 
++  // Authenticated, so the deadline comes off. A cracking client waits on its own run between
++  // requests, which on a slow hash is minutes, and cutting it off there would be a worse bug than
++  // the one the deadline is for.
++
++  if (brain_server_set_recv_timeout (client_fd, 0) == false)
++  {
++    brain_logging (stderr, client_idx, "setsockopt: %s\n", strerror (errno));
++
++    brain_server_dbs->client_slots[client_idx] = 0;
++
++    close (client_fd);
++
++    return 0;
++  }
++
+   u32 brain_session = 0;
+ 
+   if (brain_recv (client_fd, &brain_session, sizeof (brain_session), 0, NULL, NULL) == false)
+diff --git a/src/modules/module_34000.c b/src/modules/module_34000.c
+index ff9344c34f..be29c8e98f 100644
+--- a/src/modules/module_34000.c
++++ b/src/modules/module_34000.c
+@@ -208,7 +208,17 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
+ 
+   tmp_len = base64_decode (base64_to_int, (const u8 *) digest_pos, digest_len, tmp_buf);
+ 
+-  if (tmp_len > (int) DGST_SIZE) return (PARSER_HASH_LENGTH);
++  // The tag length is bounded by what the kernel can compute and compare, not by the digest buffer.
++  //
++  // argon2_final () builds the tag from the 64 byte blake2b state, so 64 bytes is the longest tag it
++  // can produce, and it writes digest_len / 4 words into the kernel's array. A longer tag used to be
++  // accepted here and then written past the end of that array on the device.
++  //
++  // The lower bound is the comparison: the kernel hands 4 words to COMPARE, so a tag under 16 bytes
++  // left words it never wrote to decide whether a candidate matched.
++
++  if (tmp_len < 16) return (PARSER_HASH_LENGTH);
++  if (tmp_len > 64) return (PARSER_HASH_LENGTH);
+ 
+   memcpy (digest, tmp_buf, tmp_len);
+ 
diff --git a/hashcat-racf-memory-factor.patch b/hashcat-racf-memory-factor.patch
new file mode 100644
index 0000000..0e9ed71
--- /dev/null
+++ b/hashcat-racf-memory-factor.patch
@@ -0,0 +1,110 @@
+From 0c39fad170911edb62f29f60147466abca7862e0 Mon Sep 17 00:00:00 2001
+From: Jens Steube <jens.steube at gmail.com>
+Date: Tue, 27 Oct 2026 22:02:50 +0100
+Subject: [PATCH] Prevent out of bounds device writes in RACF modes
+
+Modes 14200 and 37500 read a memory factor from the 32 character RACF header and use it to determine a kernel loop bound and an index into racf_kdfaes_tmp->out, a buffer of 256 words. Mode 37500 did not validate the factor. Mode 14200 rejected values above 10 but accepted values from 1 through 4, which become 0 in the subsequent division. A factor of 000B makes mode 37500 write to out[256] through out[511], while 0001 makes mode 14200 index out[] at 8 * (0 - 1). Both cases can be triggered by a hash file.
+
+Both parsers now reject memory factors outside the range 5 through 10. A factor of 10 fills the buffer exactly, while factors below 5 produce 0 after division. Mode 37500 now also performs the shift on an unsigned value, as mode 14200 already did, so the shift remains defined regardless of the header value.
+
+The repetition factor from the same header was also unchecked in both modes. It determines two iteration counts, each one less than a multiple of the factor. A factor of 0 therefore produced 0xffffffff for both counts, and both parsers now reject it.
+
+Both init2 kernels also return early when the memory factor is 0. That keeps the unconditional tail write at the end of each from indexing out[] at 8 * (0 - 1) if a future parser change ever allows 0 through.
+---
+ OpenCL/m14200-pure.cl      |  5 +++++
+ OpenCL/m37500-pure.cl      |  5 +++++
+ src/modules/module_14200.c | 10 ++++++++--
+ src/modules/module_37500.c | 13 ++++++++++++-
+ tools/fuzz/fuzz_parse.dict |  1 +
+ 5 files changed, 31 insertions(+), 3 deletions(-)
+
+diff --git a/OpenCL/m14200-pure.cl b/OpenCL/m14200-pure.cl
+index fc2ce95ed9..86e77dd6df 100644
+--- a/OpenCL/m14200-pure.cl
++++ b/OpenCL/m14200-pure.cl
+@@ -590,6 +590,11 @@ KERNEL_FQ KERNEL_FA void m14200_init2 (KERN_ATTR_TMPS_ESALT (racf_kdfaes_tmp_t,
+ 
+   if (gid >= GID_CNT) return;
+ 
++  // The parser rejects a mem_fac that divides to 0. The tail write at the end of this kernel
++  // would index out[] at 8 * (0 - 1) if one ever reached here.
++
++  if (esalt_bufs[DIGESTS_OFFSET_HOST].mem_fac == 0) return;
++
+   tmps[gid].key[0] = tmps[gid].salt_buf[4];
+   tmps[gid].key[1] = tmps[gid].salt_buf[5];
+   tmps[gid].key[2] = tmps[gid].salt_buf[6];
+diff --git a/OpenCL/m37500-pure.cl b/OpenCL/m37500-pure.cl
+index 1070e3ae33..a77f5165e3 100644
+--- a/OpenCL/m37500-pure.cl
++++ b/OpenCL/m37500-pure.cl
+@@ -531,6 +531,11 @@ KERNEL_FQ KERNEL_FA void m37500_init2 (KERN_ATTR_TMPS_ESALT (racf_kdfaes_tmp_t,
+ 
+   if (gid >= GID_CNT) return;
+ 
++  // The parser rejects a mem_fac that divides to 0. The tail write at the end of this kernel
++  // would index out[] at 8 * (0 - 1) if one ever reached here.
++
++  if (esalt_bufs[DIGESTS_OFFSET_HOST].mem_fac == 0) return;
++
+   tmps[gid].key[0] = tmps[gid].salt_buf[4];
+   tmps[gid].key[1] = tmps[gid].salt_buf[5];
+   tmps[gid].key[2] = tmps[gid].salt_buf[6];
+diff --git a/src/modules/module_14200.c b/src/modules/module_14200.c
+index a203f59df8..e831ea7e21 100644
+--- a/src/modules/module_14200.c
++++ b/src/modules/module_14200.c
+@@ -259,9 +259,15 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
+    */
+   // mem_fac is four hex digits off the line, so it reaches 0xffff, and the shift below is then
+   // undefined rather than large. The buffer it sizes is racf_kdfaes_tmp->out, u32[256], which is
+-  // what a mem_fac of 10 fills, and a mem_fac of 0 would shift by -1.
++  // what a mem_fac of 10 fills. Below 5 the division gives 0, and the kernel then indexes out[]
++  // with 8 * (0 - 1).
+ 
+-  if ((mem_fac < 1) || (mem_fac > 10)) return (PARSER_SALT_VALUE);
++  if ((mem_fac < 5) || (mem_fac > 10)) return (PARSER_SALT_VALUE);
++
++  // rep_fac comes off the same header and sets both iteration counts, each one less than a
++  // multiple of it, so a rep_fac of 0 makes them 0xffffffff.
++
++  if (rep_fac == 0) return (PARSER_SALT_ITERATION);
+ 
+   racf_kdfaes->mem_fac = (2u << (mem_fac - 1)) / 32;
+   /**
+diff --git a/src/modules/module_37500.c b/src/modules/module_37500.c
+index 0b19c3009b..37ed810782 100644
+--- a/src/modules/module_37500.c
++++ b/src/modules/module_37500.c
+@@ -248,7 +248,18 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
+   rep_fac |= ((u32) hex_convert (header_pos[20+3]) <<  0);
+   rep_fac |= ((u32) hex_convert (header_pos[20+2]) <<  4);
+ 
+-  racf_kdfaes->mem_fac = (2 << (mem_fac - 1)) / 32;
++  // Both factors are four hex digits off the line and reach 0xffff. The buffer mem_fac sizes is
++  // racf_kdfaes_tmp->out, u32[256], which is what a mem_fac of 10 fills. Below 5 the division
++  // gives 0, and the kernel then indexes out[] with 8 * (0 - 1).
++
++  if ((mem_fac < 5) || (mem_fac > 10)) return (PARSER_SALT_VALUE);
++
++  // rep_fac sets both iteration counts, each one less than a multiple of it, so a rep_fac of 0
++  // makes them 0xffffffff.
++
++  if (rep_fac == 0) return (PARSER_SALT_ITERATION);
++
++  racf_kdfaes->mem_fac = (2u << (mem_fac - 1)) / 32;
+   racf_kdfaes->rep_fac = rep_fac;
+ 
+   // salt (save to racf_kdfaes->salt_buf and salt->salt_buf)
+diff --git a/tools/fuzz/fuzz_parse.dict b/tools/fuzz/fuzz_parse.dict
+index ee7443be8a..04a117e50b 100644
+--- a/tools/fuzz/fuzz_parse.dict
++++ b/tools/fuzz/fuzz_parse.dict
+@@ -29,6 +29,7 @@
+ "$office$"
+ "$RAR3$"
+ "$7z$"
++"$racf-kdfaes$*"
+ 
+ "0123456789abcdef"
+ "deadbeef"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hashcat.git/commitdiff/9bf5d472a5de768fc61fe16aa31dbb22018805c3



More information about the pld-cvs-commit mailing list