Jens Steube
fb081947e1
Fixed access to filename which is a null-pointer in benchmark mode
3 years ago
Jens Steube
96df73dee4
Merge pull request #2646 from Slattz/master
...
Fix --keep-guessing mode
3 years ago
Jens Steube
33d95348f5
Update patch
3 years ago
Jens Steube
db57497e8f
Prevent unit test of -m 3000 to generate zero hash. This confuses test.sh validator
3 years ago
Jens Steube
56f47cabe2
Fixed race condition in potfile check during removal of empty hashes
3 years ago
Dávid Bolvanský
430b8b17c1
Machine readable mode for show hash feature
4 years ago
Jens Steube
1323ef3a82
Support loading hash from command line in -m 22000 and -m 22001
...
Fixes #2742
4 years ago
Gabriele Gristina
77e328d659
Removed option --example-hashes, now is an alias of --hash-info
4 years ago
Gabriele Gristina
3ed1f0d840
Added new option: --hash-info
4 years ago
Slattz
e5f2a877a5
Fix --keep-guessing mode
...
New cracked passwords would not be outputted at all.
Broken by 04d5e5a119
4 years ago
Jens Steube
04d5e5a119
New Attack-Mode: Association Attack. Like JtR's single mode. Very early
...
stage. See hashcat Forum for detailed writeup.
4 years ago
philsmd
437e9aa3d1
allow --left and -o work with binary hash files
4 years ago
Jens Steube
4aaec30ada
Merge pull request #2404 from philsmd/master
...
use our safe free () wrapper hcfree whenever possible
4 years ago
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
4 years ago
Jens Steube
1dc3469f6e
Merge pull request #2372 from mpalmer/binary-parse-report-error
...
Allow module_hash_binary_parse to report a fatal error
4 years ago
philsmd
d1c3274965
use our safe free () wrapper hcfree whenever possible
4 years ago
Jens Steube
d5cd0a0030
Fix invalid brain session id calculation and move sorting functions to shared.c
4 years ago
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.
4 years ago
Jens Steube
f1d4260983
Fix missing hc_unlockfile()
5 years ago
Jens Steube
84209dd2ff
Fix buffer overflow in src/hashes.c
5 years ago
Jens Steube
2884bded32
Initialize some variable to make scan-build happy
5 years ago
Jens Steube
6adc217bae
Keep output of --show and --left in the original ordering of the input hash file
5 years ago
Rosen Penev
bd6c0e57e4
Change 0/1 to true/false
...
Found with clang-tidy
5 years ago
Jens Steube
97c9e86d15
Filehandling: Print a truncation warning in case an oversized line was detected
5 years ago
Rosen Penev
ab061ba761
Run Clang's bugprone-narrowing-conversions
...
Fairly minor issue.
5 years ago
Gabriele Gristina
6940f11b15
fix buffer overflow in build_plain()
5 years ago
Gabriele Gristina
ea44f1a186
Fix outfile bug
5 years ago
Gabriele Gristina
3d39d2fc91
update all HCFILE vars and related code
5 years ago
Gabriele Gristina
3161aec3da
fix the comments :)
5 years ago
Gabriele Gristina
5679ca3344
Rewrite hc_fopen to better handling file descriptor locking/unlocking functions, saving kernels binary from plain to gzip format
5 years ago
Gabriele Gristina
5d3ed3e754
Remove union from HCFILE, using std file ops in ocl_check_dri, remove debug comments
5 years ago
Gabriele Gristina
c2e634c426
switch is_gzip from short to bool
5 years ago
Gabriele Gristina
481c752456
No more compress functions, update example.dict.gz, remove some comments
5 years ago
Gabriele Gristina
398c89c75c
switch almost all FILE ops, potfile is the only missing
5 years ago
Gabriele Gristina
b2529af172
remove original commented code
5 years ago
Gabriele Gristina
6cb4abd526
Add zlib support v2
5 years ago
Jens Steube
08dc1acc02
More CUDA rewrites
5 years ago
Jens Steube
50a6e720ca
More OpenCL variables rename
5 years ago
Jens Steube
af8e317cf4
Begin renaming some OpenCL only variables
5 years ago
Jens Steube
3c4f4df771
Rename some more variables
5 years ago
Jens Steube
4b986de5fb
Prepare native CUDA hybrid integration
6 years ago
jsteube
13edc32fb4
Fix some unused variable warnings
6 years ago
jsteube
c0a31b3239
Prepare potfile specific module_hash_decode and module_hash_encode hooks
6 years ago
jsteube
319bf80178
Fix hash_encode() salt position
6 years ago
jsteube
708a86fb59
Move old ascii_digest() to hashes.c and rename it to hash_encode(), also remove some unused includes
6 years ago
jsteube
2158fd70c9
Fix use of OPTS_TYPE_COPY_TMPS in modules
6 years ago
jsteube
d80603648e
Replace plain_t with void in module_build_plain_postprocess() enables some options
6 years ago
jsteube
ba56f41d26
Abort session if module_hash_binary_count () returns zero
6 years ago
jsteube
218322f630
Support for inline VeraCrypt PIM Brute-Force
6 years ago
jsteube
166f908241
Get rid of some old hack and cleanly distinguish between HL_MODE_FILE_PLAIN and HL_MODE_FILE_BINARY
6 years ago