1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 20:39:17 +00:00
Commit Graph

223 Commits

Author SHA1 Message Date
Arseniy Sharoglazov
5f434cc338 Removed a duplicate line in hashes.c 2023-08-10 05:50:34 +03:00
justpretending
b2f14f2f5d Fix some typos 2023-07-27 23:11:55 +07:00
jsteube
0aaf19eade Fix https://github.com/hashcat/hashcat/issues/3641 2023-03-15 19:45:56 +00:00
Jens Steube
c884a5d02f Logfile: Write per-session "recovered new" value to logfile
Fixes https://github.com/hashcat/hashcat/issues/3392
2022-08-20 09:39:59 +02:00
Jens Steube
a52b70d1c5 Refactored Recovered.New... handling 2022-08-19 12:02:21 +02:00
philsmd
534acbacea
warning about token length exception was showing incorrect values/percentage 2022-07-09 12:22:39 +02:00
Jens Steube
5977edb1d2 Added user advice if a hash throws 'token length exception' 2022-05-04 14:26:53 +02: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
490702fcfa Backends: added Metal host-code 2022-02-05 22:48:16 +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
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
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
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
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
Jukka Ojanen
62a06f735f kernel_memset32(): assume offset and size are bytes, not elements 2021-08-01 15:19:15 +03:00
Jukka Ojanen
1ee222d43f Replace free() with hcfree() 2021-08-01 14:21:18 +03: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
c48e6a25a8 Enqueue several commands before clFlush() 2021-07-29 14:28:01 +03:00
Jukka Ojanen
9ed231c99c Add comment to blocking OpenCL calls 2021-07-29 00:07:10 +03: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
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
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
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
Jukka Ojanen
507d40fff6 Allow async execution of check_hash() and check_cracked() 2021-07-26 15:35:59 +03: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
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
fb081947e1 Fixed access to filename which is a null-pointer in benchmark mode 2021-05-01 14:13:58 +02:00
Jens Steube
96df73dee4
Merge pull request #2646 from Slattz/master
Fix --keep-guessing mode
2021-04-28 10:23:29 +02:00
Jens Steube
33d95348f5 Update patch 2021-04-28 09:48:33 +02:00
Jens Steube
db57497e8f Prevent unit test of -m 3000 to generate zero hash. This confuses test.sh validator 2021-04-26 09:32:19 +02:00
Jens Steube
56f47cabe2 Fixed race condition in potfile check during removal of empty hashes 2021-04-21 09:22:00 +02:00
Dávid Bolvanský
430b8b17c1 Machine readable mode for show hash feature 2021-04-04 15:11:07 +02:00
Jens Steube
1323ef3a82 Support loading hash from command line in -m 22000 and -m 22001
Fixes #2742
2021-04-04 11:38:02 +02:00
Gabriele Gristina
77e328d659 Removed option --example-hashes, now is an alias of --hash-info 2020-12-29 07:56:20 +01:00
Gabriele Gristina
3ed1f0d840 Added new option: --hash-info 2020-12-29 04:58:58 +01:00
Slattz
e5f2a877a5 Fix --keep-guessing mode
New cracked passwords would not be outputted at all.
Broken by 04d5e5a119
2020-12-16 16:48:53 +00: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
philsmd
437e9aa3d1
allow --left and -o work with binary hash files 2020-06-15 15:43:49 +02:00
Jens Steube
4aaec30ada
Merge pull request #2404 from philsmd/master
use our safe free () wrapper hcfree whenever possible
2020-06-02 12:34:19 +02:00
Jens Steube
84d3981e7b Add returncode PARSER_HAVE_ERRNO as a valid returncode from module_hash_binary_count() and module_hash_binary_parse() module hooks. You can use this in case fopen() fails and you want to transport back the original error from the OS 2020-05-27 15:23:02 +02:00
Jens Steube
1dc3469f6e
Merge pull request #2372 from mpalmer/binary-parse-report-error
Allow module_hash_binary_parse to report a fatal error
2020-05-18 15:14:49 +02:00
philsmd
d1c3274965
use our safe free () wrapper hcfree whenever possible 2020-05-14 19:21:59 +02:00
Jens Steube
d5cd0a0030 Fix invalid brain session id calculation and move sorting functions to shared.c 2020-05-11 11:52:36 +02:00
Matt Palmer
b4204d265d Allow module_hash_binary_parse to report a fatal error
If module_hash_binary_parse is completely unable to successfully parse out
any hashes, up until now the output has been

```
Hashfile 'foo': Success
```

which is less than helpful.

This patch allows (but does not require) m_h_binary_parse to report a useful
error response, by returning a negative value.  Modules which continue to
return '0 hashes' will get the same less-than-useful behaviour they always
hace.

I've also modified the LUKS module to report a useful error, as a proof of
concept.

Further expansions on this could include:

* Applying similar behaviour to module_hash_binary_count, so it too can
  report errors when trying to count hashes.  This would require more
  co-ordinated change, because m_h_binary_count already uses -1 to indicate
  a system error.

* Allow and encourage modules to print their own errors and warnings during
  parsing.  This would allow for situations where a single hash in a
  multi-hash file could be reported as malformed, without having to fail the
  whole parse.  However, implementing this would, I expect, require modules
  to have access to `hashcat_ctx`, which...  yeah.  Not so straightforward.
2020-04-23 12:05:41 +10:00
Jens Steube
f1d4260983 Fix missing hc_unlockfile() 2020-02-29 10:40:47 +01:00
Jens Steube
84209dd2ff Fix buffer overflow in src/hashes.c 2020-01-13 14:40:52 +01:00