1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 20:39:17 +00:00
Commit Graph

2066 Commits

Author SHA1 Message Date
jsteube
583849cd23 Fix missing free() for memory allocated with asprintf() 2017-10-04 13:04:58 +02:00
jsteube
6c251d48a4 Fixed format type in debugging log 2017-10-04 12:59:57 +02:00
Jens Steube
48684d9fcf Merge pull request #1383 from philsmd/master
fixed the nanosecond access time problem, also working on macos now
2017-10-04 12:55:52 +02:00
Jens Steube
3040e6b669 Merge pull request #1382 from neheb/master
replace more snprintf calls with hc_asprintf.
2017-10-04 12:33:35 +02:00
Jens Steube
a445f48a39 Merge pull request #1379 from neheb/patch-1
Adjust hcmalloc to be the same as calloc
2017-10-04 12:28:00 +02:00
philsmd
a10a8427cb
fixed the nanosecond access time problem, also working on macos now 2017-10-04 12:23:37 +02:00
Rosen Penev
4ba19fa7c1 replace more snprintf calls with hc_asprintf. 2017-10-02 22:10:10 -07:00
neheb
baeb51ad38 Adjust hcmalloc to be the same as calloc
calloc is almost equivalent to malloc + memset(0) except that it's faster with big allocations because of OS trickery. It also protects against integer overflow and throws a null pointer on overflow whereas malloc does not.
2017-10-02 12:20:16 -07:00
jsteube
2670791916 Improved dictstat header check 2017-10-02 15:44:03 +02:00
jsteube
822ae7b9a9 RC2 2017-10-01 17:17:48 +02:00
jsteube
719f2656b1 Fix empty line check in _old_apply_rule() 2017-10-01 17:03:16 +02:00
philsmd
d8e7f5f05c
fixed problem with cached word lists (dictstat2): nanoseconds must be considered/ignored too 2017-09-29 12:13:29 +02:00
Jens Steube
4a4eb0ef7f Merge pull request #1376 from neheb/make
Deny warnings with -Wno instead of commenting them out.
2017-09-29 11:33:04 +02:00
Jens Steube
a037ba0c73 Merge pull request #1375 from neheb/warning
Fix for clang and some cppcheck warnings
2017-09-29 11:20:35 +02:00
Rosen Penev
da621fa3be fix some clang -Weverything warnings 2017-09-27 20:05:04 -07:00
Rosen Penev
148c4335aa fix printf formats. 2017-09-27 20:05:04 -07:00
Rosen Penev
190fc9bf17 Deny warnings with -Wno instead of commenting them out.
Ease of use change. I usually replace -W with -Weverything and silencing these warnings involves adding a bunch of -Wno.

Also sorted alphabetically.
2017-09-27 20:04:21 -07:00
Chick3nman
68db9c438d Style change for benchmark mode output 2017-09-27 13:38:17 -05:00
Chick3nman
ee430ead14 Styling change for benchmark mode output 2017-09-27 13:31:42 -05:00
Chick3nman
5e05c6c14e Styling change for benchmark mode output 2017-09-27 13:28:35 -05:00
Chick3nman
0a20640cc9 Changing mode display styling 2017-09-26 15:55:31 -05:00
Chick3nman
59927ac923 Switch hash-mode in benchmark from DEBUG to Production
moved event_log_info (hashcat_ctx, "Hashmode: %d", hashconfig->hash_mode); to Production segment, skipping DEBUG check
2017-09-26 12:31:29 -05:00
Rosen Penev
ec55209254 remove hc_sleep and _msec.
MinGW defines sleep and usleep so just use those directly.
2017-09-23 13:02:34 -07:00
Jens Steube
55eaff3a45 Merge pull request #1365 from Fist0urs/DPAPI_reworked
-m 15300 reworked + splitted in 15300/15900
2017-09-21 17:02:18 +02:00
Fist0urs
e3cb3e9b4c test.pl ready and 0 error. Ready for PR 2017-09-21 16:55:30 +02:00
jsteube
92df9592e6 Merge branch 'master' of https://github.com/hashcat/hashcat 2017-09-21 16:27:41 +02:00
jsteube
81c2ab2ded OpenCL Runtime: On AMD GPU, recommend AMD ROCm driver for Linux 2017-09-21 16:27:27 +02:00
philsmd
48f153b5e2
typo in Makefile 2017-09-21 14:17:16 +02:00
Fist0urs
a6294537fd Splitted DPAPI kernel in 2 to increase performances 2017-09-21 12:23:33 +02:00
jsteube
036d4874c7 Update version numbers to v4.0.0-RC1 2017-09-20 16:06:27 +02:00
jsteube
57a70710ae Small wordlist loading performance optimization 2017-09-20 11:03:38 +02:00
jsteube
f55446b6f3 HCdict File: Renamed file from hashcat.hcdict to hashcat.hcdict2 and add header because versions are incompatible 2017-09-20 10:22:18 +02:00
Jens Steube
24a78574e2 Fix use of veracrypt-pim 2017-09-19 16:41:31 +02:00
jsteube
2517292ac1 Removed option --weak-hash-check (zero-length password check) to increase startup time, it also causes many Trap 6 error on OSX 2017-09-19 12:04:05 +02:00
jsteube
bac000667c Fix wpa_parse_hash(), the wpa esalt was partially initialized beforehand, we can not simply memset it to zero 2017-09-19 12:01:11 +02:00
jsteube
617dbb97ba Prepare migration -m 15800 into -m 2500 2017-09-18 13:21:00 +02:00
jsteube
7a278ef035 Fix overflow in out_push() 2017-09-17 12:14:52 +02:00
Jens Steube
8802b12644 Merge pull request #1358 from 0xbsec/master
Fix overflow in mangle_dupechar_last function
2017-09-17 11:57:34 +02:00
jsteube
5551337cf6 Show advice to use optimized kernels only if there's actually one for this hash-mode 2017-09-16 22:33:04 +02:00
mhasbini
de7ccd88ef Fix overflow in mangle_dupechar_last function 2017-09-16 20:43:38 +03:00
jsteube
34c5eac550 Fixed the use of --veracrypt-pim option. It was completely ignored without showing an error 2017-09-16 12:53:45 +02:00
jsteube
3aec5ecf1c Add some advice and notes about pure and optimized OpenCL kernels 2017-09-16 12:17:31 +02:00
jsteube
0675f72c4d Fix --stdout in -a 7 mode
Fixes https://github.com/hashcat/hashcat/issues/1354
2017-09-16 11:37:59 +02:00
jsteube
2b4be5d093 Move AMD ROCm driver check out of a --force condition 2017-09-08 12:44:06 +02:00
jsteube
3b89153c2d Fix use of --hex-salt with SALT_TYPE_GENERIC 2017-09-06 22:14:06 +02:00
jsteube
d05f40ab98 Remove OpenCL build option -O2 fixed for ROCm and AMDGPU-PRO using AMD_OCL_BUILD_OPTIONS_APPEND, no longer needed with latest ROCm 2017-09-06 16:38:55 +02:00
Jens Steube
3e597f4c7b Revert use of zero-copy for main password buffer using CL_MEM_ALLOC_HOST_PTR and hc_clEnqueueMapBuffer()
Caused problems with WPA cracking performance on NVidia when not using rules
2017-09-05 17:19:49 +02:00
jsteube
0dfe015301 Fixed a parser error in multiple modes not checking for return code, resulting in negative memory index writes 2017-09-04 15:53:13 +02:00
jsteube
8ee75141ea OpenCL Runtime: Set OpenCL build option -O2 fixed for ROCm and AMDGPU-PRO using AMD_OCL_BUILD_OPTIONS_APPEND 2017-08-31 15:25:19 +02:00
jsteube
6d112aeb39 OpenCL Kernels: Rewritten Keccak kernel to run fully on registers and partially reversed last round 2017-08-30 13:27:04 +02:00
Jens Steube
8fb583f0a7 Simplify kernel thread calculation for SCRYPT based algorithms 2017-08-29 22:43:26 +02:00
Jens Steube
12295dcd90 Restore v3.6.0 kernel thread handling of scrypt 2017-08-29 18:30:50 +02:00
Jens Steube
fcd20fbacb OpenCL Runtime: Fall back to 64 threads default (from 256) on AMD GPU to prevent creating too many workitems 2017-08-29 17:36:50 +02:00
jsteube
86f67517a0 Allow higher number of kernel_loops for -a 0 mode in case they are slow hashes 2017-08-29 10:28:42 +02:00
jsteube
a0be36d7b8 Fix compile error caused by __add3() 2017-08-27 19:46:17 +02:00
jsteube
35a24df55e Fixed an integer overflow in hash buffer size calculation 2017-08-26 16:29:59 +02:00
jsteube
f6fe5657a3 Fixed an integer overflow in masks not skipped when loaded from file 2017-08-26 14:40:53 +02:00
jsteube
2bc2137203 Remove some debugging statement 2017-08-25 20:54:21 +02:00
jsteube
688a580d6c Fixed an integer overflow in innerloop_step and innerloop_cnt variables 2017-08-25 20:52:13 +02:00
Jens Steube
b58da88174 Merge pull request #1343 from philsmd/master
fixes show output of -m 9710, -m 9810 and -m 10410
2017-08-25 10:02:17 +02:00
philsmd
f1c3f952ba
fixes show output of -m 9710, -m 9810 and -m 10410 2017-08-25 09:55:10 +02:00
Royce Williams
21bf521f30 Merge remote-tracking branch 'upstream/master' 2017-08-24 07:21:17 -08:00
Royce Williams
1a162e2ab4 Clarify Blake2b label 2017-08-24 07:19:50 -08:00
jsteube
1d04de3a8e Limit kernel-loops in straight-mode to 256, therefore allow rules to be stored in constant memory 2017-08-23 12:43:59 +02:00
jsteube
51372438fe Allow OpenCL kernel inline assembly if ROCm drivers was detected 2017-08-22 18:47:53 +02:00
Royce Williams
cd69cd3c0b Merge remote-tracking branch 'upstream/master' 2017-08-22 06:55:06 -08:00
Royce Williams
a08f65b50e flip the logic in terminal.c for readability 2017-08-22 06:53:18 -08:00
jsteube
7b71fb803b Add hash-mode to --example-hashes and use $HEX[] in case the password is in binary 2017-08-22 15:52:41 +02:00
jsteube
18c8de3428 Use zero-copy for main password buffer using CL_MEM_ALLOC_HOST_PTR and hc_clEnqueueMapBuffer() 2017-08-22 15:19:25 +02:00
jsteube
12d95fd22c Added option --example-hashes to show an example hash for each hash-mode 2017-08-22 11:09:46 +02:00
jsteube
a8f3392344 Startup: Show some attack-specific optimizer constraints on start, eg: minimum and maximum support password- and salt-length 2017-08-22 10:08:28 +02:00
philsmd
a4616e6c6d
fixes #1338: hexify also all password of format $HEX[] 2017-08-21 09:14:49 +02:00
jsteube
f32e113942 Add missing case in append_block() in pure kernel rule engine 2017-08-20 15:08:51 +02:00
jsteube
6907981f08 Backport current state of optimized kernel rule engine to CPU 2017-08-20 12:50:24 +02:00
jsteube
f63df45fca Backport current state of pure kernel rule engine to CPU 2017-08-20 12:27:19 +02:00
jsteube
1432446734 Fix initialization of size_pws_amp 2017-08-20 12:04:56 +02:00
jsteube
58d1dedd1e OpenCL Buffers: Do not allocate memory for amplifiers for fast hashes, it's simply not needed 2017-08-19 19:25:37 +02:00
Royce Williams
149a611cbd Merge remote-tracking branch 'upstream/master' 2017-08-19 08:05:51 -08:00
jsteube
0846b33f52 Fixed an invalid progress value in status view if words from the base wordlist get rejected because of length 2017-08-19 17:02:05 +02:00
jsteube
319799bbbf Switch the datatypes of the variables responsible for work-item count and work-item size from u32 to u64 2017-08-19 16:39:22 +02:00
jsteube
c8da13c3aa Update default scrypt tmto to be ideal for latest NV and AMD top models 2017-08-17 17:46:54 +02:00
jsteube
cd5470f00e Add missing benchmark salt length default for SIP mode 2017-08-17 12:13:47 +02:00
jsteube
92a288fbd3 Resolved merge conflict by incorporating both suggestions. 2017-08-17 12:12:03 +02:00
Jens Steube
c92b4e1eb2 Merge pull request #1333 from philsmd/master
fixes #1278: allow the '#' character within the username of DCC2 hashes
2017-08-17 11:52:12 +02:00
philsmd
0d6b9d0419
fixes #1313: keep/print the original salt for descrypt hashes 2017-08-17 11:29:04 +02:00
jsteube
9a46442a80 Fix CPU performance for slow hashes with SIMD 2017-08-17 09:42:42 +02:00
philsmd
1d5dbab258
fixes #1278: allow the '#' character within the username field of DCC2 hashes 2017-08-17 07:51:19 +02:00
philsmd
e33e828bc6
replace all time_t/__time64_t with hc_time_t and all related functions 2017-08-16 19:43:41 +02:00
philsmd
1644ac30b5
use an overflow check instead of a hard coded value for ETA 2017-08-16 17:51:35 +02:00
jsteube
0dcec01623 Make size_t what size_t is 2017-08-16 16:14:08 +02:00
philsmd
bc1a101d2b fixes #1321: new option --wordlist-autohex-disable 2017-08-16 12:42:28 +02:00
philsmd
42ee091772
fixed the usage of getopt_* () 2017-08-16 11:46:17 +02:00
jsteube
6217f11028 Backport missing boundary check to CPU 2017-08-12 13:34:21 +02:00
jsteube
0b0abb5c12 Prepare pure kernel rule engine for performance optimization 2017-08-12 13:04:52 +02:00
jsteube
e47506c610 Use pure kernel rule engine for --stdout 2017-08-12 12:11:48 +02:00
jsteube
8a0d21360b Prepare for pure kernel rule engine support 2017-08-11 16:09:12 +02:00
jsteube
34d882a116 Rename inc_rp.X to inc_rp_optimized.X 2017-08-11 11:25:47 +02:00
jsteube
f5ee3db5a6 Update cpu rule engine to support passwords up to length 256 2017-08-11 11:15:43 +02:00
Jens Steube
1ed6576c25 Merge pull request #1316 from philsmd/pr/NULLvsDoubleFree
fixed double-free problem if OpenCL/ folder is missing (and e.g. shar…
2017-08-10 15:50:15 +02:00
philsmd
611b62a25d
fixed double-free problem if OpenCL/ folder is missing (and e.g. shared folder == session folder) 2017-08-10 15:05:47 +02:00