Gabriele Gristina
490702fcfa
Backends: added Metal host-code
2022-02-05 22:48:16 +01:00
Gabriele Gristina
6175459b0a
Merge branch 'hashcat:master' into autotune_error_handling
2022-01-21 20:26:10 +01:00
Gabriele Gristina
7650894e02
fixed bug in benchmark engine, updated negative status code
2022-01-11 04:58:30 +01:00
Gabriele Gristina
607d314ff2
Merge branch 'master' into autotune_error_handling
2022-01-07 12:24:39 +01:00
Jens Steube
668d2179cd
Kernels: Refactored standard kernel declaration to use a structure holding u32/u64 attributes to reduce the number of attributes
2022-01-04 18:07:18 +01:00
Gabriele Gristina
3802adff7e
Autotune: Added error handling. By default skipping device on error, with --force using accel/loops/threads min values instead
2022-01-04 01:14:39 +01:00
Jens Steube
534bfd3172
Fixed out-of-boundary reads in attack mode 9 that were caused by a missing work item limit in the refactored autotune engine
2021-08-30 14:20:00 +02:00
Jens Steube
9254603960
Fixed out-of-boundary read in PKZIP masterkey kernel if the password candidate has length zero.
...
Now that kernel threads are no longer fixed over the entire session, hardware_power and hardware_power_all
needs to be updated the same way as kernel_power and kernel_power_all for each call to inner2_loop().
2021-08-17 17:38:45 +02:00
Jukka Ojanen
3d7ce7162b
Merge branch 'master' of https://github.com/hashcat/hashcat
2021-08-01 15:36:52 +03:00
Jens Steube
d4997d1255
Added support for auto-tuning --kernel-threads (-T) on startup
2021-07-31 16:49:39 +02:00
Jukka Ojanen
8d51fca192
No need to synchronize after run_kernel()
2021-07-29 14:40:45 +03:00
Jukka Ojanen
c48e6a25a8
Enqueue several commands before clFlush()
2021-07-29 14:28:01 +03:00
Jukka Ojanen
e889cf98a9
Few cleanups in autotune
2021-07-28 23:50:58 +03:00
Jukka Ojanen
a86b44a750
Allow async execution of autotune() and prepare try_run() for async kernel execution
2021-07-26 01:51:19 +03:00
Jukka Ojanen
f07ff6f03d
Use kernel_bzero instead of kernel_memset when value is zero
2021-07-20 12:04:12 +03:00
Jukka Ojanen
4c0f6dd263
Merge branch 'hashcat:master' into master
2021-07-20 12:00:41 +03:00
Jens Steube
7d43b6e1eb
Clear tmps memory region after autotune use
2021-07-19 11:59:53 +02:00
Jens Steube
0504498e86
Merge pull request #2886 from pellekuiters/issue-2876
...
Auto-tuning outside kernel can cause unpredictable behavior for tmp_t structs on CUDA
2021-07-19 11:52:07 +02:00
pelle
ac3ccfcc51
Run init() and loop_prepare() during autotune to prevent possible corruptions during loop().
2021-07-19 11:07:24 +02:00
Jukka Ojanen
72a418932c
HIP: Use kernel_bzero instead of kernel_memset when value is zero
2021-07-17 19:12:09 +03:00
Jukka Ojanen
8066a47ac5
Merge branch 'hashcat:master' into master
2021-07-17 16:21:08 +03:00
Jukka Ojanen
43b5a138d4
Use kernel_bzero instead of kernel_memset when value is zero
2021-07-14 17:13:39 +03:00
Jens Steube
23c3c178bf
Limit max threads per block to 64 to enable offline compiler to make better use if available registers
...
Fix double free() for hip_event1/hip_event2 and hip_stream causes segfault
Replace hc_cuCtxSetCurrent() with hc_cuCtxPushCurrent() in order to align changes with HIP
Add vector datatype operators (if we decide to use them - currently unused)
2021-07-12 09:28:26 +02:00
Jens Steube
1b84a9e53b
Add missing backports from code base v6.2.2
...
Fix context to thread management
Fix missing code in selftest.c, autotune.c, hashes.c, dispatch.c and backend.c
Use IS_HIP depending code makes it easier for future optimization related to inline assembly calls - instead of using IS_CUDA || IS_HIP
See TODO markers for more optimizations / next steps
2021-07-11 12:38:59 +02:00
Jens Steube
04d5e5a119
New Attack-Mode: Association Attack. Like JtR's single mode. Very early
...
stage. See hashcat Forum for detailed writeup.
2020-09-29 15:56:32 +02:00
Jens Steube
9b64a405d1
Fixed cleanup of password candidate buffers on GPU set from autotune in case -n was used
2020-05-20 12:44:04 +02:00
Rosen Penev
bd6c0e57e4
Change 0/1 to true/false
...
Found with clang-tidy
2019-09-11 18:36:52 -07:00
Rosen Penev
98e17d5774
Run through clang-tidy's readability-uppercase-literal-suffix
...
1 and l are visually similar and can be confused. This also changes u to U
for consistency.
2019-08-03 19:59:17 -07:00
Jens Steube
1943c35e4a
Improve kernel-loops detection for slow hashes
2019-05-13 17:25:33 +02:00
Jens Steube
fa9d073f9a
Manually unroll sha2 hashes
2019-05-11 23:15:58 +02:00
Jens Steube
a6bc1d3cc0
Experimental kernel-thread autotuner
2019-05-11 11:58:18 +02:00
Jens Steube
08dc1acc02
More CUDA rewrites
2019-05-05 11:57:54 +02:00
Jens Steube
ec9925f3b1
Warnings self-check and autotune with CUDA
2019-05-04 21:52:00 +02:00
Jens Steube
f2948460c9
Some first kernel invocations
2019-05-04 10:13:43 +02:00
Jens Steube
50a6e720ca
More OpenCL variables rename
2019-05-02 17:30:46 +02:00
Jens Steube
af8e317cf4
Begin renaming some OpenCL only variables
2019-05-02 17:12:59 +02:00
Jens Steube
4b986de5fb
Prepare native CUDA hybrid integration
2019-04-25 14:45:17 +02:00
jsteube
4548d15dde
Fix spin_damp datatype
2019-04-19 12:26:37 +02:00
jsteube
708a86fb59
Move old ascii_digest() to hashes.c and rename it to hash_encode(), also remove some unused includes
2019-03-31 17:39:00 +02:00
jsteube
1537fc4e5d
Improve handling of temporary skipped devices (due to JiT build failure or unstable_warning)
2019-03-04 10:29:57 +01:00
jsteube
3c37daf94b
Get rid of hash_mode in autotune.c
2018-12-17 18:49:07 +01:00
Jens Steube
e770449702
OpenCL Runtime: Use our own yielding technique for synchronizing rather than vendor specific
...
Parameter: Rename --nvidia-spin-damp to --spin-damp (now accessible for all devices)
2018-11-20 12:32:24 +01:00
Rosen Penev
77daf05dd0
Add HC_API_CALL to a few functions
...
On 32-bit MinGW, clang was throwing errors about this.
64-bit MinGW and regular MSYS does not throw warnings after the change.
2018-09-18 16:34:00 -07:00
jsteube
52c52836e3
Add new option --slow-candidates which allows hashcat to generate passwords on-host
2018-09-01 12:31:17 +02:00
jsteube
fe4413797e
OpenCL Kernels: Use three separate comparison kernels (depending on keyver) for WPA instead of one
2018-02-13 09:13:35 +01:00
jsteube
c4f30220a0
OpenCL Kernels: Refactored kernel thread management from native to maximum per kernel
2018-02-11 21:29:57 +01:00
jsteube
05a01d3843
fix some datatypes
2018-02-08 19:13:29 +01:00
jsteube
a3a16f676f
OpenCL Kernels: Add a decompressing kernel and a compressing host code in order to reduce PCIe transfer time
...
For details see https://hashcat.net/forum/thread-7267.html
2018-02-05 17:18:58 +01:00
Jens Steube
665a514977
Use a more conservative mechanic in the last step of the autotune
2018-02-03 19:01:11 +01:00
Jens Steube
fb00b528c4
Improve autotune and synchronize results on same OpenCL devices
2018-02-03 13:49:39 +01:00