1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 15:18:16 +00:00
Commit Graph

7061 Commits

Author SHA1 Message Date
philsmd
5df743cb85
fixes #2410: added -m 2300x = SecureZIP 2020-05-31 10:36:41 +02:00
philsmd
ea6eab29f8
added OpenCL kernel code for AES-192 2020-05-31 10:30:19 +02:00
Jens Steube
6c0dc7493e Fix modules where salt->salt_buf[] is used but salt->salt_len was not set 2020-05-29 11:19:49 +02:00
Your Name
077da392f0 added WSL build documentation 2020-05-27 21:15:36 +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
Matt Palmer
cff3fbda9b Provide benchmark esalt structure 2020-05-27 20:30:00 +10:00
Jens Steube
bb19c9cf1b
Merge pull request #2373 from mpalmer/more-error-messages
Add some more generic error messages
2020-05-26 13:25:36 +02:00
philsmd
f382d24dcf
fixes #2365: NSEC3 dot replace and empty salt/domain fix 2020-05-25 11:30:45 +02:00
philsmd
edfe21b902
fixes #2390: RAR3-hp cracking w/ pass > 28 (pure kernel) + tests added 2020-05-25 11:08:33 +02:00
philsmd
abd2045659
fixes #2413: documentation of rule "*" was incorrect 2020-05-25 10:58:08 +02:00
Royce Williams
eb4e845672 add hashcat's default mask for external use 2020-05-23 12:35:41 -08:00
Jens Steube
9b64a405d1 Fixed cleanup of password candidate buffers on GPU set from autotune in case -n was used 2020-05-20 12:44:04 +02:00
Matt Palmer
2d83149a54 Module to decrypt PEM-encoded encrypted private keys (#74)
Supports a variety of common PKCS#1 ciphers, with fast kernels in all
available colours, shapes, and sizes.
2020-05-19 23:58:09 +10:00
Matt Palmer
f2c69ecfe5 Add md5_update_vector_from_scalar
This is similar in concept to *_init_v_f_s, except that all
contexts in the vector are updated from the same scalar
array of data.
2020-05-19 23:52:16 +10:00
Matt Palmer
c39e3dfcea Add some more generic error messages
These are almost all taken from error messages that are specific to one
particular module, and turned into generic errors that can be used for any
module.  It seemed like a better idea to provide generic messages than to
encourage infinite proliferation of error codes (which would probably end up
blowing the 255 value threshold sooner or later).  It doesn't seem necessary
to provide module-specific error messages for things like "Invalid <X>
filesize", since users should already know what sort of file they're asking
to be parsed.
2020-05-19 23:52:16 +10:00
Matt Palmer
86906e28b7 SIMD: add VECTOR_ELEMENT macro
Useful in cirumstances where you want to work with individual elements
of a vector, typically after you've done some vector-compatible operations
(mass-hashing, for example) but now need to do some non-vector-friendly
work (like executing most decryption algorithms).
2020-05-19 14:32:01 +10: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
5190441dfd
-m 21000 = BitShares fix for different vector width 2020-05-18 10:37:58 +02:00
philsmd
943c57ae5f
luks: remove self-test example hash 2020-05-14 19:27:39 +02:00
philsmd
d1c3274965
use our safe free () wrapper hcfree whenever possible 2020-05-14 19:21:59 +02:00
Jens Steube
109fa01a54
Merge pull request #2395 from s3inlc/patch-2
Adding escaping for --status-json
2020-05-14 09:44:10 +02:00
Sein Coray
d91a25027b
minor adjustments to code style and explanatory comment added 2020-05-13 13:37:30 +02:00
Jens Steube
ff37264c36 Use special type for hashlist sorting in brain_compute_session() 2020-05-12 08:54:26 +02:00
Sein Coray
4a0757e251
added escaping to --status-json output 2020-05-11 23:22:47 +02:00
Jens Steube
f9e4dc0db1 Remove sort_by_string(), no longer needed 2020-05-11 12:00:26 +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
Jens Steube
08ea00020a Fixed calculation of brain-session ID, only the first hash of the hashset was taken into account 2020-05-10 10:05:14 +02:00
Jens Steube
d34381680d
Merge pull request #2389 from philsmd/multibit_22500_fix
fixes possible off-by-one verification problem with -m 22500 = MultiBit Classic
2020-05-08 11:41:54 +02:00
Jens Steube
89b75fe16e
Merge pull request #2388 from philsmd/master
fixes #2383: added -m 22700 = MultiBit HD (scrypt)
2020-05-08 11:40:41 +02:00
philsmd
e15e0e7b71
fixes possible off-by-one verification problem with -m 22500 = MultiBit Classic 2020-05-08 11:11:47 +02:00
philsmd
b7e5216cf1
fixes #2383: added -m 22700 = MultiBit HD (scrypt) 2020-05-08 10:57:32 +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
Jens Steube
c7da6357ff suppress some handpicked control characters from being printed to console 2020-04-30 13:29:51 +02:00
Jens Steube
d22a9a0978 Merge branch 'master' of https://github.com/hashcat/hashcat 2020-04-30 12:58:46 +02:00
Matt Palmer
b25c8d9a5a Add some more generic error messages
These are almost all taken from error messages that are specific to one
particular module, and turned into generic errors that can be used for any
module.  It seemed like a better idea to provide generic messages than to
encourage infinite proliferation of error codes (which would probably end up
blowing the 255 value threshold sooner or later).  It doesn't seem necessary
to provide module-specific error messages for things like "Invalid <X>
filesize", since users should already know what sort of file they're asking
to be parsed.
2020-04-23 12:36:15 +10: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
c5d2d5396f
Merge pull request #2366 from philsmd/patch-1
fixes #2361: add note about --force when using -u / -n
2020-04-20 11:54:56 +02:00
Jens Steube
e542b4bd85
Merge pull request #2364 from mpalmer/fix-build-warning-in-debug-mode
Fix build warning in DEBUG mode
2020-04-20 11:54:28 +02:00
philsmd
01d378a744
fixes #2361: add note about --force when using -u / -n 2020-04-19 05:11:52 +02:00
Matt Palmer
240d35976a Fix build warning in DEBUG mode
Just a tiny cleanup to avoid an 'unused variable' warning when building
with DEBUG=1.
2020-04-18 12:18:18 +10:00
Jens Steube
f96594ef87
Merge pull request #2355 from philsmd/master
Added -m 22600 = Telegram Desktop App Passcode (PBKDF2-HMAC-SHA1)
2020-04-08 16:14:59 +02:00
philsmd
688d904aa0
Added -m 22600 = Telegram Desktop App Passcode (PBKDF2-HMAC-SHA1) 2020-04-08 14:31:47 +02:00
Jens Steube
1797f3ffa4 Merge branch 'master' of https://github.com/hashcat/hashcat 2020-04-02 15:16:26 +02:00
Jens Steube
3c1ddc8149 Revert "Precompute some constants to improve performance of -m 780x SAP kernels"
This reverts commit b1bb47c1ae.
2020-04-02 14:55:04 +02:00
Jens Steube
b89bb84e1d Revert "Fix -m 7800 and -m 7801 on CPU"
This reverts commit 9f9ed78ca7.
2020-04-02 14:54:35 +02:00
Jens Steube
2c94c003ce
Merge pull request #2353 from s3inlc/patch-separator
Patch all inconsistent separators in modules
2020-04-02 14:39:42 +02:00
Jens Steube
a45548d176
Merge pull request #2351 from s3inlc/patch-1
Fix constant separator when printing IPMI hashes
2020-04-02 14:39:24 +02:00
Jens Steube
26570cdb17 Disable some modules on AMDGPU-Pro driver 2020-04-01 15:10:52 +02:00
Jens Steube
008072eb65 OpenCL Runtime: Added a warning if OpenCL runtime NEO, Beignet, POCL or MESA is detected and skip associated devices (override with --force) 2020-04-01 10:16:49 +02:00
s3inlc
b9d251b76e fixing all inconsistent hash separators 2020-03-31 20:40:09 +02:00