1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-22 13:40:56 +00:00
Commit Graph

4035 Commits

Author SHA1 Message Date
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
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
Jens Steube
29c971187a
Merge pull request #2863 from matrix/metamask
Added hash-mode: MetaMask Wallet
2021-07-06 09:49:19 +02:00
Jens Steube
13e2aa2508
Merge pull request #2865 from jtojanen/fixes
Fix several backend leaks
2021-07-06 09:34:47 +02:00
Jukka Ojanen
a0eaefa0c2 Missing whitespaces 2021-07-05 20:20:51 +03:00
Jukka Ojanen
e133bd4ec4 Change rc_board_name_amd initial value to CL_INVALID_VALUE. If CHECK_BOARD_NAME_AMD is changed to 0, there is a problem with CL_SUCCESS which equals to 0, device will be skipped. 2021-07-05 19:05:10 +03:00
Jukka Ojanen
b3d18f86e2 Fix early return leaks in backend_session_begin 2021-07-05 19:03:56 +03:00
Jukka Ojanen
b976e52bc7 Fix early return leaks in load_kernel; nvrtc_options, nvrtc_options_string, build_log. Ensure build log NULL termination. 2021-07-05 19:00:35 +03:00
Jukka Ojanen
2f7eec2fd7 Fix early return leaks in backend_ctx_init and backend_ctx_devices_init 2021-07-05 15:52:48 +03:00
Jukka Ojanen
bcbb9b0d2c Fix skipped device param leak in backend_ctx_devices_destroy 2021-07-05 15:38:07 +03:00
Gabriele Gristina
6ce1c78f6d fix CT_MAX_LEN_BASE64 define 2021-07-05 13:21:10 +02:00
Jens Steube
a2f883396b Java Object hashCode: Add OPTS_TYPE_SUGGEST_KG as a default option 2021-07-05 09:25:06 +02:00
Gabriele Gristina
7371cbebe7 add min/max data length limits to MetaMask Wallet 2021-07-04 20:14:25 +02:00
Gabriele Gristina
2d149164d2 cleanup module_26600.c 2021-07-04 15:50:52 +02:00
Gabriele Gristina
f571329c4f Added hash-mode: MetaMask Wallet 2021-07-04 15:47:52 +02:00
Jens Steube
d99b4cf46e
Merge pull request #2861 from jtojanen/fixes
Fix iconv_ctx and iconv_tmp leaks in backend.c
2021-07-04 09:52:29 +02:00
Jens Steube
7366c47447 Added hash-mode: iPhone passcode (UID key + System Keybag) 2021-07-03 19:03:06 +02:00
Jens Steube
3c899ec528 Potfile: Disable potfile for hash-mode 99999 2021-07-03 14:22:14 +02:00
Jukka Ojanen
5f109b5862 Fix iconv_ctx and iconv_tmp leaks in backend.c 2021-07-03 12:51:37 +03:00
Jens Steube
c32242980f Partially revert
6967e706c2
because it breaks --hash-info. See
https://github.com/hashcat/hashcat/issues/2859 for details.
2021-07-02 08:58:04 +02:00
Jens Steube
ce41316ac3 Status View: Include time and duration info when pausing and resuming 2021-07-01 21:33:14 +02:00
Jens Steube
701ad7c441 Fix segfault in --hash-info by avoid huge stack buffer allocation 2021-06-30 21:01:55 +02:00
Jens Steube
56c2243dfb KeePass: Increase supported size for KeePass 1 databases from 300kB to 16MB 2021-06-30 13:16:03 +02:00
Jens Steube
2aff6cba51 Add ranges to charset lists 2021-06-29 22:27:50 +02:00
Jens Steube
254e33c473 File handling: Do not abort on seeing a BOM in input files, just warn and ignore the BOM 2021-06-29 20:42:22 +02:00
Jens Steube
2af45cd03f Rename hc_fopen_nozip() to hc_fopen_raw() 2021-06-29 20:13:11 +02:00
Jens Steube
5bea13200f Add missing newline in warning message when using --force 2021-06-28 23:09:41 +02:00
Gabriele Gristina
04b9050af9 fix tuning_db_search() bug 2021-06-28 13:08:11 +02:00
Royce Williams
e24b82cc4e minor diffs from comparing with example hashes wiki 2021-06-27 14:38:36 -08:00
Jens Steube
77d9a8deb2 minor whitespace fixes and changes.txt update 2021-06-27 10:43:23 +02:00
Jens Steube
3b07f90524
Merge pull request #2854 from TheWorkingDeveloper/patch-1
Hexify plains with delimiter in debug rules
2021-06-27 10:37:38 +02:00
Jens Steube
3a3bd07514
Make it more visible we use a hardcoded character 2021-06-27 10:37:15 +02:00
Jens Steube
8a3eee3fe5 OpenCL Runtime: Workaround JiT crash (SC failed. No reason given.) on macOS by limiting local memory allocations to 32k 2021-06-27 10:18:38 +02:00
TheWorkingDeveloper
1bf3392b1a
Hexify plains with delimiter
Hexify plains if the plain contains the : separator
2021-06-26 23:53:04 +02:00
Jens Steube
dcaba1f473 Brain: Add brain_ctx_t to hashcat_ctx_t to enable runtime check if hashcat was compiled with brain support 2021-06-26 20:24:45 +02:00
Jens Steube
909d5e64a5 Added hash-mode: AES-128/192/256-ECB NOKDF
This mode is probably very rare in real-life scenarios,
but it is a nice template for kernels which do
not use a KDF,
or use AES,
or simple fast hashes with lookup tables
or simple optimized kernels in general
2021-06-26 17:12:10 +02:00
Jens Steube
b30d55c5d9 Removed LZMA "Windows.h" capitalized file name workaround used to cross compile Windows binaries from Linux hosts.
This breaks compiling windows binaries if the underlaying filesystem is not case sensitive. An example would be using /mnt/c folder under WSL.
Any update on the LZMA SDK needs to be post processed with this command: sed -i 's/<Windows.h>/<windows.h>/' deps/LZMA-SDK/C/*.c deps/LZMA-SDK/C/*.h
2021-06-25 20:30:26 +02:00
Jens Steube
5194beb6f2
Merge pull request #2847 from philsmd/patch-3
fixes #2839: change example pass for FortiGate256
2021-06-25 07:57:23 +02:00
Jens Steube
f05cd72147 minor whitespace fixes 2021-06-25 07:56:28 +02:00
Jens Steube
84cf5e70e7 Fixed out-of-boundary write in slow candidates mode in combinator attack update 2021-06-24 13:13:02 +02:00
Jens Steube
1a4758da83 Fixed out-of-boundary write in slow candidates mode in combinator attack 2021-06-24 12:15:41 +02:00
Jens Steube
28c08de9ef Folders: Do not escape the variable cpath_real to prevent certain OpenCL runtimes from running into an error which do not support escape characters 2021-06-24 09:24:02 +02:00
Jens Steube
9ecff406de Add unstable warning for -m 22400 on CPU on macOS 2021-06-23 20:04:17 +02:00
Jens Steube
90f0e78b5b Add event about autodetection process start
Remove "..." substring from final messages
Add patient message on "..." startup messages
Add missing docs/changes.txt entry
2021-06-22 11:37:59 +02:00
philsmd
88fe0add04
fixes #2839: change example pass for FortiGate256 2021-06-22 10:29:24 +02:00
Jens Steube
6c670136c4
Merge pull request #2846 from jtojanen/master
Fix access violation in hashconfig_destroy if hashcat_ctx_t is only p…
2021-06-22 09:16:08 +02:00
Jens Steube
ed093fb035
minor whitespace fixes 2021-06-22 09:12:05 +02:00
Jukka Ojanen
6967e706c2 Fix access violation in hashconfig_destroy if hashcat_ctx_t is only partially initialized.
Fix hashcat_ctx leak and refactor module and kernel existence checks.
2021-06-21 22:56:55 +03:00
Royce Williams
e4626dc471 Merge branch 'master' of https://github.com/roycewilliams/hashcat 2021-06-21 07:48:13 -08:00
Royce Williams
1e88990b46 minor whitespace fixes, per #2841 2021-06-21 07:47:22 -08:00
Jens Steube
5a5ec0c5db Added hash-mode: VeraCrypt PBKDF2-HMAC-Streebog-512 + boot-mode 2021-06-21 13:40:46 +02:00
Jens Steube
2c48bba62d Autodetect: Limit the number of errors per hash-mode try to 100 to avoid long startup time 2021-06-20 12:40:55 +02:00
Jens Steube
7e267b9b37
Merge pull request #2825 from matrix/hwmon_osx_v2
Add OSX HW Monitor initial support (2021)
2021-06-20 11:09:35 +02:00
Gabriele Gristina
dac7fafec9 remove unused hm_IOKIT_SMCCall() call 2021-06-19 21:15:37 +02:00
Gabriele Gristina
1703d24c1a hide fan speed from hwmon output if not detected 2021-06-19 20:46:09 +02:00
Gabriele Gristina
3a6481da4e show all fans in hwmon output 2021-06-19 20:32:07 +02:00
Jens Steube
18f8a1340e
Merge pull request #2842 from matrix/startMessage
Fix starting message
2021-06-19 17:12:32 +02:00
Jens Steube
9b211ada85
Update user_options.c 2021-06-19 17:12:08 +02:00
Gabriele Gristina
fc77e1b975 update hm_IOKIT_get_fan_speed_current(), get rid of minimum_speed 2021-06-19 15:23:59 +02:00
Gabriele Gristina
09513ed78b fix starting message 2021-06-19 12:32:02 +02:00
philsmd
5fb6fc50c2
-m 24800 = Umbraco HMAC-SHA1 is not salted 2021-06-19 11:00:03 +02:00
Xanadrel
0d79250fea Fix memory leak with status (with brain enabled) 2021-06-18 13:13:16 +02:00
Jens Steube
3119525ea3 Fixed integer overflow in Recovered/Time status view column caused by division > 0 but < 1 2021-06-18 07:57:15 +02:00
Jens Steube
62397283c1 VeraCrypt: Increase password length support for non-boot volumes from 64 to 128.
See https://github.com/hashcat/hashcat/issues/2616 for details.
2021-06-17 09:45:30 +02:00
Jens Steube
2d7f67fd23 Alias Devices: Show a warning in case the user specifically listed a device to use which in a later step is skipped because it is an alias of another active device 2021-06-15 14:06:24 +02:00
Jens Steube
624994f920 Backend Information: Added new column showing the PCI Address per CUDA/OpenCL device to easier identify broken cards 2021-06-14 13:18:33 +02:00
Jens Steube
c6b10bb0b6 Unset PRODUCTION option 2021-06-13 15:12:33 +02:00
Jens Steube
9908cb184b hashcat 6.2.2 2021-06-13 14:51:01 +02:00
Gabriele Gristina
bc4ce4cbeb Add support for CPU/GPU device temperature and fanspeed using iokit (Apple) 2021-06-12 20:13:31 +02:00
Jens Steube
3ee77aa581 Prepare for v6.2.2 2021-06-12 18:38:23 +02:00
Jens Steube
eddd11441f
Merge pull request #2664 from matrix/hash-mode-26000
Added hash-mode 26000 - OpenEdge Progress Encode
2021-06-12 18:22:09 +02:00
Gabriele Gristina
02b2ca41c5 add unit-test and set pw_max to 16 for ProgressEncode 2021-06-12 16:51:47 +02:00
Jens Steube
ee7fca82f5 Scrypt Kernels: Re-enable scrypt based kernels to use kernel cache 2021-06-12 11:42:19 +02:00
Jens Steube
7fc0ac4ef1 Do not initialize backend devices in case --id is used and some bug fixes 2021-06-12 10:47:48 +02:00
Jens Steube
2b68d4bec1
Merge pull request #2821 from matrix/autodetect-only
add identify/autodetect-only option
2021-06-12 10:26:33 +02:00
Gabriele Gristina
a25db47215 updated output messages for identify functionality 2021-06-11 20:12:59 +02:00
Gabriele Gristina
340e8d1033 fix identify functionality 2021-06-11 19:25:39 +02:00
Jens Steube
51fe320425 Unit-Tests: Added missing support for OPTS_TYPE_LOOP_PREPARE, OPTS_TYPE_LOOP_PREPARE2 and salt_repeats in self-test 2021-06-11 18:36:19 +02:00
Jens Steube
388e0a1c7e
Merge pull request #2820 from matrix/hwmon_v4
Restyling hwmon (2021)(2)
2021-06-11 09:40:06 +02:00
Jens Steube
65d81c0f7b Hashrate: Innerloop hashrate prediction requires update because of the new salt_repeats feature and also respect _loop2 kernel runtime 2021-06-10 22:43:06 +02:00
Gabriele Gristina
3c6f4b0e69 add identify/autodetect-only option 2021-06-10 20:44:21 +02:00
Gabriele Gristina
2bc68f32db remove unused rc vars 2021-06-10 20:26:24 +02:00
Gabriele Gristina
e5de44c80d Restyling hwmon (2021)(2) 2021-06-10 20:13:12 +02:00
Bjoern Kerler
6430b7ab71 Fix FBE description 2021-06-10 20:09:03 +02:00
Jens Steube
ebeb003552 Unit-Tests: Added missing unit-test for Stargazer Stellar Wallet XLM 2021-06-10 09:02:26 +02:00
Jens Steube
27503957aa Fix message on startup-mode in --backend-info mode 2021-06-09 13:25:25 +02:00
Jens Steube
796beba2bf
Merge branch 'master' into hash-mode-26000 2021-06-09 13:20:35 +02:00
Jens Steube
0602562574 Modules: Changed hash category of Python passlib from HASH_CATEGORY_GENERIC_KDF to HASH_CATEGORY_FRAMEWORK 2021-06-09 13:19:33 +02:00
Jens Steube
733f5e82ec Renamed -m 7010 to -m 26300 2021-06-08 11:12:54 +02:00
Jens Steube
9df4b7df92
Merge pull request #2810 from YSaxon/fortigate256
Added -m 07010: Fortigate256 (prefixed with SH2 instead of AK1)
2021-06-08 11:02:36 +02:00
Yaakov Saxon
db6a079bca (07000->07010 in code) 2021-06-07 12:34:30 -04:00
Yaakov Saxon
7a15466442 Update module_07000.c
better?
sensible change
revert dgst_pos


update kernel file


update other 2 pure kernels


updating DGST_POS* to match other SHA256 hash formats


comments


removing optimized that I haven't updated


updated testfile


renaming to 07010


restoring original 07000 files


comments
2021-06-07 12:07:29 -04:00
pelle
1e51ca0674 Enabled "unused" pw-max configurations. 2021-06-07 12:44:27 +02:00
Jens Steube
fdccc8287d Fixed free memory size output for skipped GPU (both automatic and manual) of --backend-info information screen 2021-06-07 12:12:01 +02:00
Jens Steube
e8ad343153 Hardware Monitor: Add support for GPU device utilization readings from sysfs (AMD on Linux) 2021-06-07 09:34:34 +02:00
Jens Steube
1697bcd809
Merge pull request #2808 from roycewilliams/master
tighten output to be physical-terminal friendly
2021-06-07 08:07:43 +02:00
Jens Steube
6636b59ecb
Merge pull request #2805 from matrix/fix_osx_Makefile_warnings_2
Fix warning with osx/clang build
2021-06-07 08:06:35 +02:00
Royce Williams
7bea7ca177 tighten output to be physical-terminal friendly 2021-06-06 10:47:18 -08:00
Royce Williams
3a24fb46e2 tighten wording for new auto-detect of hash-mode 2021-06-06 09:48:33 -08:00
Jens Steube
186e68289c
Merge pull request #2804 from matrix/autodetect
Added new feature: autodetect hash-mode
2021-06-06 18:20:44 +02:00
Gabriele Gristina
1106e163ca fix example0*, skip autodetect if keyspace enabled, update help and changes.txt 2021-06-06 15:48:04 +02:00
Gabriele Gristina
0719bda7c4 Fix warning with osx build 2021-06-06 14:32:14 +02:00
Gabriele Gristina
b8ae1444de skip autodetect if benchmark is enabled, keep table sorting like usage 2021-06-06 13:40:01 +02:00
Gabriele Gristina
75d135bf7d fix for autodetect (1) 2021-06-06 12:29:07 +02:00
Jens Steube
23ba4f0b66 Folder Management: Add support for XDG Base Directory specification if hashcat was installed using make install 2021-06-06 11:03:44 +02:00
Jens Steube
c9db099330
Merge pull request #2456 from nycex/xdg
use XDG_DATA_HOME for profile_dir
2021-06-06 10:51:53 +02:00
Gabriele Gristina
ced9b0c6f8 Added new feature: autodetect hash-mode 2021-06-05 22:11:18 +02:00
nycex
40c68b8bf4
use recursive mkdir for the profile and the cache dir 2021-06-05 21:55:59 +02:00
nycex
954b7d0a4d
apply suggested changes 2021-06-05 20:49:23 +02:00
Jens Steube
72d1937fe7 Modules: Added hash categories HASH_CATEGORY_IMS and HASH_CATEGORY_CRYPTOCURRENCY_WALLET 2021-06-05 15:32:28 +02:00
nycex
470e844e5d
use XDG_CACHE_HOME for kernels 2021-06-05 00:38:43 +02:00
Gabriele Gristina
9b529dc34c update hash-mode to 26200 2021-06-05 00:10:17 +02:00
nycex
036247186b
fix remaining style issues 2021-06-04 23:20:25 +02:00
nycex
964eb51dd9
fallback to ~/.hashcat if the xdg base directory does not exist 2021-06-04 23:20:24 +02:00
nycex
d018469aef
conform to hashcat style conventions 2021-06-04 23:20:24 +02:00
nycex
8d78815767
use XDG_DATA_HOME for profile_dir 2021-06-04 23:20:24 +02:00
Jens Steube
918a621506 Fixed error handling logic in monitor thread to not return in case of error (disc full, permission error, ...) but to retry instead 2021-06-04 09:48:27 +02:00
Jens Steube
978f4c7a85
Merge pull request #2591 from trounce1/20720
Added -m 20720 sha256($salt.sha256($pass))
2021-06-04 08:10:49 +02:00
Jens Steube
f016deaa76
Merge branch 'master' into new-3500-mode 2021-06-03 07:52:17 +02:00
Jens Steube
38beceb170
Merge pull request #2594 from trounce1/5000
Added -m 5000 = sha1(sha1($salt.$pass.$salt))
2021-06-03 07:51:48 +02:00
Jens Steube
2f99ea8595 Fixed error message in -a 9 mode with rules in case number of words from wordlist are not in sync with number of unique salts 2021-06-02 19:43:44 +02:00
Jens Steube
ce8c121b50 BCRYPT Kernels: Improved bcrypt performance by 6.5% for high-end NVIDIA GPU devices using CUDA backend 2021-06-01 22:52:07 +02:00
Jens Steube
8901e657a5 RC4 Kernels: Improved performance by 20%+ for hash-modes Kerberos 5 (etype 23), MS Office (<= 2003) and PDF (<= 1.6) by using new RC4 code 2021-05-31 08:28:13 +02:00
Jens Steube
4e565efcf9 RC4: Updated hash-mode 7500, 9710, 9720, 10400 and 10410 to new RC4 crypto library code, improving performance by 20% or more 2021-05-30 19:53:28 +02:00