Jens Steube
e82ce9243d
Added support for filtering hccapx message pairs using --hccapx-message-pair
2017-02-27 12:09:49 +01:00
Jens Steube
0fc949ef69
Fixed cracking of PeopleSoft Token if salt length + password length is >= 128 byte
2017-02-27 11:06:53 +01:00
jsteube
d2e95d5e1b
Fix WPA/WPA2 incorrectly reports cracked passwords in some cases
2017-02-27 09:30:02 +01:00
jsteube
dc170907ed
Compress multiple newlines to one in host code, too
2017-02-26 15:48:14 +01:00
jsteube
f381b107a3
Remove some unused variable
2017-02-23 12:15:19 +01:00
jsteube
7797826c8d
Continue with WPA hashing logic as it was already
2017-02-23 09:46:26 +01:00
jsteube
d8e056d59f
Also add WPA keymic to parser hash
2017-02-23 00:49:12 +01:00
jsteube
9b08d4af0f
Update hccapx format to version 4
2017-02-21 20:07:18 +01:00
Jens Steube
2dd027af65
Make sure to zero scratch buffer for WPA/WPA2 and LUKS
2017-02-21 13:09:00 +01:00
Jens Steube
dd55c1eb66
WPA: Changed format for outfile and potfile from essid:mac1:mac2 to hash:mac_ap:mac_sta:essid
...
Fixes https://github.com/hashcat/hashcat/issues/1113
2017-02-19 14:45:27 +01:00
jsteube
ef004e85f0
Fix some variable initializationg warnings in older GCC
2017-02-16 10:10:38 +01:00
philsmd
12517f1b7a
typo: don't add URI_prefix_len and URI_suffix_len twice
2017-02-15 11:50:35 +01:00
philsmd
02480f906a
prevent buffer overflow in case of OPTS_TYPE_ST_ADD80 and/or OPTS_TYPE_ST_ADD01
2017-02-15 11:33:52 +01:00
philsmd
0993f2e748
fixed maximum salt_len for pbkdf2 buffers
2017-02-14 22:05:47 +01:00
philsmd
54915e4d7b
minor: do not use UINT_MAX as upper bound for the salt_len
2017-02-14 21:54:49 +01:00
philsmd
f351461ecd
max esalt_buf for sip fixed: we also need to append 0x80
2017-02-14 21:45:18 +01:00
jsteube
be3ce44f75
Fix CID 1402444 ( #1 of 1): Out-of-bounds read
2017-02-14 21:40:11 +01:00
philsmd
f535eb2bd0
always check the input for NULL before the strtok_r () calls
2017-02-14 20:46:03 +01:00
philsmd
12047861c5
also double-check input/output of strtok_r ()
2017-02-14 20:07:49 +01:00
philsmd
a82f6fb77c
our usage of strtok_r () was not totally correct (but almost)
2017-02-14 19:48:07 +01:00
philsmd
e5ecbb9a59
minor: within parse_and_store_salt () do the initialization of the buffer at the very start
2017-02-14 19:30:36 +01:00
philsmd
05f8abdbe7
minor: useless code (since we removed the swaps)
2017-02-14 19:17:45 +01:00
philsmd
7818712090
minor: check for return value of sscanf () within the zip2 parse function
2017-02-14 18:58:25 +01:00
philsmd
9efc429928
dead code: in office parse functions
2017-02-14 18:49:35 +01:00
philsmd
4eadbf221e
dead code: already implied length within the android fde parsing function
2017-02-14 18:25:20 +01:00
philsmd
8fa361dffa
dead code: already implied length within the android fde parsing function
2017-02-14 18:22:46 +01:00
philsmd
d366a93bb3
we always need to check for NULL after strchr ()
2017-02-14 17:54:18 +01:00
philsmd
49ba6cb05d
-m 13100 = Kerberos 5 TGS-REP: parser failed to correctly verify the hash
2017-02-14 17:45:05 +01:00
philsmd
6915bfad8b
keyfiles: for VeraCrypt/TrueCrypt keyfiles we need to free the memory in case of errors
2017-02-14 17:32:39 +01:00
philsmd
23368c7304
fix: added additional fclose () whenever an hash parsing error occurs
2017-02-14 17:22:52 +01:00
philsmd
553eddad49
-m 11400 = SIP digest authentication (MD5): added bound checks in parser
2017-02-14 15:58:44 +01:00
philsmd
67a8584f7c
precompute_salt_md5: don't allow a salt_len > 64
2017-02-14 15:27:31 +01:00
philsmd
0771a8e36a
fix: we should initialize the aes_key in seven_zip_hook_func ()
2017-02-14 11:10:33 +01:00
jsteube
63b7321be2
Fixed WPA/WPA2 cracking in case eapol frame is >= 248 byte
2017-02-13 18:31:15 +01:00
jsteube
9c5cfd17ac
Added support for automatic merge of LM halfes when --show and --left is used
...
Fixes https://github.com/hashcat/hashcat/issues/1034
2017-02-13 16:46:37 +01:00
philsmd
227c0be95e
resolves #1018 : added -m 3910 = md5(md5($pass).md5($salt))
2017-02-12 18:12:17 +01:00
Rosen Penev
a3d04a40b0
Fix more cppcheck warnings
2017-02-10 16:10:21 -08:00
jsteube
9aabc20248
Add a warning message if old hccap file is detected and abort
2017-02-08 20:25:04 +01:00
jsteube
5b922a6b8d
Fix for https://github.com/hashcat/hashcat/issues/1029
2017-02-07 16:23:42 +01:00
jsteube
717da7f4f2
Added support for loading hccapx files
2017-02-06 17:03:42 +01:00
philsmd
15a9644f2a
fixes #943 : added -m 15000 = FileZilla Server >= 0.9.55
2017-02-03 00:07:31 +01:00
philsmd
fe6309caa7
fixes #398 : added -m 4110 md5($salt.md5($pass.$salt))
2017-02-01 19:56:49 +01:00
philsmd
8e689058d0
#398 : add -m 4010 = md5($salt.md5($salt.$pass))
2017-02-01 16:56:14 +01:00
jsteube
2135ea3329
WPA: Changed format for outfile and potfile from essid:mac1:mac2 to hash:essid
...
WPA: Changed format for outfile_check from essid:mac1:mac2 to hash
2017-02-01 12:25:21 +01:00
philsmd
ed74ce1aca
fixes #928 : new mode -m 1411 = SSHA-256(Base64), LDAP {SSHA256}
2017-01-31 12:40:43 +01:00
jsteube
e0c3f447da
Added hash-mode 4520 = sha1($salt.sha1($pass))
...
Added hash-mode 4522 = PunBB
OpenCL Kernel: Renumbered hash-mode 7600 to 4521
The mode 4520 is the first to support salt length up to 64
2017-01-31 11:44:58 +01:00
philsmd
96e312ccb6
fixes #537 : added -m 7000 = Fortigate (FortiOS)
2017-01-30 21:18:37 +01:00
jsteube
1b8c2a29f1
Added hash-mode 14900 = Skip32
2017-01-29 16:43:08 +01:00
Jens Steube
07c89833c9
Added hash-mode 14800 = iTunes Backup >= 10.0
2017-01-26 21:16:29 +01:00
philsmd
78fc0e87bd
minor: we actually could/should omit the use of wpky_buf_ptr here
2017-01-25 20:08:41 +01:00
philsmd
7660b06e1c
minor: changed grouping of byte_swap_32 () and u32_to_hex_lower () for -m 14700
2017-01-25 19:56:34 +01:00
philsmd
0201d89099
fixed offset for dpsl buffer
2017-01-25 19:44:13 +01:00
philsmd
9327475b41
added -m 14700 = iTunes Backup < 10.0
2017-01-25 19:07:07 +01:00
philsmd
2bf49d424c
-m 11600: additional check for padding attack in case of unsupported coder
2017-01-24 16:32:31 +01:00
philsmd
2845f0e716
-m 11600: additional check for padding attack in case of unsupported coder
2017-01-24 16:28:00 +01:00
philsmd
b22b2012b8
-m 11600: allow hashes with compressions different from LZMA1/LZMA2
2017-01-24 16:11:47 +01:00
philsmd
297c797521
hook code: refactored the hook salt to be part of the hash_t struct
2017-01-24 15:23:48 +01:00
philsmd
6fe0173a79
#965 : new hook function to support LZMA1/LZMA2 decompression for -m 11600 = 7-Zip
2017-01-24 10:28:35 +01:00
jsteube
8d6170d66e
Simply do not use __builtin_bswap16() this causes all kinds of problems, use our own implementation
2017-01-21 18:23:11 +01:00
jsteube
53d467abf8
Fix travis-ci error caused by __builtin_bswapXX()
2017-01-21 18:03:47 +01:00
jsteube
8257883ec1
Added hash-mode 14600 = LUKS
2017-01-21 15:37:44 +01:00
philsmd
98fee66486
-m 11600 = 7-Zip: added support for parsing $7z$1... and $7z$2... hashes
...
Attention: the LZMA/LZMA2 decompression step still needs to be implemented (e.g. via a hook)
2017-01-12 20:28:16 +01:00
Jens Steube
e01ccb9e81
Fixed plaintext cracking mode, used invalid offset
2017-01-05 22:55:53 +01:00
Jens Steube
e3ad2f9b7d
Fixed buffer overflow in plaintext parsing code: Leading to segfault
2017-01-05 17:39:14 +01:00
jsteube
ad42dd59ac
Fixed hash-mode 11400 = SIP digest authentication (MD5): Cracking of hashes which did not include *auth* or *auth-int* was broken
2017-01-05 16:14:12 +01:00
Jens Steube
0cdf929ab2
Fix -m 9720 byte swaps
2016-12-30 17:21:27 +01:00
Jens Steube
d259f96790
Fix -m 10600 and -m 10700 parser
2016-12-26 15:58:01 +01:00
jsteube
514fc0fe75
Switch hex_to_u32() to LE
...
Also fixes -m 11100 is_valid_hex_string()
2016-12-26 15:09:56 +01:00
jsteube
ceed66d50b
Switch hex_to_u64() to LE
2016-12-26 13:09:41 +01:00
jsteube
f0b287e838
Get rid of bin_to_hex_lower(), add u8_to_hex_lower(), u32_to_hex_lower() and u64_to_hex_lower()
2016-12-26 12:52:06 +01:00
jsteube
fa5b5d298d
Hash Parser: Improved error detection of invalid hex characters where hex character are expected
2016-12-23 14:57:46 +01:00
jsteube
72af615e8b
WPA cracking: Reuse PBKDF2 intermediate keys if duplicate essid is detected
2016-12-22 02:17:49 +01:00
Gabriele Gristina
8b0764bc4d
Add support for SHA-224
2016-12-16 02:05:12 +01:00
jsteube
f218e85c4d
Fix -m 7300 hash output from ascii_digest()
2016-12-01 17:28:19 +01:00
Rosen Penev
4d09cc10fd
Fix some formats and conversion errors
2016-11-30 15:14:42 -08:00
jsteube
cad3b3e10b
Get rid of truecrypt_mdlen
2016-11-30 11:41:31 +01:00
jsteube
66a9f2f544
Merge strcmp() changes from https://github.com/hashcat/hashcat/pull/604
2016-11-21 11:36:49 +01:00
jsteube
ea4fd1de50
Remove complicated checks after memory allocation and in case of error print to stderr instead. This makes the memory allocation functions more natural to use.
2016-11-20 22:54:52 +01:00
jsteube
c8daffb4b6
Fix some unreachable code
2016-11-20 22:11:33 +01:00
jsteube
5c871d5322
Initialize psafe3 header even if later overwritten by fread() to make scan-build happy
2016-11-20 21:49:16 +01:00
jsteube
7388c032a8
Remove some useless calls which helped understanding the code logic to make scan-build happy
2016-11-20 21:38:17 +01:00
jsteube
7f1dbf5a33
Fix too late check of fread() return in interface.c
2016-11-20 13:53:33 +01:00
jsteube
e8078f2c73
Add output buffer size to ascii_digest()
2016-11-19 16:10:01 +01:00
Rosen Penev
03efea645f
More sign fixes
2016-11-16 21:17:28 -08:00
Rosen Penev
4e82eb9281
Replace atoi with atoll. Eliminates sign conversion warnings
2016-11-16 20:43:17 -08:00
Rosen Penev
c13ef5aacd
Fix formats found by cppcheck
2016-11-16 20:30:14 -08:00
jsteube
d5375a4818
Fix some code in interface.c to make cppcheck happy
2016-11-16 15:36:06 +01:00
jsteube
536dcef7eb
Replaced all calls to strtok() with strtok_r() to ensure thread safety
2016-11-16 10:35:01 +01:00
jsteube
5623087048
Remove unused function md4s_parse_hash() from interface.c
2016-11-16 10:10:12 +01:00
Rosen Penev
22abb22c13
Fix a few printf formats
2016-11-13 17:45:36 -08:00
jsteube
0e9ef5313d
Optimize salt initialization in ascii_digest()
2016-11-12 16:07:42 +01:00
jsteube
d4a7cbf101
Fix uninitialized salt buffer in ascii_digest()
2016-11-12 16:03:52 +01:00
jsteube
17d2726c24
Comment out some unused code but do not remove it to keep up the logic of the code visible
2016-11-12 15:56:51 +01:00
jsteube
5835f0991f
Improved NSEC3 hashes parsing error detection
2016-11-12 12:50:02 +01:00
jsteube
2bda020c83
Added new hash-mode 14400 = SHA1(CX)
...
Details: https://github.com/hashcat/hashcat/issues/554
2016-11-12 11:39:38 +01:00
jsteube
1c8847499d
Fix -i loop if mask is shorter than increment_max or pw_max
2016-11-07 11:17:05 +01:00
jsteube
2507f62722
Add hash-mode option OPTS_TYPE_PT_ALWAYS_ASCII to control need_hexify() from interface.c
2016-11-05 14:46:00 +01:00
jsteube
f3626fa082
Added new hash-mode 99999 = Plaintext
2016-11-03 19:02:55 +01:00
jsteube
5b69620a35
Do not use sizeof() on a pointer address
2016-11-02 23:40:14 +01:00
jsteube
93adde9d2f
* Wrap everything related to *stat() into own functions
...
* Testwise remove early includes to stdin for OSX, see if they are still required
2016-10-31 11:28:06 +01:00
jsteube
6d2ce0d71a
Added option --keep-guessing to continue cracking hashes even after they have been cracked.
...
It will be useful if there are multiple collisions and we want a specific one.
This one implements https://github.com/hashcat/hashcat/issues/493
2016-10-31 10:09:04 +01:00
jsteube
b8efae4281
Refactor all variables with HCBUFSIZ_LARGE size from stack to heap
2016-10-30 22:47:48 +01:00
jsteube
9f790d4dbd
Move u8 * instead of char * for most interface.c functions
2016-10-30 21:56:56 +01:00
jsteube
7eef713ff7
Fix compiler warnings caused by -Wshadow
2016-10-30 20:37:02 +01:00
Gabriele Gristina
3afa29bcff
Cleanup src/interface.c code
2016-10-30 15:22:25 +01:00
jsteube
df8a9ab5e5
Support mixed kernel thread count for mixed kernels in the same source file
...
Get rid of one global kernel_threads variable
Recognize reqd_work_group_size() values from OpenCL kernels and use them in host if possible
Fix some white spaces
Remove unused weak* kernels
Rename hashconfig_enforce_kernel_threads() to hashconfig_get_kernel_threads() - we do not enforce anymore
Rename hashconfig_enforce_kernel_loops() to hashconfig_get_kernel_loops() - we do not enforce anymore
Add some missing checks for --quiet
2016-10-29 14:02:29 +02:00
jsteube
39eed94703
Add option OPTS_TYPE_BINARY_HASHFILE for interface.c
2016-10-27 00:32:38 +02:00
jsteube
e4b3ea937f
Fix salt length for -m 22 in benchmark mode
2016-10-19 16:52:41 +02:00
jsteube
8598a79732
Removed exit() from memory.c, resulting in all exit() calls removed from all code in the repository
2016-10-13 10:07:04 +02:00
jsteube
af9de0a7b7
Fix some error string formats
2016-10-11 10:55:02 +02:00
jsteube
8fc4da795b
Replace fprintf(stderr, ...) on malloc.c with log_event_error()
2016-10-10 11:03:11 +02:00
jsteube
0f96c57ead
Remove some workarounds to use get rid of unused variable warnings
2016-10-10 09:12:36 +02:00
jsteube
27bec8be13
Get rid of logging.c and most exit() calls replaced with return() for true library usage
2016-10-09 22:41:55 +02:00
jsteube
fa4de96ab0
switch cpu_crc32.c to event_log_*
2016-10-08 23:53:52 +02:00
jsteube
bea228dabe
Add straight_ctx_update_loop()
2016-10-06 22:18:20 +02:00
jsteube
a97e31881c
Update interface.c function parameters
2016-10-06 15:49:07 +02:00
jsteube
935e4a6fa0
Fix loading of NetNTLMv1 + SSP hash
2016-10-05 14:33:36 +02:00
coolbry95
a78fd4e915
changed uint to u32
2016-10-04 00:35:49 -04:00
jsteube
fb5d840cf8
Move wordlist folder scan to straight.c and combinator.c init functions
2016-10-03 16:27:34 +02:00
jsteube
9413ed8f56
Centralize hashcat_ctx memory allocation and deallocation
2016-10-02 00:00:21 +02:00
jsteube
3203ad4e89
Fixed win8phone_t type in interface.c
2016-10-01 14:06:47 +02:00
jsteube
92625b7692
Fix WPA benchmark default mask
2016-09-28 23:14:08 +02:00
jsteube
c3338f0a9a
Fix -m 8900 bug
2016-09-28 12:58:56 +02:00
jsteube
791cd5ec42
Fix some default masks
2016-09-28 12:01:54 +02:00
jsteube
48917b5843
Move tmp size and hook size to hashconfig_init()
2016-09-28 11:11:14 +02:00
jsteube
ce02b3c54f
Add hashconfig_enforce_kernel_loops ()
2016-09-28 10:47:39 +02:00
jsteube
47f027d249
Created hashconfig_kernel_thread_force()
2016-09-28 10:41:06 +02:00
jsteube
54a4ea3db2
Large but needed refactoring of mask handling, maskfiles, default mask, etc., expect smaller bugs
2016-09-26 01:18:00 +02:00
jsteube
80685d94c4
Get rid of truecrypt_keyfiles and veracrypt_keyfiles variable in main
2016-09-21 22:21:35 +02:00
jsteube
b7f0a6959d
Get rid of hash_mode, hex_salt, increment_max, increment_min, increment and separator variable in main
2016-09-21 21:02:49 +02:00
jsteube
a0f6ed6832
Introduce hashes_t; not finishe yet
2016-09-16 17:01:18 +02:00
jsteube
bc75ba70a1
Move tons of functions from hashcat.c into hash_management, interface, opencl, restore, status and weak_hash sources
2016-09-14 16:07:24 +02:00
jsteube
2678592484
Move more hash-mode dependant configuration into hashconfig
2016-09-12 10:50:08 +02:00
jsteube
e25224a940
Move benchmark related stuff to benchmark.c
2016-09-12 10:16:42 +02:00
jsteube
3daf0af480
Added docs/credits.txt
...
Added docs/team.txt
2016-09-11 22:20:15 +02:00
jsteube
26172af89d
Introduce hashconfig_t
2016-09-09 16:54:48 +02:00
jsteube
9eb47153d4
Replace all #ifdef with #if defined (...) for convention
2016-09-07 22:29:57 +02:00
jsteube
a56855e355
Move restore specific functions into their own source file
2016-09-07 22:01:34 +02:00
jsteube
8dd57b715b
Create real opencl.c to better distinguish between opencl helper functions and library handling functions
2016-09-07 15:13:50 +02:00
Gabriele 'matrix' Gristina
b0c6eee06c
Fix multiple build issues with OSX
2016-09-06 22:25:54 +02:00
jsteube
3ed4bfd237
Move tuningdb specific functions into their own source file
2016-09-06 19:44:27 +02:00
jsteube
1902e6c2eb
Create real cpu_crc32.c and rp_cpu.c
2016-09-06 15:28:56 +02:00
jsteube
21666f77b7
Move maskprocessor and statusprocessor specific functions into their own source file
2016-09-06 13:52:26 +02:00
jsteube
d15ae38723
Move hwmon specific functions into their own source file
2016-09-06 13:29:50 +02:00
jsteube
3dc77ced14
More preparation for easier integration of:
...
* https://github.com/hashcat/hashcat/pull/485
* https://github.com/hashcat/hashcat/pull/486
2016-09-06 11:49:26 +02:00