1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-23 23:18:21 +00:00
Commit Graph

2981 Commits

Author SHA1 Message Date
Jens Steube
bb27771c06 Fix -m 14200 when used in -D1 mode
Update -m 30601 module and kernel to latest hashcat base
2025-07-18 21:53:59 +02:00
Jens Steube
929af92b7d
Merge pull request #3907 from DCNick3/mega-password
Mode 33400: mega.nz password-protected link (PBKDF2-HMAC-SHA512)
2025-07-17 22:52:45 +02:00
hashcat-bot
15c906d455
Merge pull request #4092 from PenguinKeeper7/pbkdf1-sha1
Add PBKDF1-SHA1 / m32900
2025-07-16 21:43:16 +02:00
PenguinKeeper7
4fa0194c91 Convert to ATTACK_EXEC_OUTSIDE_KERNEL 2025-07-16 20:05:05 +01:00
hashcat-bot
b7f8f21452
Merge pull request #4164 from twier/module_30601_bcrypt_sha256
Add module 30601 for bcrypt-sha256 v2
2025-07-16 20:49:17 +02:00
hashcat-bot
6bedcc07d6
Update to latest hashcat base 2025-07-16 20:23:27 +02:00
hashcat-bot
ad796638ff
Merge branch 'master' into mega-password 2025-07-16 20:22:00 +02:00
Jens Steube
479eaca458 Renamed hash-mode 33400 to 14200 to make room for the 33400 PR, which predates the current one using that hash-mode.
Fixed an invalid return type in hc_bytealign_be() if used from the CUDA runtime.
2025-07-16 20:20:25 +02:00
Jens Steube
77b5c65e52 Fix hc_bytealign_be() declaration for CUDA: use u32x instead of u32
Add hc_uint4_t to SCRYPT to work-around Intel OpenCL alignment bug.
Align large buffers (V1-V4) manually to 1k-byte boundaries.
Replace uint4 xor operator with xor_uint4() function.
2025-07-16 12:43:11 +02:00
Jens Steube
dd02267bf2 Automatic downtune problem:
In the automatic downtune routine, hashcat prepares a fixed 512MiB host
buffer that is known to be allocated by the compute runtimes (CUDA, HIP,
OpenCL, Metal), and over which hashcat has no control.

However, hashcat still divides the maximum available host memory by the
active device count to automatically as a preparation to later downtune
the -n and -T parameters when memory is limited.

Hashcat reserves 512MiB per active device. With bridges, the active
devices become bridge units, which for modes 70000, 70100, and 70200
equals the CPU core count. On a 32-core CPU, this multiplies to 16GiB,
even though the memory is actually shared because of threading.
This leads to an overestimation of memory usage.

A simple fix is to divide the 512MiB buffer by the active device count.
This keeps the full 512MiB for a single GPU but avoids overestimating
memory usage with many virtual devices.

Fix code handling kernel-accel value in argon2_common.c for CPU,
which was accidentally removed during previous refactoring.

Set thread count to 1 for hash-mode 70000. Oversubscribing the CPU isn't
useful here. This allows to keep the wordlist count low, which is very
welcome for slow hashes like Argon2id.

Fix unit test for 20011/20012/20013 (DiskCryptor) by adding setuptools
to install_modules.sh and replacing AES.MODE_XTS with python_AES.MODE_XTS.

Fix false negative for kernel 32800, which only occurred if all
conditions were true: multihash, -a 3, optimized mode, and password
length between 16 and 31.

Fix Python package name in BUILD_WSL.md command line example.
2025-07-16 08:38:02 +02:00
Jens Steube
a53e05c8f7 Update -m 33400 to latest hashcat base 2025-07-15 09:52:35 +02:00
hashcat-bot
b324177172
Merge pull request #3940 from c0rs/racf-kdfaes-support
Added plugin for RACF KDFAES hashes
2025-07-15 09:50:33 +02:00
Jens Steube
ef0c23f2fb Updated -m 32800 to latest hashcat base
Fixed -m 32800 false negative in -a 3 multihash cracking in optimized mode
2025-07-15 09:35:37 +02:00
hashcat-bot
29691c31d8
Merge pull request #3977 from PenguinKeeper7/md5sha1md5
Added hash-mode: md5(sha1(md5($pass)))
2025-07-15 09:19:43 +02:00
Jens Steube
24fcb3d656 Renamed -m 32800 to -m 21900 2025-07-15 09:18:51 +02:00
hashcat-bot
ca87b1008c
Merge pull request #3945 from ventaquil/code-cleanup-veracrypt
VeraCrypt code cleanup
2025-07-15 07:18:36 +02:00
Gabriele Gristina
8f389bb205
Fix the same Apple Intel bug with Metal on inc_rp_optimized, this time on Apple Silicon 2025-07-15 02:06:35 +02:00
Gabriele Gristina
f39f7cc877
cleanup 2025-07-14 16:09:09 +02:00
Gabriele Gristina
4444aa9eea
Fix HC_INLINE_RP macro on inc_rp_optimized.h 2025-07-14 00:30:12 +02:00
Gabriele Gristina
867b3d4df1
Fixed bug in inc_rp_optimized.cl on Apple Intel with Metal
Fixed old/critical bug on Apple Intel with Metal by patching inc_rp_optimized.cl.
Tested on Apple Intel and Silicon with Metal/OpenCL and on Linux with CUDA, HIP, OpenCL GPU/CPU

Metal Backend: parallelize pipeline state object (PSO) compilation internally

Set unexported setting, setShouldMaximizeConcurrentCompilation, to boost kernel build process on Apple Metal (only >= 3)
2025-07-14 00:25:58 +02:00
Tobias Wiersema
1bbda76c2a Removed REAL_SHM code to fix memory corruption
Code originally taken from module 28300 was obviously conflicting with
OPTS_TYPE_DYNAMIC_SHARED and thus corrupting the local memory when
REAL_SHM was set.
2025-07-13 19:57:41 +02:00
hashcat-bot
4e93d23d04
Merge pull request #4074 from magnumripper/pdf13
Added m10510 for PDF 1.3 - 1.6 using RC4-40
2025-07-13 19:23:37 +02:00
hashcat-bot
558f9b859d
Update 10510 kernel to latest hashcat base 2025-07-13 19:14:56 +02:00
hashcat-bot
7320dcd90e
Merge branch 'master' into whitespace_indentation_fix 2025-07-13 18:47:40 +02:00
hashcat-bot
ec6a8b5f81
Merge pull request #4017 from fin3ss3g0d/master
Add Apache Shiro 1 algorithm (12150)
2025-07-13 15:24:54 +02:00
Jens Steube
b7aabe4cb4
It's possible to implement the kernel entirely in registers, since all offsets are known throughout the algorithm's lifetime 2025-07-13 15:23:18 +02:00
Gabriele Gristina
a40e9e07b5
Metal Backend: define USE_BITSELECT and USE_SWIZZLE for Apple Intel 2025-07-13 12:14:01 +02:00
Jens Steube
725528058c Fix funnelshift usage on AMD and NV platforms
While HIP doesn't have funnelshift emulation, it's better to use the
native __builtin_amdgcn_alignbit() on AMD. For NVIDIA, we need to make
sure the target matches a supported SM version and fall back to
byte_perm() otherwise.

Fix hash-mode 6900 in optimized mode and attack mode 3

This hash-mode doesn't use any stopbit, and if the password length is
exactly 16 or 32, then hashcat selects the next higher kernel, e.g., s16
for password length 32. For such corner cases, we must copy s08 code to
s16. It doesn't seem other algorithms are affected. Some have the s16
body left empty, but they have a password length limit < 32.

Add test_edge* to .gitignore
2025-07-13 08:59:52 +02:00
Jens Steube
16b75ed2de Fixed -m 20800 with OPTS_TYPE_PT_ADDBITS14 2025-07-12 14:06:01 +02:00
Jens Steube
0a3be95445 Added ARGON2_G() for CPU, improving performance from 91 H/s to 97 H/s.
This works because CPUs support hardware 64-bit rotate.

Added hc_umullo() and rewrote trunc_mul() for Argon2. No performance
impact, but trunc_mul() is now easier to read.

Re-enabled USE_BITSELECT, USE_ROTATE, and USE_SWIZZLE for OpenCL. We
have a new unit test script; let's see if OpenCL runtimes have
improved.

Previous fix for -m 21800 in multihash mode was incomplete. Now
shows the correct cracked hash.

Re-enabled --hwmon-disable for users. While it's important for SCRYPT
and Argon2 performance, a warning is now shown when it affects
speed.

Updated hash modes with OPTS_TYPE_NATIVE_THREADS:
1376x, 1377x, 1378x, 14800, 19500 and 2300x.
2025-07-12 13:47:37 +02:00
hashcat-bot
900bd0b74e
Merge branch 'master' into fix_7801 2025-07-12 06:56:20 +02:00
Gabriele Gristina
dc3418eaa4
Fixed bug in module_constraints and kernel for hash-mode 7801 2025-07-12 01:49:22 +02:00
Gabriele Gristina
dbd41ca750
Fixed bug in module_constraints and kernel for hash-mode 7800 2025-07-12 01:35:25 +02:00
PenguinKeeper7
131790ccc7
Merge branch 'hashcat:master' into pbkdf1-sha1 2025-07-11 19:46:28 +01:00
hashcat-bot
3003a23909
Merge branch 'master' into fix/mode-m21310 2025-07-11 20:08:53 +02:00
hashcat-bot
24fc384e6b
Merge pull request #4108 from matrix/cast-cleanup
Kernel: Renamed multiple defines in CAST cipher to fit expected naming convention of the C++ language standard
2025-07-11 20:05:41 +02:00
hashcat-bot
5322bec828
Merge pull request #4112 from matrix/issue_3652_v2
Added hash-mode: md5(md5(md5($pass.$salt1)).$salt2)
2025-07-11 19:58:16 +02:00
Jens Steube
d7fb2ffa06 Fixed both a false positive and a false negative in -m 21800. Previously,
only the first hash in a multihash list was marked as cracked, regardless
of which hash was actually cracked. For example, if the second hash was
cracked, it incorrectly marked the first as cracked and left the second
uncracked. This issue only affected beta versions and only in multihash
cracking mode.

Added deep-comp kernel support for Kerberos modes 28800 and 28900,
enabling multihash cracking for the same user in the same domain, even if
the password was changed or the recording was bad.

Added a rule ensuring that device buffer sizes for password candidates,
hooks, and transport (tmps) must be smaller than 1/4 of the maximum
allocatable memory. If not, hashcat now automatically reduces kernel-accel
down to 1, then halves the number of threads and restores kernel-accel up
to its maximum, repeating until the size requirement is met.

Fixed salt length limit verification for -m 20712.

Fixed password length limit for -m 14400.

Fixed unit test salt generator for -m 21100, which could produce duplicate
hashes under certain conditions.

Added the OPTS_TYPE_NATIVE_THREADS flag to the following hash modes
(after benchmarking): 7700, 7701, 9000, 1375x, 1376x, 14800, 19500, 23900.
2025-07-11 15:02:58 +02:00
Ewald Snel
e61066f10b Added CPU support for argon2 (34000 plugin).
- Used blake2b_transform() instead of blake2b_update() to avoid compiler problems
   on Intel OpenCL and segfaults on POCL (still unsure of exact cause but possibly
   related to the shuffle functions in combination with these OpenCL drivers).
 - Remove 'bug' comments (these are resolved now).
 - Added implementation of 'argon2_hash_block()' for non-warped (CPU) case.
 - Introduced 'LBLOCKSIZE' for the size of an argon2 block per thread in u64.
   Most of the code should now be able to support any warp/wavefront size.
2025-07-11 11:20:59 +02:00
hashcat-bot
11677e218e
Merge pull request #4307 from PenguinKeeper7/electrum-fix
Search for more Electrum prv key prefixes
2025-07-11 07:45:48 +02:00
PenguinKeeper7
d4cefed0a7 Search for more Electrum prv key prefixes 2025-07-10 21:24:44 +01:00
hashcat-bot
c63b810e86
Merge pull request #4301 from matrix/fix_33800
fix build errors with 33800
2025-07-10 18:45:13 +02:00
hashcat-bot
3085addca0
Merge pull request #4302 from matrix/fix_32500
fix build errors with 32500 on Metal
2025-07-10 18:44:32 +02:00
hashcat-bot
ff76cdc3e7
Merge pull request #4303 from matrix/fix_32700
fix build errors with 32700 on Metal
2025-07-10 18:43:59 +02:00
Jens Steube
06344910a4 Refactored HIP kernel code for improved performance and cleanup
- Replaced inline asm in hc_byte_perm() with __builtin_amdgcn_perm()
- Replaced inline asm in hc_bytealign() with __builtin_amdgcn_alignbyte()
- Defined HC_INLINE as default for HIP, significantly boosting kernel performance of pure kernels
- Removed IS_ROCM from inc_vendor.h as it's no longer needed
- Removed backend-specific code from several hash-modes and inc_rp_optimized.cl, as hc_bytealign_S() is now available on all backends
2025-07-10 13:31:00 +02:00
Gabriele Gristina
3ed45d4e83
fix build errors with 32700 on Metal 2025-07-09 22:37:59 +02:00
Gabriele Gristina
3d6ebd00b7
fix build errors with 32500 on Metal 2025-07-09 22:34:05 +02:00
Gabriele Gristina
a590ce8351
fix build errors with 33800 2025-07-09 22:19:02 +02:00
Jens Steube
5ffbc5edc4
Merge pull request #4123 from PenguinKeeper7/metamask-false-positive
Raise Metamask false positive rate
2025-07-09 16:15:55 +02:00
hashcat-bot
470954de71
Merge pull request #4296 from matrix/argon2_metal_moreStable
got stable cracking with argon2 on Apple Metal
2025-07-09 09:46:07 +02:00