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
Jens Steube
2884bded32
Initialize some variable to make scan-build happy
2019-11-26 10:55:57 +01:00
Jens Steube
6adc217bae
Keep output of --show and --left in the original ordering of the input hash file
2019-11-05 13:49:22 +01:00
Rosen Penev
bd6c0e57e4
Change 0/1 to true/false
...
Found with clang-tidy
2019-09-11 18:36:52 -07:00
Jens Steube
97c9e86d15
Filehandling: Print a truncation warning in case an oversized line was detected
2019-08-06 12:22:24 +02:00
Rosen Penev
ab061ba761
Run Clang's bugprone-narrowing-conversions
...
Fairly minor issue.
2019-08-03 22:37:38 -07:00
Gabriele Gristina
6940f11b15
fix buffer overflow in build_plain()
2019-07-11 17:56:34 +02:00
Gabriele Gristina
ea44f1a186
Fix outfile bug
2019-07-11 13:04:18 +02:00
Gabriele Gristina
3d39d2fc91
update all HCFILE vars and related code
2019-07-02 21:30:35 +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
5d3ed3e754
Remove union from HCFILE, using std file ops in ocl_check_dri, remove debug comments
2019-06-28 17:58:08 +02:00
Gabriele Gristina
c2e634c426
switch is_gzip from short to bool
2019-06-27 23:51:54 +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
08dc1acc02
More CUDA rewrites
2019-05-05 11:57:54 +02:00
Jens Steube
50a6e720ca
More OpenCL variables rename
2019-05-02 17:30:46 +02:00
Jens Steube
af8e317cf4
Begin renaming some OpenCL only variables
2019-05-02 17:12:59 +02:00
Jens Steube
3c4f4df771
Rename some more variables
2019-05-01 15:52:56 +02:00
Jens Steube
4b986de5fb
Prepare native CUDA hybrid integration
2019-04-25 14:45:17 +02:00
jsteube
13edc32fb4
Fix some unused variable warnings
2019-04-03 21:53:34 +02:00
jsteube
c0a31b3239
Prepare potfile specific module_hash_decode and module_hash_encode hooks
2019-04-01 12:32:11 +02:00
jsteube
319bf80178
Fix hash_encode() salt position
2019-03-31 20:17:17 +02:00
jsteube
708a86fb59
Move old ascii_digest() to hashes.c and rename it to hash_encode(), also remove some unused includes
2019-03-31 17:39:00 +02:00
jsteube
2158fd70c9
Fix use of OPTS_TYPE_COPY_TMPS in modules
2019-03-30 16:55:55 +01:00
jsteube
d80603648e
Replace plain_t with void in module_build_plain_postprocess() enables some options
2019-03-30 16:32:11 +01:00
jsteube
ba56f41d26
Abort session if module_hash_binary_count () returns zero
2019-03-17 15:01:41 +01:00
jsteube
218322f630
Support for inline VeraCrypt PIM Brute-Force
2019-03-15 21:48:49 +01:00
jsteube
166f908241
Get rid of some old hack and cleanly distinguish between HL_MODE_FILE_PLAIN and HL_MODE_FILE_BINARY
2019-02-25 11:20:22 +01:00