1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-10 15:51:10 +00:00
Commit Graph

4961 Commits

Author SHA1 Message Date
philsmd
a2065b7c38
fixed problem of negative values in status.c 2022-03-22 16:17:26 +01:00
philsmd
101d01eaa0
fixes #3211: fixes -k in -a 7 with -O 2022-03-22 15:59:09 +01:00
philsmd
51fda295dd
fixes #3201: fixed -O with -a 7 in --stdout mode 2022-03-22 15:40:36 +01:00
philsmd
15a4767ad2
minor: removes whitespace in -m 23400 = Bitwarden 2022-03-22 15:33:11 +01:00
philsmd
e5657723d3
improve --stdout + --stdin-timeout-abort fix 2022-03-22 15:26:52 +01:00
Dávid Bolvanský
f018dd9263 json-encode device name 2022-03-21 09:25:26 +01:00
Dávid Bolvanský
50aea559c5 added device type 2022-03-21 08:55:16 +01:00
Dávid Bolvanský
100cd5fea4 status-json: also print device name 2022-03-21 08:55:16 +01:00
philsmd
5b0e621511
prevent further integer overflows in rp.c 2022-03-20 11:07:25 +01:00
Dávid Bolvanský
672fb2de4b Do not use term colors if output is not terminal 2022-03-18 15:57:13 +01:00
Jens Steube
58205847f6
Merge pull request #3218 from willcrozi/stdin-stdout-fix
allow --stdout and --stdin-timeout-abort to be used together
2022-03-16 13:21:48 +01:00
Jens Steube
e69a37d929
Merge pull request #3219 from matrix/fix_3213
fix dpapimk_tmp_v1_t on module_15310.c
2022-03-15 18:51:39 +01:00
Jens Steube
cc794ed843
Merge pull request #3223 from philsmd/philsmd-rules-limit
prevent integer overflows in rp.c
2022-03-13 20:11:30 +01:00
philsmd
b51f536ac5
sanity check for u32 cast for combs_cnt, bfs_cnt 2022-03-13 14:41:34 +01:00
philsmd
5d9d3c7eb7
sanity check for u32 cast for combs_cnt, bfs_cnt 2022-03-13 14:25:09 +01:00
philsmd
8e4e42a613
prevent integer overflows in rp.c 2022-03-13 13:46:50 +01:00
Jens Steube
8bc4a92089
Merge pull request #3215 from philsmd/philsmd-register-limit
fixed missing Register-Limit optimizer string in init screen
2022-03-12 17:14:13 +01:00
Gabriele Gristina
4591071bc6 fix dpapimk_tmp_v1_t on module_15310.c 2022-03-11 13:34:33 +01:00
Will Crozier
73637d43db allow --stdout and --stdin-timeout-abort to be used together 2022-03-11 10:46:49 +00:00
philsmd
e00af46a22
add Register-Limit to the "Optimizers" list 2022-03-09 18:23:10 +01:00
philsmd
cd33a8a200
fixes #2560: mention "main driver" within the error message 2022-03-09 18:15:54 +01:00
Jens Steube
2b89c69cc4
Merge pull request #3202 from Greexter/bitwarden-fix
Added parameter for second PBKDF2 iteration count for -m 23400, fixes #3033
2022-03-09 13:15:39 +01:00
Jens Steube
43a27117a4
Merge pull request #3163 from willcrozi/stdout-perf
stdout mode: batched password index/buffer transfers from device
2022-03-08 13:24:09 +01:00
Jens Steube
c94a26b382
Merge pull request #3196 from matrix/Amazon_AWS4-HMAC-SHA256
Added hash-mode: Amazon AWS4-HMAC-SHA256
2022-03-07 16:15:05 +01:00
Jakub
2a5ee51530
Merge branch 'master' into bitwarden-fix 2022-03-06 13:41:32 +01:00
Gabriele Gristina
6f45285919 DPAPI masterkey file v2 (context 3) 2022-03-06 00:55:47 +01:00
Gabriele Gristina
d5c545804b Added hash-mode: DPAPI masterkey file v1 (context 3) 2022-03-06 00:50:46 +01:00
Gabriele Gristina
fe96e26eff Prepare for DPAPI masterkey Context 3 2022-03-06 00:47:14 +01:00
Gabriele Gristina
0d282bbfb3 Added hash-mode: Kerberos 5, etype 18, DB 2022-03-05 12:59:38 +01:00
Gabriele Gristina
580afa985d Added hash-mode: Kerberos 5, etype 17, DB 2022-03-05 12:59:14 +01:00
Jens Steube
96715f7c09
Merge pull request #3197 from matrix/13100_format
Added support to use "John the Ripper" hash format with hash-type 13100
2022-03-04 22:37:26 +01:00
Jens Steube
317abecac9
Merge pull request #3203 from Lars-Saetaberget/25800_bugfix
Fix mask endianness for 25800
2022-03-03 18:59:42 +01:00
Lars Sætaberget
918b4cf7da Added kernel, module and unit-test for hash-mode 28400: bcryptsha512 2022-03-02 12:32:01 +01:00
Lars Sætaberget
e71f3e519f Fix mask endianness for 25800 2022-03-02 11:03:14 +01:00
Jens Steube
4e2ad23081
Merge pull request #3198 from philsmd/philsmd-whitespace
code style fix: remove extra spaces in source code
2022-03-01 19:20:57 +01:00
Gabriele Gristina
7d636eeef9
Merge branch 'master' into 13100_format 2022-03-01 01:59:44 +01:00
Jakub
0147826870
Merge branch 'master' into bitwarden-fix 2022-03-01 00:29:44 +01:00
Jakub Štrom
9b66c01535 Add parameter for second iteration count 2022-02-28 23:16:12 +01:00
Jakub Štrom
74af4eced6 update module version 2022-02-28 21:47:59 +01:00
Jakub Štrom
67ba1f2112 add new version fix 2022-02-27 23:29:15 +01:00
Gabriele Gristina
9615bf566b fix Cygwin build warnings 2022-02-27 14:39:28 +01:00
Gabriele Gristina
eb30a1c820 fix Cygwin build warnings 2022-02-27 14:26:34 +01:00
Gabriele Gristina
7e16335999 Added support to use 'John the Ripper' hash format with hash-type 18200 2022-02-27 12:15:17 +01:00
Gabriele Gristina
39912575b2 fix style 2022-02-27 12:12:22 +01:00
philsmd
56bb1b9974
remove extra spaces in terminal.c 2022-02-27 10:24:08 +01:00
philsmd
87638caecd
remove extra spaces at line end in -m 25400 module 2022-02-27 10:21:12 +01:00
philsmd
c9e3c7abac
remove extra spaces in main.c 2022-02-27 10:18:54 +01:00
Gabriele Gristina
395d19513d fix sample formats 2022-02-26 21:19:52 +01:00
Gabriele Gristina
ca9656e983 Updated krb5tgs struct on 13100 kernels 2022-02-26 19:39:23 +01:00
Gabriele Gristina
8e00ef9a88 Added support to use 'John the Ripper' hash format with hash-type 13100 2022-02-26 19:14:20 +01:00
Will Crozier
edf7365cda stdout mode: transfer indexes and compressed pw buffer from device in blocks, reducing overhead 2022-02-25 16:35:55 +00:00
Jens Steube
e9cb796528
Merge pull request #3186 from willcrozi/opencl-include-quoting
Improve handling of whitespace in kernel compiler include-path
2022-02-24 17:50:13 +01:00
Gabriele Gristina
633698b2ee fix build warnings with gcc 2022-02-23 22:48:16 +01:00
Gabriele Gristina
98ce2496d5 Amazon AWS4-HMAC-SHA256 2022-02-23 22:20:18 +01:00
Jens Steube
94f02dd33c
Merge pull request #3177 from matrix/ext_metal_segfault
Fixed segfault on hc_mtlInvocationHelper() with valInt
2022-02-22 12:15:25 +01:00
Jens Steube
85bb039781
Merge pull request #3191 from matrix/backend_ctxInit
Improved management of systems with multiple OpenCL platforms and show empty OpenCL platforms only in backend information mode
2022-02-21 19:25:21 +01:00
Will Crozier
919ad5a1fd warn/skip for AMD devices on Linux when OpenCL/HIP include-path has spaces 2022-02-20 20:14:57 +00:00
Giulio Garzia
c49238e9cd OpenCL include-path workaround for Windows with AMD GPU 2022-02-20 17:55:16 +00:00
Gabriele Gristina
3156b487b7 Avoid quoting OpenCL include path when it's not required to 2022-02-20 17:55:16 +00:00
philsmd
e870f1a03b
code style and formatting fixes in wordlist.c 2022-02-20 12:12:00 +01:00
philsmd
60cf7fdccd
remove extra spaces at end of lines in wordlist.c 2022-02-20 12:04:56 +01:00
philsmd
9a96501a69
-m 28600 code style and formatting fixes 2022-02-20 11:52:02 +01:00
philsmd
912c46d958
-m 28600 remove extra spaces at end of lines 2022-02-20 11:34:48 +01:00
Gabriele Gristina
f890cd8134 Improved management of systems with multiple OpenCL platforms and show empty OpenCL platforms only in backend information mode 2022-02-19 21:17:56 +01:00
Gabriele Gristina
24de156ce8 Fixed backend active devices checks 2022-02-19 17:21:27 +01:00
Jens Steube
6dc45eacc6
Merge pull request #3184 from matrix/metal_opencl_gpu_utilization
Hardware Monitor: Add support for GPU device utilization readings using iokit on Apple Silicon (OpenCL and Metal)
2022-02-18 12:13:52 +01:00
Gabriele Gristina
fb12de4be6 fix style 2022-02-16 05:40:34 +01:00
Gabriele Gristina
7eb66e9936 Hardware Monitor: Add support for GPU device utilization readings using iokit on Apple Silicon (OpenCL and Metal) 2022-02-15 22:20:03 +01:00
Chick3nman
58c90985f0 Add module potfile disable warning message to startup, test formatting 2022-02-15 12:29:43 -06:00
Jens Steube
cae2562c09
Merge pull request #3179 from Chick3nman/Disable-Auto-Detect
Disable auto detect for specialist and deprecated kernels
2022-02-15 19:12:25 +01:00
Chick3nman
09d7b49985 Disable autodetect for PDF Owner/User module as specialist 2022-02-15 09:09:43 -06:00
Chick3nman
c38bf29a82 Formatting change 2022-02-14 18:13:34 -06:00
Chick3nman
0066def1be Fix formatting 2022-02-14 18:10:46 -06:00
Chick3nman
af233b8f0c Implement new status message as 2 lines, variable output 2022-02-14 18:09:48 -06:00
Chick3nman
ff018b8586 Reformat Status Message 2022-02-14 17:39:58 -06:00
Chick3nman
037d2daa13 Change read-only, spacing fixes 2022-02-14 17:08:12 -06:00
Chick3nman
6d61c87456 Fix typo in type 2022-02-14 17:05:24 -06:00
Chick3nman
81138db5c5 Fix Typo in logic 2022-02-14 17:01:07 -06:00
Chick3nman
808e6fff2b Prepare "Net New" value for status, test initial status message format 2022-02-14 16:54:36 -06:00
Chick3nman
88dbbad6b3 Disable autodetect for specialist kernels(Collider, PMK, NT, etc.) and deprecated kernels to aid users in launching attacks without an algorithm selected 2022-02-14 13:25:44 -06:00
Chick3nman
c8b3164722 Change logic to cover all cases 2022-02-14 12:57:51 -06:00
Chick3nman
b187c66236 Further checks for attack modes where -S isn't relevant 2022-02-14 12:51:33 -06:00
Chick3nman
e47a58db44 Introduce logic to stop advice message from suggesting options that do not work in the current attack mode. Fixes #3169 2022-02-14 12:43:20 -06:00
Jens Steube
fea59e3a3a
Merge pull request #3167 from matrix/env_info
Added folder_config info to --backend-info/-I output, changed --backend-info/-I option handling
2022-02-13 22:05:16 +01:00
Gabriele Gristina
2f31391632 Fix segfault on hc_mtlInvocationHelper() with valInt 2022-02-13 21:16:21 +01:00
Gabriele Gristina
8c2756d74d fix wording 2022-02-13 12:41:27 +01:00
Gabriele Gristina
3064c63c71 User Options: Change --backend-info/-I option type, from bool to int 2022-02-13 12:33:11 +01:00
Gabriele Gristina
d79f8298a1 OpenCL Backend: show device_type in device list info on Apple Silicon 2022-02-12 02:46:35 +01:00
Gabriele Gristina
47134e363e Backend Info: Added folder_config info to output 2022-02-12 02:03:48 +01:00
Jens Steube
ae3eeb1713
Merge pull request #3166 from matrix/metal_vectors
Metal: added support for vectors up to 4
2022-02-11 17:55:33 +01:00
Gabriele Gristina
b3d3b31c3e Metal: added support for vectors up to 4 2022-02-10 21:53:08 +01:00
philsmd
251ecc3b0b
fixes #3029: cracking long salts in -m 4510/4710 2022-02-09 16:43:24 +01:00
Jens Steube
be75e4b4ea Rename STR() to M2S() to avoid future collisions and move from kernel source to command line parameter 2022-02-07 09:57:08 +01:00
Jens Steube
8192fd0d47
Merge pull request #3157 from matrix/rpi_Makefile
Fixed building error on Raspberry Pi
2022-02-06 14:53:07 +01:00
Gabriele Gristina
7ac879f1e4 Fixed unused variable warning on Windows 2022-02-06 02:04:27 +01:00
Gabriele Gristina
89a52cfe21 Fixed building error on Raspberry Pi 2022-02-06 01:57:04 +01:00
Gabriele Gristina
829d49c8ba resync src/backend.c 2022-02-06 01:17:19 +01:00
Gabriele Gristina
6427ee57f4 cleanup ext_metal.m 2022-02-05 23:30:04 +01:00
Gabriele Gristina
490702fcfa Backends: added Metal host-code 2022-02-05 22:48:16 +01:00
Jens Steube
8293964097 Fix coding convention 2022-02-04 10:28:45 +01:00
Gabriele Gristina
f21ae3219c
Merge branch 'master' into metal_prepare_kernelIncludes_v2 2022-02-02 07:33:45 +01:00
Jens Steube
d4b7663d19 Fix warning on Linux
```
src/terminal.c: In function ‘backend_info’:
src/terminal.c:821:10: warning: unused variable ‘hw_model_len’
[-Wunused-variable]
  821 |   size_t hw_model_len = 0;
      |          ^~~~~~~~~~~~
```
2022-02-01 18:22:54 +01:00
Gabriele Gristina
c2cbb2938a Padding backend_info() output, updated changes.txt 2022-01-30 19:49:23 +01:00
Gabriele Gristina
3ce57b5d2a Added generic system info to backend_info() 2022-01-29 08:15:28 +01:00
Gabriele Gristina
cd363b32f6
Merge branch 'master' into metal_prepare_kernelIncludes_v2 2022-01-28 19:56:26 +01:00
Jens Steube
b8a2853be0
Merge pull request #3142 from matrix/appleSilicon_universalBinary
Added support to building Universal macOS binary on Apple Silicon
2022-01-27 16:26:17 +01:00
Gabriele Gristina
f13948d14c Merge remote-tracking branch 'origin/master' into updated_moduleUnstableWarnings_and_statusCodes 2022-01-24 07:32:41 +01:00
Gabriele Gristina
e5237a0ad2
Merge branch 'hashcat:master' into metal_prepare_kernelIncludes_v2 2022-01-24 07:13:51 +01:00
Gabriele Gristina
0bb2f8ebe4
Merge branch 'hashcat:master' into autotune_error_handling 2022-01-23 00:08:22 +01:00
Gabriele Gristina
07240ada8b Added support to building Universal macOS binary on Apple Silicon 2022-01-22 23:08:18 +01:00
Gabriele Gristina
01a28f80f7 Updated handling of POCL's known bugs 2022-01-22 22:40:18 +01:00
Gabriele Gristina
2c0b4cd20a
Merge branch 'hashcat:master' into metal_prepare_kernelIncludes_v2 2022-01-22 21:06:02 +01:00
Gabriele Gristina
0525f434e8
Merge branch 'master' into updated_moduleUnstableWarnings_and_statusCodes 2022-01-22 18:52:57 +01:00
Jens Steube
d85f86373c
Merge pull request #3113 from matrix/apple_gpu_modules_native_threads
Set native_threads to 32 with Apple GPU's on multiple hash modules
2022-01-22 18:26:26 +01:00
Gabriele Gristina
a1ced24564 Fixed bug on benchmark engine, add some unstable warnings, updated negative status code 2022-01-22 12:10:09 +01:00
Gabriele Gristina
10fa1434ca Updated status code: set -10 for autotune failure 2022-01-21 20:28:13 +01:00
Gabriele Gristina
6175459b0a
Merge branch 'hashcat:master' into autotune_error_handling 2022-01-21 20:26:10 +01:00
Gabriele Gristina
f38aff1497 Hash-Mode 13100: set native_threads to 32 with Apple GPU's 2022-01-21 20:01:58 +01:00
Gabriele Gristina
c061f02d27 Hash-Mode 10500: set native_threads to 32 with Apple GPU's 2022-01-21 20:01:04 +01:00
Gabriele Gristina
819cbe77b0 Hash-Mode 7500: set native_threads to 32 with Apple GPU's 2022-01-21 20:00:06 +01:00
Jens Steube
e2eacb4dd3
Merge pull request #3138 from b0lek/PostgreSQL_SCRAM
Adding PostgreSQL SCRAM-SHA-256 hash mode - #3038
2022-01-21 17:42:15 +01:00
Gabriele Gristina
0180b29390
Merge branch 'master' into apple_gpu_modules_native_threads 2022-01-20 21:52:58 +01:00
b0lek
b1e0434bd7 changed mode number to 28600 2022-01-20 19:31:09 +01:00
Jens Steube
0c91f6fc01
Merge pull request #3127 from b0lek/hex_separator
Added hex format for --separator option
2022-01-20 17:03:27 +01:00
Gabriele Gristina
2e4a136758 Refactored standard kernel includes in order to support Apple Metal runtime, updated backend, test units and status code 2022-01-18 22:52:14 +01:00
b0lek
415e95ab38 Adding PostgreSQL SCRAM-SHA-256 hash mode 2022-01-17 19:51:20 +01:00
Gabriele Gristina
c1b56a3018 Hash Info: show more information (Updated Hash-Format. Added Autodetect, Self-Test, Potfile and Plaintext encoding) 2022-01-16 14:48:49 +01:00
Gabriele Gristina
adfe942751 Fixed --hash-info example password output: force uppercase if OPTS_TYPE_PT_UPPER is set 2022-01-16 08:40:42 +01:00
Jens Steube
aff608fe29
Merge branch 'master' into fix_benchmarkEngine_plus_updated_statusCode 2022-01-15 14:10:59 +01:00
b0lek
a621c856bd
allow hex format for --separator #3084 2022-01-13 17:53:04 +01:00
Chick3nman
5708b4cf6f
Fix logic flaw
Line 81 contains inverted logic introduced by PR#3117, this should fix that logic to detect BSD and correctly select `gsed` on BSD and not on linux
2022-01-11 15:05:02 -06:00
Jens Steube
ee2d50d341
Merge pull request #3117 from DeforaNetworks/khorben/netbsd
Fix the build for NetBSD
2022-01-11 18:49:08 +01:00
Gabriele Gristina
7650894e02 fixed bug in benchmark engine, updated negative status code 2022-01-11 04:58:30 +01:00
Gabriele Gristina
c48f044fb7 Fixed false negative on Unit Test with hash-type 25400 2022-01-10 01:50:32 +01:00
Pierre Pronchery
1cb24b0a3c Fix the build for NetBSD 2022-01-10 00:14:45 +01:00
Jens Steube
dfd316c653
Merge pull request #3103 from matrix/backend_session_update_mp_rl
Removed hc_clSetKernelArg() call from backend_session_update_mp_rl()
2022-01-09 13:22:00 +01:00
Jens Steube
7a9a1b37d0
Merge pull request #3104 from matrix/backend_session_update_mp
Removed hc_clSetKernelArg() call from backend_session_update_mp()
2022-01-09 13:21:52 +01:00
Jens Steube
583c8ef1bd
Merge branch 'master' into autotune_error_handling 2022-01-08 17:16:59 +01:00
Gabriele Gristina
5de942710d Hash-Mode 25400: set native_threads to 32 with Apple GPU's 2022-01-07 22:35:36 +01:00
Gabriele Gristina
feb0bbfb75 Hash-Mode 18200: set native_threads to 32 with Apple GPU's 2022-01-07 22:34:46 +01:00
Gabriele Gristina
ff74ad5a99 Hash-Mode 10420: set native_threads to 32 with Apple GPU's 2022-01-07 22:33:39 +01:00
Gabriele Gristina
bd8e7a2975 Hash-Mode 10410: set native_threads to 32 with Apple GPU's 2022-01-07 22:33:03 +01:00
Gabriele Gristina
bec4b2e601 Hash-Mode 10400: set native_threads to 32 with Apple GPU's 2022-01-07 22:32:17 +01:00
Gabriele Gristina
d4c264ebf1 Hash-Mode 9820: set native_threads to 32 with Apple GPU's 2022-01-07 22:31:03 +01:00
Gabriele Gristina
0471725d39 Hash-Mode 9810: set native_threads to 32 with Apple GPU's 2022-01-07 22:30:22 +01:00
Gabriele Gristina
54fd3f8973 Hash-Mode 9800: set native_threads to 32 with Apple GPU's 2022-01-07 22:29:36 +01:00
Gabriele Gristina
d7ddb425e5 Hash-Mode 9720: set native_threads to 32 with Apple GPU's 2022-01-07 22:28:35 +01:00
Gabriele Gristina
688038adc6 Hash-Mode 9710: set native_threads to 32 with Apple GPU's 2022-01-07 22:27:50 +01:00
Gabriele Gristina
2d2d745b3c Hash-Mode 9700: set native_threads to 32 with Apple GPU's 2022-01-07 22:26:55 +01:00
Gabriele Gristina
607d314ff2
Merge branch 'master' into autotune_error_handling 2022-01-07 12:24:39 +01:00
Gabriele Gristina
b2499211b3
Merge branch 'master' into apple_updated_Makefile 2022-01-07 12:23:56 +01:00
Jens Steube
3c08f70703
Merge pull request #3111 from philsmd/philsmd-rm-extra-spaces-kerberos5
remove extra spaces kerberos5
2022-01-07 10:11:05 +01:00
Jens Steube
56ef2b4bde
Merge pull request #3102 from matrix/backend_cuda_restyle
CUDA Backend: moved functions to ext_cuda.c/ext_nvrtc.c and includes to ext_cuda.h/ext_nvrtc.h
2022-01-06 11:29:56 +01:00
philsmd
57ad3becf1
minor: 19800/kerberos5 indentation fix 2022-01-06 11:28:05 +01:00
philsmd
a867af0933
minor: indentation fix 2022-01-06 11:26:20 +01:00
Jens Steube
6d2d865830 Fixed handling of password candidates that are shorter than the minimum password length in Association Attack 2022-01-05 11:05:41 +01:00
Jens Steube
045ca5cb7a Fixed method how OPTS_TYPE_AUX* kernels are called in association mode, for instance WPA/WPA2 kernels 2022-01-05 10:46:00 +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
80f0dff8fb Makefile: updated MACOSX_DEPLOYMENT_TARGET to 10.15 and removed OpenCL framework from LFLAGS_NATIVE on MacOS 2022-01-04 17:41:57 +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
Gabriele Gristina
994083eaf5 Removed hc_clSetKernelArg() call from backend_session_update_mp() 2022-01-03 18:28:19 +01:00
Gabriele Gristina
0f0cf1fe08 Removed hc_clSetKernelArg() call from backend_session_update_mp_rl() 2022-01-03 17:16:27 +01:00
Gabriele Gristina
f8ceb8785e CUDA Backend: moved functions to ext_cuda.c/ext_nvrtc.c and includes to ext_cuda.h/ext_nvrtc.h 2022-01-03 16:29:15 +01:00
Gabriele Gristina
78c7ee2af6 HIP Backend: moved functions to ext_hip.c/ext_hiprtc.c and includes to ext_hip.h/ext_hiprtc.h 2022-01-02 19:12:41 +01:00
Jens Steube
656ed048f0
Merge pull request #3086 from matrix/backend_opencl_restyle
OpenCL Backend: moved functions to ext_OpenCL.c and includes to ext_OpenCL.h
2022-01-02 18:29:22 +01:00
Jens Steube
6d5add1720
Merge pull request #3085 from matrix/clang_build_warnings
Fix build warnings with clang <= 10
2021-12-31 17:40:04 +01:00
Gabriele Gristina
85afe0fc5a simplify Makefile 2021-12-30 13:34:43 +01:00
Gabriele Gristina
a205a41bd5 Added missing options to help output 2021-12-29 15:36:07 +01:00
Jens Steube
6975cc0903
Merge pull request #2293 from seger672/m21420
Implement sha256($salt.sha256_bin($pass)) kernel
2021-12-29 11:43:33 +01:00
Jens Steube
8c6ed65cd9
Update module_21420.c 2021-12-29 11:42:14 +01:00
Gabriele Gristina
26b6054cab OpenCL Backend: moved functions to ext_OpenCL.c and includes to ext_OpenCL.h 2021-12-28 21:55:05 +01:00
Gabriele Gristina
644e2db8ba Fix build warning with clang <= 10 2021-12-28 21:26:08 +01:00
Gabriele Gristina
861e644057 OpenCL Backend: added workaround to make optimized kernels work on Apple Silicon 2021-12-24 17:30:49 +01:00
Jens Steube
ae9e3072b2 Merge branch 'master' of https://github.com/hashcat/hashcat 2021-12-23 19:23:46 +01:00
Jens Steube
df6e5480ca Print module_extra_tuningdb_block undefined compute device warning only on GPU 2021-12-23 19:23:35 +01:00
Jens Steube
806257f2e6
Merge pull request #3068 from matrix/backend_info_add_localMemory_size
Backend Info: Added local memory size to output
2021-12-22 19:17:05 +01:00
Jens Steube
f1bcb6e059
Merge pull request #3067 from b0lek/master
Added guess data into --status-json output to fix #3061
2021-12-21 19:30:34 +01:00
Jens Steube
5015bc0d2e Module Parser: Renamed struct token_t to hc_token_t to avoid naming conflict with token_t on MacOS 2021-12-20 13:19:40 +01:00
Jens Steube
0d304b68f1 Added hash-mode: Teamspeak 3 (channel hash) 2021-12-19 10:33:06 +01:00
Jens Steube
ad48ef2a8c Merge branch 'master' of https://github.com/hashcat/hashcat 2021-12-18 17:51:36 +01:00
Jens Steube
c80ec44fdd Prepare TS3 plugin: parser module 2021-12-18 17:51:16 +01:00
b0lek
705dd16f50
Quotes removed from numbers and % sign removed. 2021-12-18 16:44:40 +01:00
Gabriele Gristina
450f9549b4 Backend Info: Added local memory size to output 2021-12-17 22:43:11 +01:00
b0lek
2b3162f49b
adding guess data into --status-json output 2021-12-17 22:07:28 +01:00
Brandon Chalk
fc57a97a09 Fix JWT module to correctly return cracked hash
Fixes issue #3063
2021-12-16 20:05:32 -08:00
Jens Steube
8b61f60e86
Merge pull request #3058 from matrix/apple_m1_final
Added support to use Apple Silicon compute devices
2021-12-15 20:53:10 +01:00
Jens Steube
bf865d8bff Added hash-mode: Exodus Desktop Wallet (scrypt) 2021-12-14 13:46:20 +01:00
Gabriele Gristina
3fd6dac523 Set default device-type to GPU with Apple M1 2021-12-14 00:37:17 +01:00
Gabriele Gristina
0fae3a4394 Added support for Apple Silicon compute devices 2021-12-13 22:42:42 +01:00
Jens Steube
e88122019b
Merge pull request #3055 from b0lek/master
Fixing HEX wordlist support in -m 3000 see #3050
2021-12-13 14:45:49 +01:00
b0lek
3c493877ab
Adding upcase conversion for --hex-wordlist mode 2021-12-12 15:11:46 +01:00
b0lek
33db7a06e0
Fixed typo and some comments 2021-12-12 14:43:16 +01:00
b0lek
b6e5c7427b
Added missing convertion to upper case 2021-12-12 14:27:10 +01:00
Jens Steube
acc592e963 Added support to use --debug-mode in attack-mode 9 (Association Attack) 2021-12-12 10:18:05 +01:00
b0lek
2a3a840146
Solved --wordlist-autohex-disable not working correcly. 2021-12-11 21:14:45 +01:00
b0lek
8804c62d49
Fixing HEX wordlist support in -m 3000 see #3050 2021-12-11 19:38:30 +01:00
Jens Steube
8b9fa631ce Fixed missing option flag OPTS_TYPE_SUGGEST_KG for hash-mode 11600 to inform the user about possible false positives in this mode 2021-12-11 16:32:45 +01:00
Jens Steube
d4a54287b1 Add missing backslash for RUN_INSTRUCTION_CHECKS() on AMD 2021-12-09 14:03:32 +01:00
Jens Steube
3d53188cc3 Tuning Database: Added a warning if a module implements module_extra_tuningdb_block but the installed computing device is not found 2021-12-04 16:56:16 +01:00
Jens Steube
d89409ae37 Update iteration count for -m 7401, see #3049 2021-12-03 17:51:05 +01:00
Jens Steube
040fb3b7eb
Merge pull request #3045 from hashcat/philsmd-patch-1
remove whitespace in -m 7100 = macOS
2021-12-01 14:32:04 +01:00
Jens Steube
632b6db5f9 Allow user to override nonce_error_corrections regardless of information from message_pair 2021-11-30 13:05:53 +01:00
philsmd
d67155d3d6
remove whitespace in -m 7100 = macOS 2021-11-29 17:00:45 +01:00
Jens Steube
964cff951f Fixed functional error when nonce-error-corrections that were set on the command line in hash-mode 22000/22001 were not accepted 2021-11-29 10:40:06 +01:00
Jens Steube
0d1fbf2bb7 Update module template for -m 250x and -m 1680x 2021-11-28 17:51:44 +01:00
Jens Steube
5b4ac09e91 User Options: Add new module function module_hash_decode_postprocess() to override hash specific configurations from command line 2021-11-28 13:58:27 +01:00
Jens Steube
d5d09df75c Association Attack: Enable module specific pw_min and pw_max settings to avoid false positives in -a 9 attack-mode 2021-11-27 09:14:03 +01:00
Jens Steube
5389adff81 Usage Screen: On windows console, wait for any keypress if usage_mini_print() is used 2021-11-26 09:53:42 +01:00
Jens Steube
98edc944e3 Remove OPTS_TYPE_MP_MULTI_DISABLE from -m 11300 for testing 2021-11-24 21:16:35 +01:00
Jens Steube
490ef6be74 Remove OPTS_TYPE_MP_MULTI_DISABLE from -m 3200 for testing 2021-11-23 18:01:14 +01:00
Jens Steube
c5637b8dc0 Unset PRODUCTION option 2021-11-21 17:01:01 +01:00
Jens Steube
fe1d3f95bb hashcat 6.2.5 2021-11-21 16:39:01 +01:00
Jens Steube
9d06bcc980 Fix scrypt tuning for Vega64 on -m 22700 2021-11-16 22:54:33 +01:00
Jens Steube
d2ccd96da6 Added hash-mode: Windows Hello PIN/Password 2021-11-15 16:14:59 +01:00
Jens Steube
93ba57f183 Update more module with OPTS_TYPE_MAXIMUM_THREADS 2021-11-14 10:11:53 +01:00
Jens Steube
21f91c5bb8 Module Optimizaters: Added OPTS_TYPE_MAXIMUM_THREADS to deactivate the else branch route in the section to find -T before compilation
Set the new flag based on some testings with RX6900XT
2021-11-13 17:27:06 +01:00
Gabriele Gristina
9be7bc71a5 OpenCL Backend: added workaround to support Apple Silicon 2021-11-11 00:57:54 +01:00
Jens Steube
58cea1cce3 Merge branch 'master' of https://github.com/hashcat/hashcat 2021-11-10 19:33:55 +01:00
Jens Steube
53f6693495 Temporary enable HIP 4.4/ROCM 4.5 on Linux and globally set native thread count 2021-11-10 19:32:54 +01:00
Jarle Thorsen
ef83575c8f Increases the maximum value for s2k-count. The maximum s2k-count value is 65011712 according to the PGP spec. Increating this value fixes a salt iteration exception for hashes with non-default value for s2k-count. (Fix successfully tested with a hash with 62914560 s2k-count.) 2021-11-08 09:44:48 +01:00
Jens Steube
4bafdfc3e6
Merge pull request #3017 from Chick3nman/master
Add Signature matching for mac2john format
2021-11-05 13:21:39 +01:00
Jens Steube
b768f96228 Device Threads: The default maximum device thread number has been reduced from 1024 to 256, users can still overwrite with the -T option 2021-11-03 09:08:17 +01:00
Chick3nman
aeb4f7ef7f
Add Signature matching for mac2john format
Adds signature match for mac2john's $pbkdf2-hmac-sha512$ hash format
2021-11-02 04:59:44 -05:00
Jens Steube
4213f83336 Update some typos in modules which caused them to fail if used from benchmark_deep.pl 2021-11-02 09:28:44 +01:00
Jens Steube
518ddeb53a Fix function declaration in -m 27800 kernel and some typos in MurMur based modules 2021-11-02 08:40:03 +01:00
Jens Steube
f84aca82ca Backend types: The default filter for the device types is now set so that only the GPU is used, except for APPLE, where we set CPU 2021-11-01 10:49:20 +01:00
Jens Steube
1d33b57144 PDF 1.7 Kernel: Improved performance on AMD GPU by using shared memory for the scratch buffer
Inspired by https://github.com/reger-men/hashcat/blob/6.2.4/OpenCL/m10700-optimized.cl
2021-10-30 20:16:45 +02:00
Jens Steube
4a7e656ba7 Revert #3014 because it broke functionality, see https://github.com/openwall/john/issues/2809#issuecomment-952846956 2021-10-28 17:01:31 +02:00
Jens Steube
b8b61894df Fix segfault in updated parser for -m 19700. To reproduce one need to trigger hashcat hash-mode autodetection: ./hashcat /etc/shadow 2021-10-27 19:43:51 +02:00
Jens Steube
7e9e00a649 Some format fix for -m 19700 2021-10-26 14:02:46 +02:00
Jens Steube
8591c477ca Merge branch 'master' of https://github.com/hashcat/hashcat 2021-10-25 20:39:05 +02:00
Jens Steube
e5551c65ac Some format fix for -m 19700 2021-10-25 20:38:38 +02:00
Brouillamini
dcbadf3d68 Added Computer account decoding for -m 19700 2021-10-24 17:44:09 +02:00
Jens Steube
49a68cd6c1 AMD Driver: Updated requirements for AMD Linux drivers to ROCm 4.5 or later due to new HIP interface 2021-10-21 20:03:01 +02:00
Jens Steube
4534b210d8 Merge branch 'master' of https://github.com/hashcat/hashcat 2021-10-19 19:26:36 +02:00
Jens Steube
576a71af5c Update minimum HIP version from 4.4 to upcoming 4.5 2021-10-19 19:26:10 +02:00
Jens Steube
50fc474f25 Fix example hashcat password for -m 3000, which is actually in upper case, since LM does not support lower case characters 2021-10-18 16:38:15 +02:00
Jens Steube
707bff5c20 Backport nonce_error_corrections workaround from -m 22000 to -m 22001 2021-10-17 19:31:17 +02:00
Jens Steube
8f41c346ef Remove temporary workaround for wpa->message_pair in -m 22000 2021-10-16 08:45:56 +02:00
Jens Steube
6d24f18f8c Temporary workaround for #2987 2021-10-15 11:33:09 +02:00
Jens Steube
552e58f3a8 Synchronize -m 25400 hash name entries of module and readme.txt 2021-10-14 09:00:07 +02:00
Jens Steube
5e61ebf988 Update hash categories, keep them all singular 2021-10-14 08:56:23 +02:00
Jens Steube
756c29ec57 Add missing cleanup on windows if outdated HIP version is detected 2021-10-13 20:00:28 +02:00
Jens Steube
733f9c2d77 Add better detection future HIP 4.4 2021-10-12 20:01:14 +02:00
Jens Steube
c08ad6f587
Merge pull request #3007 from philsmd/whitespace_fix
whitespace and code style fixes
2021-10-10 13:33:11 +02:00
Jens Steube
d6f8f3089a Added hash-mode: CRC64Jones 2021-10-09 11:43:04 +02:00
philsmd
5ef522ed8f
whitespace and code style fixes 2021-10-08 17:38:54 +02:00
philsmd
fde01b1d4b
change default pass for LM 2021-10-08 17:00:13 +02:00
Jens Steube
07e58631a5 Backend devices: In non -S mode, limit the number of workitems so that no more than 4GB of host memory is required per backend device 2021-10-04 08:36:56 +02:00
Jens Steube
d34616c423 Added hash-mode: CRC32C 2021-10-02 09:57:16 +02:00
Jens Steube
5e48f2a552 Fixed invalid handling of initialization value for -m 11500 2021-09-30 21:30:20 +02:00
Slattz
c717821f84 Add MurmurHash3 module 2021-09-27 21:07:23 +01:00
Jens Steube
4b6654b503 Fix unstable plugin to driver warning 2021-09-24 13:35:18 +02:00
Jens Steube
c1fd42fe72 Reduce work item maximum in -S mode even further, tested with NTLM 2021-09-23 12:46:00 +02:00
Jens Steube
bd2cde31ae Back-end devices: In -S mode, limit the number of workitems so that no more than 2GB of host memory is required per backend device 2021-09-22 13:03:25 +02:00
Jens Steube
4ef1509bc7 Backend Devices: Reduce maximum workitems limited derived from available host memory down from to 8GB to 4GB per backend device 2021-09-21 13:01:15 +02:00
Jens Steube
db8de70ac8
Merge pull request #2988 from matrix/metamask_big
MetaMask: Increase the supported data len from 784b to 3136b and set pw-min to 8
2021-09-19 07:46:47 -04:00
Jens Steube
dbefc7e60e Fixed strategy for eliminating hashes with zero length in LM when multiple hashes contain a zero hash 2021-09-18 14:14:28 +02:00
Jens Steube
ee3eb21a0d Update hashcat discord address in usage screen 2021-09-17 13:26:15 +02:00
Jukka Ojanen
c6ac306950 Fix fgetl() logic 2021-09-13 19:26:00 +03:00
Jens Steube
540c0dde81
Merge pull request #2877 from thatux/25400_salt
improve 25400: recover both owner and user; add user password to hash; better test
2021-09-11 20:56:18 +02:00
Jens Steube
a1ec246c8d Fix format string template in -m 27700 2021-09-10 20:34:42 +02:00
Jens Steube
aea0071b58
Merge pull request #2965 from philsmd/master
fixes #2674: added -m 27700 = MultiBit Classic .wallet (scrypt)
2021-09-10 20:24:06 +02:00
philsmd
afa2330e6a
fixes #2973: allow longer size fields for -m 11600 = 7-Zip 2021-09-10 17:47:09 +02:00
Jens Steube
721e1ea54d Fixed division by zero because backend_ctx->hardware_power_all was not re-inserted after refactoring device_param->hardware_power 2021-09-08 17:37:18 +02:00
Jens Steube
6f61c314ec
Merge pull request #2962 from jtojanen/unzip
Set unzip internal buffer size to 256k
2021-09-06 19:59:59 +02:00
philsmd
8db02091a1 fixes #2674: added -m 27700 = MultiBit Classic .wallet (scrypt) 2021-09-06 19:54:22 +02:00
Gabriele Gristina
694f0cd7c8 metamask: double the CT len again 2021-09-06 18:17:11 +02:00
Jens Steube
8c14fd85ea POCL: Added a workaround for an issue in POCL that uses a quote character as part of the path itself given to a path for the -I option 2021-09-05 10:55:59 +02:00
Jens Steube
5503212b37 Fix CRLF line-endings in src/modules/module_17010.c 2021-09-04 18:33:16 +02:00
Jens Steube
76facb56cf Replace sha1_update_swap() with sha1_update()
Move hc_bytealign_be_S() to kernel
Remove invalid use of NEW_SIMD_CODE
Replace hc_bytealign_be_S() with hc_bytealign_le_S()
Change zero strategy in memzero_le_S()
2021-09-04 18:32:00 +02:00
Jens Steube
af40ec0640
Merge pull request #2907 from fse-a/GPG
Added GPG module and kernel
2021-09-04 18:27:54 +02:00
Jukka Ojanen
7b5f584fac Set unzip internal buffer size to 256k 2021-09-04 17:08:52 +03:00
Jens Steube
82b337fbca
Merge pull request #2960 from jtojanen/chunked
Refactor file reading/writing
2021-09-03 10:10:08 +02:00
Miezhiko
0d5aed883b
Fix compilation without brain
Signed-off-by: Miezhiko <Miezhiko@gmail.com>
2021-09-02 17:52:27 +04:00
Jukka Ojanen
ac9d2241c2 Increase unzReadCurrentFile() chunk size to INT_MAX 2021-09-02 16:03:25 +03:00
Jukka Ojanen
592b28f65f Add tests for 32 bit build 2021-09-02 15:57:22 +03:00
Jukka Ojanen
e6c89040fe Refactor xz file reading 2021-09-02 15:16:19 +03:00
Jukka Ojanen
63cc905bbc Refactor zip file reading 2021-09-02 14:59:38 +03:00
Jukka Ojanen
b542d293b4 Refactor Windows file reading/writing 2021-09-02 13:49:28 +03:00
Jukka Ojanen
5baaa4fb0f Fix merge mistake 2021-09-02 12:08:36 +03:00
Jukka Ojanen
213b533975 Use HCFILE_BUFFER_SIZE for xz stream 2021-09-02 12:00:46 +03:00
Jukka Ojanen
5afbd77347 Merge branch 'master' of https://github.com/hashcat/hashcat into gzip 2021-09-02 11:57:54 +03:00
Jens Steube
318bd46ccb
Merge pull request #2949 from jtojanen/xz
Support on-the-fly loading of compressed wordlists in xz format
2021-09-02 10:31:00 +02:00
Jukka Ojanen
1b4edf879b Set GZIP internal buffer size to 256k (default 8k) 2021-09-01 14:28:24 +03:00
Jens Steube
bdd3f27239 Fixed invalid progress counter initialization in attack-mode 9 when using --skip or --restore 2021-09-01 09:35:25 +02:00
Jens Steube
aaf26dee98 Makefile: Added wildcard include src/modules/module_*.mk directive so that plugin developers can add 3rd party libraries for their plugins 2021-08-31 20:54:32 +02:00
Gabriele Gristina
6cbc614826 metamask: double the CT len, set pw_min to 8 2021-08-31 16:40:11 +02:00
Jukka Ojanen
106fe88e4e Report the uncompressed size only if it's known 2021-08-30 16:28:54 +03:00
Jens Steube
cb93875c32 Disabled checking of the minimum and maximum length of the password candidate in attack-mode 9 because they are incompatible 2021-08-30 14:34:56 +02: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
5769c99686 Unset PRODUCTION option 2021-08-29 17:45:39 +02:00
Jens Steube
4aadb3a2f1 hashcat 6.2.4 2021-08-29 17:22:59 +02:00
Jens Steube
f1a42a9b26 Fix hash category in -m 27200 2021-08-29 17:17:17 +02:00
Jukka Ojanen
8324d3cd07 Initialize both 32bit CrcGenerateTable() and 64bit Crc64GenerateTable() 2021-08-29 01:31:56 +03:00
Jukka Ojanen
b2870dadfd Fix include file case 2021-08-28 20:05:59 +03:00
Jens Steube
ed7d58b850 Update benchmark hash-mode header visualization 2021-08-28 13:05:05 +02:00
Jukka Ojanen
f502d80459 Fix include file case 2021-08-27 11:09:37 +03:00
Jens Steube
34064bbae8
Update main.c 2021-08-27 08:50:21 +02:00
Jukka Ojanen
4dcdbebb2f Scan the xz file to determinate the number of blocks and streams, and its uncompressed size 2021-08-26 16:41:17 +03:00
Jukka Ojanen
985252e283 Silence GCC misleading indentation warning for LZMA SDK 2021-08-26 14:04:54 +03:00
Jukka Ojanen
47bb7620ee Use fastest SHA-256 implementation supported by CPU 2021-08-26 13:01:25 +03:00
Jukka Ojanen
639068548e Define _7ZIP_ST to build single-threaded LZMA SDK 2021-08-25 18:23:49 +03:00
Jukka Ojanen
3cacbe0e1f Add support for xz compressed files 2021-08-25 16:56:55 +03:00
Jukka Ojanen
4e224dec82 Make object file naming unique 2021-08-25 16:17:37 +03:00
TheWorkingDeveloper
9c0655dc83
Align formatting
Align formatting of the benchmark with the status changes.
Removed an extra newline which reduces clutter and groups together the mode and the result
2021-08-25 12:49:20 +02:00
Jens Steube
daea190be8
Merge pull request #2947 from TheWorkingDeveloper/patch-2
Reformat the status to include hashcat id of mode
2021-08-25 12:30:43 +02:00
Jens Steube
ec98373719
Update terminal.c 2021-08-25 12:29:46 +02:00
TheWorkingDeveloper
a29f70c9f9
Adjusted format
This format matches the format used in benchmarks and looks clean in the format of
id - name
2021-08-24 17:17:36 +02:00
Jens Steube
b4b2195fa5 OpenCL Runtime: The use of clUnloadPlatformCompiler () was disabled after some users received unexpected return codes 2021-08-24 09:37:49 +02:00
Jens Steube
d845154507 Fix hash-name length in -m 27200 2021-08-23 19:58:43 +02:00
TheWorkingDeveloper
6008a8873e
Add hashcat mode to status
Hashcat mode displayed after the hash name.
https://github.com/hashcat/hashcat/issues/2945
2021-08-23 18:59:29 +02:00
Jukka Ojanen
3bc7b6af90 Avoid directly accessing file handle 2021-08-21 14:29:10 +03:00
Jens Steube
85854236d1
Merge pull request #2935 from matrix/apple_gpu_workaround
workaround to 'clEnqueueWriteBuffer(): CL_INVALID_VALUE' with apple gpu
2021-08-21 08:04:37 +02:00
Jens Steube
330ad34f17 Fixed unintentional overwriting of the --quiet option in benchmark and speed-only mode 2021-08-20 10:41:44 +02:00
Your Name
db2e7d1391 m25400 can now recover both a owner-password and user-password (when set) based on a pdf's o-value
- added option to add the user-password to the pdf hash as an extra colum
- added pdf test files, both with and without a owner- and user-password

The main todo is to add a recovered user-password to back the hash that's written to the potfile.
Currently I'm printing a recovered password as "(user password=...) after the recovered owner-password.
Similair as the VC PIM is printed. However, this isn't most elegant.

A secondary todo is to verify a recovered user-password based on the u-value,
this could possibly simplify the check whether the recoverd password is a user-password or owner-password.
2021-08-20 10:16:14 +02:00
Jens Steube
50e28ff306
Merge pull request #2926 from jtojanen/master
Code cleanup and small fixes
2021-08-19 14:59:16 +02:00
Jukka Ojanen
6b4786de84 Make blocking clEnqueueWriteBuffer() non-blocking 2021-08-18 20:19:51 +03:00
Jukka Ojanen
fed32a58c7 Always cleanup and initialize all parts of HC_FILE structure 2021-08-18 19:28:00 +03:00
Jukka Ojanen
f3cd32bffd Avoid memory copy in rebuild_pws_compressed_append() and assign instead 2021-08-18 17:46:39 +03:00
Jukka Ojanen
089a4847db Check NULL pointer before using gzip/zip APIs 2021-08-18 17:18:31 +03:00
Jens Steube
76e388ea47 Memory Management: Check in OpenCL that CL_DEVICE_HOST_UNIFIED_MEMORY is true and if so, then half of the available memory
NEO driver: Activate the NEO driver (Intel GPU) after it passed several tests in hashcat using the latest NEO driver version
2021-08-18 16:10:51 +02:00
Jukka Ojanen
36c209c421 Check NULL pointer before using file APIs 2021-08-18 16:46:17 +03: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
Jens Steube
49117745cf STDIN Interface: Disable the --stdin-timeout-abort check after 1000 successful reads from stdin 2021-08-16 19:42:02 +02:00
Jens Steube
f45110d8ec Replace index() with strchr() for better Windows compatiblity 2021-08-14 11:51:53 +02:00
Jens Steube
05f107cbe5 Added option --generate-rules-func-sel to specify a pool of operators that the random rule generator is allowed to pick from 2021-08-14 11:43:32 +02:00
Jens Steube
6b485dd3fd
Merge pull request #2934 from jtojanen/fix_extra_tmp_size
Assume hashconfig->tmp_size is the element size
2021-08-14 10:06:55 +02:00
Jens Steube
53aec89b09
Merge pull request #2931 from matrix/fix_snmp_sha384_sha512
fix OPTS_TYPE in SNMPv3 HMAC-SHA384-256 / HMAC-SHA512-384 modules
2021-08-14 09:18:47 +02:00
Jens Steube
2ca13fb450
Merge pull request #2884 from matrix/vbox
Added hash-modes: VirtualBox (PBKDF2-HMAC-SHA256 & AES-128-XTS/AES-256-XTS)
2021-08-14 08:48:20 +02:00
Gabriele Gristina
72735ed7c4 update workaround 2021-08-13 20:17:09 +02:00
Gabriele Gristina
fef18965c3 workaround to 'clEnqueueWriteBuffer(): CL_INVALID_VALUE' with apple gpu 2021-08-13 16:00:32 +02:00
Jukka Ojanen
5c0820b8d3 Assume hashconfig->tmp_size is the element size 2021-08-13 13:13:12 +03:00
Gabriele Gristina
b61852675f Fixed segfault in potfile_handle_show() 2021-08-12 23:53:52 +02:00
Gabriele Gristina
c538d5d7ba fix OPTS_TYPE in SNMPv3 HMAC-SHA384-256 / HMAC-SHA512-384 modules 2021-08-12 23:37:07 +02:00
Gabriele Gristina
6ab2c13a0c vbox: add unit test, fix multihash 2021-08-12 17:36:20 +02:00
Gabriele Gristina
38772397cd fix kernels and modules 2021-08-12 14:43:34 +02:00
Gabriele Gristina
75d3d5503d merge master 2021-08-12 14:36:51 +02:00
Gabriele Gristina
bd7aa3b364 move modules to 27500 and 27600 2021-08-12 14:33:28 +02:00
Jens Steube
b386ab1c27
Merge pull request #2882 from matrix/vmware_vmx
Added hash-mode: VMware VMX (PBKDF2-HMAC-SHA1 + AES-256-CBC)
2021-08-12 08:32:38 +02:00
Jens Steube
9e9ed433e4
Update with newly added module functions 2021-08-12 08:24:38 +02:00
Jukka Ojanen
6cf553410b Avoid (possible) undefined behaviour in hc_fclose(), and don't assume plain file 2021-08-11 14:06:48 +03:00
Jens Steube
37957bf702
Update some formatting, added signature constant, Update new module functions module_extra_tuningdb_block() and module_deprecated_notice(), replaced some hex decode and encoding with real hex_encode() and hex_decode() functions. 2021-08-11 10:55:36 +02:00
Jukka Ojanen
9c7b9253e7 Fix potfile not closed if opened 2021-08-11 02:19:56 +03:00
Jukka Ojanen
ce0b4f571a Fix potfile_destroy() leaks 2021-08-11 01:30:07 +03:00
Jens Steube
577fada1de Add link to new hashcat discord 2021-08-10 23:54:18 +02:00
Jens Steube
caca54b0c6 Deprecated Plugins: Marked plugins 2500/2501 and 16800/16801 as deprecated 2021-08-10 18:14:21 +02:00
Jens Steube
01738fafa0 Deprecated Plugins: Add new module function module_deprecated_notice() to mark a plugin as deprecated and to return a free text user notice
Added option --deprecated-check-disable to enable deprecated plugins
2021-08-10 17:59:52 +02:00
Gabriele Gristina
a43e239db8 move to 27400, fix unit test 2021-08-10 16:35:15 +02:00
Jukka Ojanen
bcb4a8f391 Add clFlush() to backend_session_update_mp() and backend_session_update_mp_rl() 2021-08-10 01:49:55 +03:00
Jukka Ojanen
3b11b51113 Remove unnecessary hc_cuEventSynchronize() call 2021-08-09 18:58:04 +03:00
Jukka Ojanen
1edb649c1f Remove duplicate conditions 2021-08-09 18:48:20 +03:00
therealartifex
50684cc5f4
Merge branch 'hashcat:master' into master 2021-08-09 09:38:49 -04:00
Jens Steube
33a2b17b61 Fix some memory leaks in case hashcat aborts due to command line parameter settings 2021-08-07 18:21:39 +02:00
therealartifex
8711072838 Fix errors and make recommended changes, set pw_max to 9 for opti kernel 2021-08-06 09:58:19 -04:00
therealartifex
045f6d034e
Merge branch 'hashcat:master' into master 2021-08-06 09:01:34 -04:00
Jens Steube
b301a6746f Initialize struct stat s ourself because clang sanitizer thinks it's unknown if the structure is initialized in full by stat() call 2021-08-06 13:29:27 +02:00
therealartifex
97d1f4b36f Merge branch 'master' of https://github.com/therealartifex/hashcat 2021-08-05 16:57:08 -04:00
therealartifex
4448ea0f58 Update based on review recommendations 2021-08-05 16:56:08 -04:00
therealartifex
f6e9f5414d
Merge branch 'hashcat:master' into master 2021-08-05 14:12:00 -04:00
Jens Steube
5e1d37c82e Make unsupported AMD HIP runtime version error message a bit more human readable 2021-08-05 18:56:33 +02:00
therealartifex
9a7a9f66ef Add attack mode -a3 optimized kernel 2021-08-05 11:45:17 -04:00
Jens Steube
ea5ddee6e2 Add autotune event to inform the user about autotune is starting/stopping on startup
Fix uninitialized value in terminal.c
2021-08-05 17:18:10 +02:00
therealartifex
0738820a89
Merge branch 'hashcat:master' into master 2021-08-05 09:29:41 -04:00
Jens Steube
70f1e16a0d Improved error message in case a module is using outdated function structure
Fixed module of hash-mode 27300 missing entry for module_extra_tuningdb_block()
2021-08-05 14:32:11 +02:00
Jens Steube
63a0c5a1e1
Merge branch 'master' into snmpv3_sha512 2021-08-04 21:05:42 +02:00
Jens Steube
dde75f2763
Merge pull request #2904 from matrix/snmpv3_sha384
Added hash-mode: SNMPv3 HMAC-SHA384-256
2021-08-04 21:04:55 +02:00
Jens Steube
cb69e2d413 Added some HIP version checks, fall back to OpenCL automatically
Switched HIP version check from driverVersion to runtimeVersion
Fixed syntax check of HAS_VPERM macro in several kernel includes causing invalid error message for AMD GPUs on Windows
Updated AMD driver requirements
Updated docs/changes.txt with missing changes from previous commits
Fixed invalid vector data type in Murmur Hash in -a 3 mode
Fixed uninitialized variable warning in src/hashes.c
Fixed broken support for --generate-rules-func-min
2021-08-04 20:49:22 +02:00
therealartifex
ff55f31081 Update module, add a0 and a1 optimized kernels 2021-08-04 01:39:47 -04:00
therealartifex
afd3858f36
Merge branch 'hashcat:master' into master 2021-08-03 17:53:28 -04:00
therealartifex
d22bb0e712 Renumber to hash mode 27200 2021-08-03 17:50:21 -04:00
Gabriele Gristina
81b54c3689 rename to 27300, reduced the amount of memory allocated in gpu for SNMPv3 HMAC-SHA512-384 2021-08-03 21:42:42 +02:00
Gabriele Gristina
87f7bc59e3 reduced the amount of memory allocated in gpu for SNMPv3 HMAC-SHA384-256 2021-08-03 21:29:07 +02:00
Jens Steube
3c1542b0b1
Merge branch 'master' into fix_15300_bof 2021-08-03 08:43:24 +02:00
Jens Steube
1ee1a2278a
Merge branch 'master' into fix_15900_bof 2021-08-03 08:42:41 +02:00
Jens Steube
c2a79a4f9e
Merge pull request #2607 from Cablethief/master
Cracking NetNTLMv1/v2 using NT hashes
2021-08-03 08:37:12 +02:00
Michael Kruger
5c9be6c855 Add extra_tuningdb_block, test mod_constrants [-1,-1] 2021-08-02 14:43:22 +02:00
Jens Steube
b2d1f42905 Fix self-test functionality if FIXED_LOCAL_SIZE_COMP is used
Fix -m 25700 datatype in -a 3 mode and maximum password length in pure kernel mode
Fix -m 12500, 23700 and 23800 if password is exactly length 128
2021-08-02 12:00:17 +02:00
Michael Kruger
3ba02f11ea Expect Hex input, removed OPTS_TYPE_PT_ALWAYS_HEXIFY, added benchmark mask. 2021-08-02 11:40:14 +02:00
Jens Steube
7f16921d8b
Merge pull request #2916 from philsmd/7zip_long_data
Increase buffer sizes for -m 11600 = 7-Zip
2021-08-02 10:33:53 +02:00
Jens Steube
2a1ee5d218
Merge pull request #2915 from philsmd/master
fix buffer sizes for -m 13600 = WinZip
2021-08-02 10:33:21 +02:00
Jens Steube
af5d346244
Merge pull request #2894 from jtojanen/master
Allow async execution
2021-08-02 10:05:20 +02:00
therealartifex
483a62cb7c Add test module, update name of hash mode 27100 2021-08-01 21:31:06 -04:00
therealartifex
dc662c354e Update hash-mode number 2021-08-01 21:09:56 -04:00
Jens Steube
20a7b9f992 Tuning-Database: Add new module function module_extra_tuningdb_block() to extend hashcat.hctune content from a plugin
See src/modules/module_08900.c as an example
2021-08-01 16:25:37 +02:00
Jukka Ojanen
3d7ce7162b Merge branch 'master' of https://github.com/hashcat/hashcat 2021-08-01 15:36:52 +03:00
Jukka Ojanen
62a06f735f kernel_memset32(): assume offset and size are bytes, not elements 2021-08-01 15:19:15 +03:00
Jukka Ojanen
fdbfae9a28 Modify OpenCL clEnqueueFillBuffer() workaround 2021-08-01 14:47:08 +03:00
Jukka Ojanen
dbe2bad098 Maintain code style 2021-08-01 14:26:33 +03:00
Jukka Ojanen
1ee222d43f Replace free() with hcfree() 2021-08-01 14:21:18 +03:00
Jukka Ojanen
e352a79a05 Extend context in gidd_to_pw_t() 2021-08-01 14:15:03 +03:00
Jens Steube
9e077575c6
Merge branch 'master' into fix_24700_bof 2021-08-01 10:31:37 +02:00
Jens Steube
a440a4dee5
Merge branch 'master' into fix_25500_bof 2021-08-01 10:27:23 +02:00
Jens Steube
6bcbc218d6 Fixed out-of-boundary read in input_tokenizer() if the signatures in the hash line is longer than the constant signature in the plugin 2021-08-01 10:21:21 +02:00
Jens Steube
f4e52ca533 Add new rule function '3' to switch the case of the first letter after occurrence N of char X 2021-08-01 00:04:10 +02:00
Jens Steube
d4997d1255 Added support for auto-tuning --kernel-threads (-T) on startup 2021-07-31 16:49:39 +02:00
Gabriele Gristina
89234a5c7c Fixed buffer overflow in Stargazer Stellar Wallet XLM module 2021-07-31 16:18:29 +02:00
Gabriele Gristina
4869e2a9d1 Fixed buffer overflow in Stuffit5 module 2021-07-31 15:52:44 +02:00
Gabriele Gristina
a847a4c84b Fixed multiple buffer overflow in DPAPI masterkey file v2 module 2021-07-31 14:38:14 +02:00
Gabriele Gristina
ca896f89bc Fixed multiple buffer overflow in DPAPI masterkey file v1 module 2021-07-31 14:34:36 +02:00
therealartifex
6d4dbffda1 Moved the addition of static dashes to the kernel 2021-07-30 17:13:01 -04:00
therealartifex
1c9add307a
Merge branch 'hashcat:master' into master 2021-07-30 15:07:50 -04:00
Jens Steube
bb1ead3b01
Merge branch 'master' into snmpv3_sha256 2021-07-30 18:57:44 +02:00
Jens Steube
8801855b14
Merge branch 'master' into snmpv3_sha224 2021-07-30 18:56:20 +02:00
therealartifex
73104fafea Update based on recommendations and examination of mode 19500 2021-07-30 10:40:21 -04:00
therealartifex
33ce4f9720 Add new hash-mode 28200 (SHA1DASH), used in Zynga, 8tracks, and avvo 2021-07-30 10:39:45 -04:00
philsmd
92dfa7e137 Increase buffer sizes for -m 11600 = 7-Zip 2021-07-30 15:29:47 +02:00
philsmd
51adbbbe53 fix buffer sizes for -m 13600 = WinZip 2021-07-30 15:23:33 +02:00
Jukka Ojanen
e154f9e781 Few cleanups 2021-07-30 12:24:21 +03:00
Jukka Ojanen
c3195d0603 Merge branch 'master' of https://github.com/hashcat/hashcat 2021-07-30 11:34:25 +03:00
Jukka Ojanen
d721deb17a Move variables higher to avoid async execution stack problems 2021-07-29 15:23:24 +03:00
Jukka Ojanen
1064cce08c Synchronize before hooks 2021-07-29 15:22:25 +03:00
Jukka Ojanen
81c2ec3caf Small cleanup in gidd_to_pw_t() 2021-07-29 14:48:36 +03:00
Jukka Ojanen
8d51fca192 No need to synchronize after run_kernel() 2021-07-29 14:40:45 +03:00
Jukka Ojanen
7a8065d090 Do not call clWaitForEvents() after spin damper when we know that event status is CL_COMPLETE 2021-07-29 14:39:11 +03:00
Jukka Ojanen
c48e6a25a8 Enqueue several commands before clFlush() 2021-07-29 14:28:01 +03:00
Jens Steube
03ed06849a
Merge branch 'HIP44' into master 2021-07-29 11:00:28 +02:00
Jens Steube
d38d40c8ba Unlock all GPU threads for AMD GPUs if WaveFront size is 32 (basically new models)
Add new hash-modes to tools/benchmark_deep.pl
Fix MINGW issue on 64 bit constant in refactored kernel-accel limiting section
2021-07-29 10:49:44 +02:00
Jukka Ojanen
9ed231c99c Add comment to blocking OpenCL calls 2021-07-29 00:07:10 +03:00
Jukka Ojanen
e889cf98a9 Few cleanups in autotune 2021-07-28 23:50:58 +03:00
Jens Steube
a4299b74af Memory Management: Refactored the code responsible for limiting kernel accel in order to avoid out of -host- memory situations 2021-07-28 20:50:05 +02:00
Jukka Ojanen
d7cc8d7cd2 Revert due to module_03200.c, module_25600.c and module_25800.c using device_param->kernel_dynamic_local_mem_size_memset 2021-07-28 19:49:02 +03:00
Jukka Ojanen
8b590f651b Remove unused gpu_memset and its references 2021-07-28 19:26:30 +03:00
Jens Steube
9c0a37accf Update driver requirement 2021-07-28 07:56:34 +02:00
Jens Steube
ae39fa0979
Merge pull request #2908 from hashcat/master
Backports
2021-07-28 07:55:11 +02:00
Jens Steube
25f1c12e3c SCRYPT Kernels: Add more optimized values for some new NV/AMD GPUs and new semi-automated derivation process description
Blowfish Kernels: Backport optimizations reducing bank conflicts from bcrypt to Password Safe v2 and Open Document Format (ODF) 1.1
2021-07-28 07:51:27 +02:00
pelle
00c9c2ed1b Added GPG module and kernel. 2021-07-27 20:46:33 +02:00
Jukka Ojanen
5dbe4958b8 Remove digests_shown_tmp buffer, used in check_cracked() to zero out hashes 2021-07-27 19:01:13 +03:00
Jukka Ojanen
cdf27a1cb3 Implement async run_cuda_kernel_memset() and run_cuda_kernel_memset32() 2021-07-27 18:56:59 +03:00
Jukka Ojanen
e8be7028cd Handle errors inside check_cracked() 2021-07-27 16:28:07 +03:00
Jukka Ojanen
be33ccaa6c check_hash() needs to return value to indicate possible error 2021-07-27 14:36:48 +03:00
Jens Steube
532a154542 ADL: Updated support for AMD Display Library to 15.0, updated datatypes and added support for OverDrive 7 and 8 based GPUs 2021-07-27 12:02:27 +02:00
Jukka Ojanen
ae44a3022b Use fast event to synchronize selftest() 2021-07-27 13:00:39 +03:00
Jukka Ojanen
d7de3550b1 Add fast event for CUDA and HIP, and use it to synchronize check_hash() 2021-07-27 12:57:26 +03:00
Jens Steube
f6de3e61e0
Merge pull request #2906 from hashcat/master
Backports
2021-07-27 09:48:56 +02:00
Jens Steube
e5ac568afb
Merge pull request #2903 from matrix/snmpv3_mod
fix snmpv3 md5/sha1, tested with real hashes
2021-07-27 09:47:47 +02:00
Jens Steube
e627288c04
Merge pull request #2897 from matrix/snmpv3_md5_sha1
Added hash-mode: SNMPv3 HMAC-MD5-96/HMAC-SHA1-96
2021-07-27 09:47:11 +02:00
Jens Steube
fd2cb59d26 AMD GPUs: On Apple OpenCL platform, we ask for the preferred kernel thread size rather than hard-coding 32
ECC secp256k1: Removed the inline assembly code for AMD GPUs because the latest JIT compilers optimize it with the same efficiency
2021-07-27 09:37:31 +02:00
Gabriele Gristina
357c23d7a1 Added hash-mode: SNMPv3 HMAC-SHA384-256 2021-07-27 05:17:26 +02:00
Gabriele Gristina
15b90c953e Added hash-mode: SNMPv3 HMAC-SHA512-384 2021-07-27 05:14:09 +02:00
Gabriele Gristina
d711c593de fix to crack real hashes 2021-07-26 23:00:33 +02:00
Gabriele Gristina
d62fa617fb fix to crack real hashes 2021-07-26 22:45:02 +02:00
Gabriele Gristina
c20ff01c39 using shared buffer between md5 and sha1 SNMPV3_TMP_ELEMS_OPT, fix to crack real hashes 2021-07-26 22:25:15 +02:00
Jukka Ojanen
73b8cda176 Avoid unnecessary memcpy in check_hash() 2021-07-26 22:25:50 +03:00
Jukka Ojanen
43a3622a77 Add necessary synchronization to check_hash() and check_cracked() 2021-07-26 20:57:24 +03:00
Gabriele Gristina
e15fe3461e add missing pw_min() to snmpv3 md5/sha1 modules 2021-07-26 19:38:53 +02:00
Gabriele Gristina
45fce5d3a3 fix snmpv3 md5/sha1, tested with real hashes 2021-07-26 19:04:30 +02:00
Jukka Ojanen
a642f7b233 Remove synchronous GPU memory copy functions 2021-07-26 15:36:42 +03:00
Jukka Ojanen
507d40fff6 Allow async execution of check_hash() and check_cracked() 2021-07-26 15:35:59 +03:00
Jukka Ojanen
de5200cffc Allow async execution of backend 2021-07-26 15:17:25 +03:00
Jens Steube
7f419c68af Blowfish Kernels: Backport optimizations reducing bank conflicts from bcrypt to Password Safe v2 and Open Document Format (ODF) 1.1 2021-07-26 13:38:39 +02:00
Jens Steube
b66c093c17
Merge pull request #2902 from hashcat/master
Backports
2021-07-26 08:18:35 +02:00
Jens Steube
1e3bd2c8a0 AMD GPUs: Add inline assembly code for md5crypt/sha256crypt, PDF 1.7, 7-Zip, RAR3, Samsung Android and Windows Phone 8+ 2021-07-26 07:59:12 +02:00
Jens Steube
b53691c8f5 ADL: Updated support for AMD Display Library to 14.0, updated datatypes and added support for OverDrive 7 and 8 based GPUs 2021-07-26 07:48:56 +02: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
79404b1ff1 Allow async execution of selftest() 2021-07-25 22:19:50 +03:00
Jens Steube
72e307fbce
Merge pull request #2901 from hashcat/master
Backport changes
2021-07-25 10:57:39 +02:00
Jens Steube
83badbeaf1 Backport native threads strategy from Kerberos to Office and PDF 2021-07-25 10:56:29 +02:00
Jens Steube
959a232828
Merge pull request #2885 from neheb/charfixes
const and char fixes
2021-07-25 10:36:40 +02:00
Jens Steube
84a4058edf
Merge pull request #2900 from hashcat/master
Backport changes
2021-07-25 10:34:05 +02:00
Jens Steube
44dbedd21a Use improved native threads derivation for RC4 based hash-modes 2021-07-25 10:32:58 +02:00
Gabriele Gristina
58bb2b69b4 Added hash-mode: SNMPv3 HMAC-SHA256-192 2021-07-24 18:57:25 +02:00
Gabriele Gristina
7683ca19a3 Added hash-mode: SNMPv3 HMAC-SHA224-128 2021-07-24 18:36:10 +02:00
Gabriele Gristina
7c8d7f7831 Added hash-mode: SNMPv3 HMAC-MD5-96/HMAC-SHA1-96 2021-07-24 17:03:50 +02:00
Jens Steube
640d95a00f Vendor Detection: Add "Intel" as a valid vendor name for GPU on macOS 2021-07-24 16:01:30 +02:00
Gabriele Gristina
4f10377703 Added hash-mode: SNMPv3 HMAC-MD5-96 2021-07-24 13:56:49 +02:00
Jens Steube
3a31b669b5 Optimize and clean up -m 25200 code.
Speed on CPU: 1521 -> 2066 (35% faster)
Speed on GPU: 16610 -> 157754 (9.4 times faster)
Works for all password lengths
2021-07-24 11:58:36 +02:00
Jens Steube
5e0f7ecf00
Merge pull request #2889 from matrix/snmpv3_sha1
Added hash-mode: SNMPv3 HMAC-SHA1-96
2021-07-24 11:56:46 +02:00
Gabriele Gristina
4fb44f826c updated module_25200.c as requested in the review 2021-07-24 10:57:06 +02:00
Jens Steube
3f6c5a0042 Update module_unstable_warning() for -m 172xx on HIP 2021-07-23 21:09:55 +02:00
Jens Steube
5ffcaa980d HIP Backend: Added support to support HIP 4.4 and later, but added check to rule out older versions because they are incompatible 2021-07-23 16:04:34 +02:00
Rosen Penev
adaf3f293b make const char pointers actually const
const char* is a non const pointer that points to const data. Add
missing const.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-22 18:13:46 -07:00
Rosen Penev
a9ceb6377e add missing const
Fixes -Wwrite-strings issue.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-22 18:11:11 -07:00
Rosen Penev
14f5a26027 use const char for fopen mode
Fixes -Wwrite-strings warnings.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-22 18:11:11 -07:00
Gabriele Gristina
b00e3e5e59 add missing hex_encode() in module_hash_encode() 2021-07-22 19:53:41 +02:00
Gabriele Gristina
6d83a69f7d using hex_encode/hex_decode + small fixes 2021-07-22 19:10:34 +02:00
Jens Steube
f9e74045b5 Commandline: Throw an error if separator character given by the user with -p option is not exactly 1 byte 2021-07-22 18:54:02 +02:00
Jukka Ojanen
9f9333f2ef Allow async execution of run_opencl_kernel_bzero(), run_hip_kernel_bzero() and run_opencl_kernel_bzero() 2021-07-22 15:18:10 +03:00
Jukka Ojanen
fafd24237d Define HC_ALIGN macro to control data alignment and use common constant zero buffer in run_cuda_kernel_bzero(), run_hip_kernel_bzero() and run_opencl_kernel_bzero(). 2021-07-22 14:24:03 +03:00
Jukka Ojanen
2c2988518d Remove all calls to clFlush() 2021-07-22 13:59:19 +03:00
Jens Steube
5024865d87 Kernel Threads: Use warp size / wavefront size query instead of hardcoded values as base for kernel threads
Kernel Cache: Add kernel threads into hash computation which is later used in the kernel cache filename
Remove some unused function symbol lookups in HIP library
2021-07-22 11:46:47 +02:00
Jens Steube
e83611742d Brain Session: Adds hashconfig specific opti_type and opts_type parameters to hashcat session computation to cover features like -O and -M 2021-07-21 15:47:26 +02:00
Jens Steube
c990e252d3 Added option --multiply-accel-disable (short: -M) to disable multiply the kernel-accel with the multiprocessor count automatism 2021-07-21 15:47:05 +02:00
Jens Steube
a7a899e5a4 Backport changes from #2888 to HIP backend 2021-07-21 14:01:28 +02:00
Jukka Ojanen
cb923d6e46 Replace CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK with CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN 2021-07-21 13:42:22 +03:00
Gabriele Gristina
7ea5da51a8 Added hash-mode: SNMPv3 HMAC-SHA1-96 2021-07-20 22:24:35 +02:00
Jukka Ojanen
55a475cb4b
Merge branch 'hashcat:master' into master 2021-07-20 21:27:51 +03:00
Jukka Ojanen
d23f2d6c2f Calculation kernel dynamic memory size based on CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK 2021-07-20 21:27:29 +03:00
Jens Steube
a026171fb3
Merge pull request #2879 from jtojanen/master
Implement gpu_bzero
2021-07-20 13:00:37 +02:00
Jens Steube
7c5fe5e233 Slow Kernels: Set some of the slowest kernels to OPTS_TYPE_MP_MULTI_DISABLE 2021-07-20 12:47:40 +02:00
Jukka Ojanen
8674e23d79 Add async HIP memcpy functions: hc_hipMemcpyDtoDAsync(), hc_hipMemcpyDtoHAsync() and hc_hipMemcpyHtoDAsync(). Implement partially async HIP memset and bzero kernels. 2021-07-20 12:47:10 +03:00
Jukka Ojanen
4263cafdcf Add async CUDA memcpy functions: hc_cuMemcpyDtoDAsync(), hc_cuMemcpyDtoHAsync() and hc_cuMemcpyHtoDAsync(). Implement partially async CUDA memset and bzero kernels. 2021-07-20 12:23:39 +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
Jukka Ojanen
ea5180ac46 Include missing bzero kernel parameters 2021-07-20 11:59:44 +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
Jens Steube
257098a301 Get rid of hip/hip_runtime.h dependancy 2021-07-18 21:14:45 +02:00
Gabriele Gristina
977ceba046 Added hash-modes: VirtualBox (PBKDF2-HMAC-SHA256 & AES-128-XTS) and VirtualBox (PBKDF2-HMAC-SHA256 & AES-256-XTS) 2021-07-17 18:38:04 +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
a2a1d04bcf Implement gpu_bzero 2021-07-17 19:00:10 +03:00
Jukka Ojanen
8066a47ac5
Merge branch 'hashcat:master' into master 2021-07-17 16:21:08 +03:00
Jens Steube
261e0f42ab Unset PRODUCTION option 2021-07-16 23:03:11 +02:00
Jens Steube
84082a952e hashcat 6.2.3 2021-07-16 22:41:52 +02:00
Jens Steube
141b59b80e
Merge pull request #2883 from hashcat/HIP
Merge HIP branch into master
2021-07-16 19:54:00 +02:00
Jens Steube
45e65dd05a Backport more ROCm based optimizations to HIP 2021-07-15 23:34:27 +02:00
Jens Steube
2e929e692e Backport update module_unstable_warning() for -m 21800 on HIP 2021-07-15 21:26:07 +02:00
Gabriele Gristina
eaedfb3f8a fix 26700 2021-07-15 19:58:11 +02:00
Jens Steube
4730cf6e79 WinZip Kernel: Increase supported data length from 8k to 16mb 2021-07-15 16:42:29 +02:00
Cablethief
02a9f3471b 27000 slow hash, same doubts as the first, but now with the shared mem concerns 2021-07-15 16:42:18 +02:00
Jens Steube
d130cc66b3 Optimize ISA code on HIP for V_ALIGNBIT_B32 using a different template for inline assembly 2021-07-15 09:57:41 +02:00
Gabriele Gristina
50aeaa299d Added hash-mode: VMware VMX (PBKDF2-HMAC-SHA1 + AES-256-CBC) 2021-07-14 19:31:21 +02:00
Gabriele Gristina
80a671eab7 Fix bug on hm_SYSFS_CPU_get_syspath_hwmon() 2021-07-14 19:21:21 +02:00
Jens Steube
cf512faa53 Update large switch() cases in inc_common.cl and some inline assembly common functions for devices managed with HIP backend 2021-07-14 17:06:20 +02:00
Jens Steube
11295e4679 Fix missing OPTI_TYPE_USES_BITS_64 in several modules 2021-07-14 17:01:46 +02:00
Jukka Ojanen
43b5a138d4 Use kernel_bzero instead of kernel_memset when value is zero 2021-07-14 17:13:39 +03:00
Cablethief
a38b5b3e25 27100 Slow hash, have doubts on how to correctly set iterations 2021-07-14 14:58:26 +02:00
Jens Steube
a82fce2c8f Fixed invalid ETA if --limit was specified, several salts are in a hash list and some of them were found in a potfile 2021-07-14 10:26:57 +02:00
Jens Steube
9c134833a6 Update module_unstable_warning() for -m 19600 and -m 19700 2021-07-14 08:26:12 +02:00
Jens Steube
f3bd936971 Add hardware monitor mapping for HIP devices 2021-07-14 08:23:39 +02:00
Jens Steube
84fcea9592 Fix unusued variable warning 2021-07-14 08:17:55 +02:00
Jens Steube
4b68a8fb4f
Merge pull request #2878 from hashcat/master
Backports
2021-07-13 22:26:28 +02:00
Jens Steube
7faf6859d6 Backport hand-optimized compiler settings in modules from ROCM to HIP
Backport DECLSPEC settings from ROCM to HIP
2021-07-13 20:45:01 +02:00
Jens Steube
74fca7bac1
Merge pull request #2875 from jtojanen/master
Fix leaks in dictstat_destroy
2021-07-13 13:28:37 +02:00
Your Name
b24ca10087 pdf edit password m25400 can now also use the user-password as salt 2021-07-12 23:17:33 +02:00
Jens Steube
219bed457f Fix use of --gpu-max-threads-per-block 2021-07-12 14:02:43 +02:00
Jukka Ojanen
6b5af5e849 Fix leaks in dictstat_destroy 2021-07-12 14:33:24 +03:00
Jens Steube
674ca7d88f Add GPU threads to kernel cache checksum because it has an influence on HIP offline compile options
Add V_ALIGNBIT_B32 inline assembly wrapper because HIP does not provide amd_bitalign()
2021-07-12 11:27:05 +02: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
20f7febd4c Workaround too intensive optimization in -m 2000 using HIPRTC 2021-07-11 15:54:13 +02:00
Jens Steube
fde4770219 Add misssing HIP backend information in -I output 2021-07-11 14:47:48 +02:00
Jens Steube
ca3beacd93 Disable dynamic shared memory on HIP, because hipFuncSetAttribute() maps to cudaFuncSetAttribute() and not to cuFuncSetAttribute() 2021-07-11 14:30:49 +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
a22f8149fc
Merge branch 'HIP' into hip 2021-07-10 21:34:09 +02:00
Jens Steube
9fc6c26f8c Added temperature watchdog and utilization for CPU on linux using sysfs and procfs 2021-07-10 14:24:51 +02:00
Jens Steube
bfe83ec138 Added temperature watchdog for CPU on linux using sysfs 2021-07-10 08:43:15 +02:00
Jens Steube
72d7048b7e Merge branch 'master' of https://github.com/hashcat/hashcat 2021-07-09 20:48:29 +02:00
Jens Steube
979f9e9868 Rename hardware monitor interface sysfs to sysfs_amdgpu 2021-07-09 20:48:10 +02:00
Jens Steube
d6042035fc
Merge pull request #2870 from jtojanen/fixes
Avoid deadlocks in brain server
2021-07-09 08:43:18 +02:00
reger-men
ea7b74389f First draft HIP Version 2021-07-09 03:50:40 +00:00
Jukka Ojanen
d93d130b6d Avoid deadlocks in brain server 2021-07-08 12:43:29 +03:00
Jens Steube
71c0ea44b7 Update hwmon to easier distinguish between CPU and GPU for OpenCL backend 2021-07-08 09:04:14 +02:00
Jens Steube
47848d2b64
Merge pull request #2867 from jtojanen/fixes
Improve affinity mask handling
2021-07-08 08:21:52 +02:00
Jens Steube
4cbf7900b6 Remove unused code in -m 26300 2021-07-08 06:25:35 +02:00
Jens Steube
4535695e0a Update some module_unstable_warning() on macOS after the workaround that was added before 2021-07-07 10:36:52 +02:00
Jens Steube
f146a05878 Added option --markov-inverse to inverse markov statistics, with the idea of reversing the order of the password candidates 2021-07-07 10:32:08 +02:00
Jukka Ojanen
0edab2b20f Allow CPU affinity mask up to 64 processors in Windows. Remove call to SetThreadAffinityMask as SetProcessAffinityMask limits all threads in process. Report error code. pthread_setaffinity_np returns non-zero if failure; works also with OSX as it reports KERN_SUCCESS which is zero. 2021-07-06 16:47:18 +03:00
Jens Steube
17a47e390c Merge branch 'master' of https://github.com/hashcat/hashcat 2021-07-06 13:06:28 +02:00
Jens Steube
a3178391c2 Fixed missing option to automatically disable kernel cache in -m 25600 and -m 25800 2021-07-06 13:05:49 +02:00