Rosen Penev
ae07d65f34
clang-tidy: remove useless casts
...
Now that const was fixed, pointless casts can be removed.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2023-08-20 21:10:34 -07:00
philsmd
b2c2fc86b4
fix whitespace
2022-11-30 16:05:05 +01:00
Rick van der Zwet
1b663b02fe
Fix m14600 confusing error message on container without payload data
...
When multiple error messages are available, prioritize any parsing error
over PARSER_LUKS_KEY_DISABLED.
This takes priority since it more meaningfull to report to user.
2022-11-17 20:59:09 +01:00
Konrad Goławski
74e2dad0d7
LUKS legacy module code cleanup
2022-07-22 18:49:02 +02:00
philsmd
d9749e8799
change interface, add module_benchmark_charset ()
2022-07-15 17:17:57 +02:00
Konrad Goławski
ddb2d6e61a
New LUKS v1 modules
2022-06-25 13:54:20 +02:00
Jens Steube
6fce6fb3ff
Update all existing modules to use the stock module marker
2022-04-08 14:11:50 +02: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
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
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
Jens Steube
d4997d1255
Added support for auto-tuning --kernel-threads (-T) on startup
2021-07-31 16:49:39 +02:00
Jens Steube
1e35b05979
Update unstable warning message in all modules based on latest AMD driver (rocr version)
2021-04-22 20:10:49 +02:00
Jens Steube
a834574daf
Update module_unstable_warning() based on the latest available drivers:
...
- NVIDIA-Linux-x86_64-460.73.01
- amdgpu-pro-20.50-1234664-ubuntu-20.04 (rocr for new gpu, legacy for
old gpu)
- w_opencl_runtime_p_2021.2.0.616.exe
Not tested:
- Apple *
- l_opencl_p_18.1.0.015.tgz
- Intel GPU
- POCL
Update docs/license.txt
2021-04-18 14:41:44 +02:00
Jens Steube
98aef2ae92
Module Structure: Add 3rd party library hook management functions. This also requires an update to all existing module_init()
2020-08-29 16:12:15 +02:00
Jens Steube
c51b6391c9
Merge pull request #2405 from philsmd/luks_hash_example_fix
...
luks: remove self-test example hash
2020-06-02 12:35:07 +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
943c57ae5f
luks: remove self-test example hash
2020-05-14 19:27:39 +02:00
Jens Steube
33579ae3db
Add new option for modules OPTS_TYPE_SELF_TEST_DISABLE to disable self-test functionality from hash-mode directly
2020-05-08 10:18:17 +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
Rosen Penev
49edbe184b
Avoid narrowing errors
...
C++ with -Wnarrowing complains about these.
2019-09-11 20:18:26 -07:00
Jens Steube
2aa5299992
Workaround too much register use in -m 14600 on low-end GPU
2019-08-05 15:23:00 +02:00
Gabriele Gristina
3161aec3da
fix the comments :)
2019-07-01 17:27:08 +02:00
Gabriele Gristina
5679ca3344
Rewrite hc_fopen to better handling file descriptor locking/unlocking functions, saving kernels binary from plain to gzip format
2019-07-01 01:30:24 +02:00
Gabriele Gristina
481c752456
No more compress functions, update example.dict.gz, remove some comments
2019-06-27 20:18:47 +02:00
Gabriele Gristina
398c89c75c
switch almost all FILE ops, potfile is the only missing
2019-06-26 19:06:46 +02:00
Gabriele Gristina
b2529af172
remove original commented code
2019-06-22 15:00:50 +02:00
Gabriele Gristina
6cb4abd526
Add zlib support v2
2019-06-21 21:56:38 +02:00
Jens Steube
f1632b933e
Add support to configure hash-mode specific range of number of hashes supported
2019-05-19 14:46:05 +02:00
jsteube
b8d609ba16
WPA/WPA2 cracking: In the potfile, replace password with PMK in order to detect already cracked networks across all WPA modes
2019-04-02 11:24:22 +02:00
jsteube
c0a31b3239
Prepare potfile specific module_hash_decode and module_hash_encode hooks
2019-04-01 12:32:11 +02:00
jsteube
88a051629c
Support module specific JiT compiler build options
2019-03-02 11:12:13 +01:00
jsteube
b01038b8f4
Allow module_hash_encode() to be set to MODULE_DEFAULT if OPTS_TYPE_BINARY_HASHFILE is set. In that case return hashfile name
2019-02-22 07:00:34 +01:00
jsteube
13b99d5825
Fix module_hash_binary_parse() in -m 14600 module
2019-02-20 20:35:28 +01:00
jsteube
bab735b367
Get rid of hash_type variable. This hopefully reduces some confusion for new hashcat kernel developers
2019-02-12 16:02:27 +01:00
jsteube
d7db71042f
Add -m 14600 module
2019-02-08 15:40:27 +01:00