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

697 Commits

Author SHA1 Message Date
jsteube
da8e9d50d9 Move hlfmt specific functions into their own source file 2016-09-08 14:36:15 +02:00
jsteube
515f22626a Cleanup rp_cpu.c 2016-09-08 14:22:10 +02:00
jsteube
e7a95879ac No more need to include shared.h on some sources now 2016-09-08 14:14:08 +02:00
jsteube
ae457c992e get rid of hc_global_data_t data in shared.c 2016-09-08 14:11:35 +02:00
jsteube
245e2a3e73 shared.c is now clean, ready to cleanup on other sources 2016-09-08 14:05:53 +02:00
jsteube
6aee697112 Cleanup some macro values 2016-09-08 12:17:56 +02:00
jsteube
d9073296e4 Make hc_sleep() a function 2016-09-08 10:48:38 +02:00
jsteube
e3d0cd0bdd Move more functions out of shared.c 2016-09-08 10:01:49 +02:00
jsteube
51a059a606 Move status specific functions into their own source file 2016-09-08 09:21:25 +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
1fc22dba03 Move bitmap specific functions into their own source file 2016-09-07 21:13:53 +02:00
jsteube
5c5f3264dd Older gcc do not accept _GNU_SOURCE as a replacement for -std=c99 2016-09-07 20:41:57 +02:00
jsteube
25726e4f4e Remove some (hopefully) redundant macros and compiler options 2016-09-07 20:30:14 +02:00
jsteube
80d7dce9b5 Move more functions out of shared.c 2016-09-07 16:04:42 +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
jsteube
f9e1329ca9 Fix CRLF 2016-09-07 12:45:08 +02:00
jsteube
e13419a1b2 Include stdio in hashcat.c to fix apple compiler error 2016-09-07 12:34:59 +02:00
jsteube
ac3de4a57e Fix CPU_ISSET() access for apple 2016-09-07 11:53:23 +02:00
jsteube
9336ca8838 Remove data. access from pthread_setaffinity_np (apple version) 2016-09-07 11:42:05 +02:00
jsteube
3ba5c743f8 Move affinity specific functions into their own source file 2016-09-07 11:16:31 +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
b8e47c2ba2 Move locking specific functions into their own source file 2016-09-06 19:08:46 +02:00
jsteube
c3fe5b40b1 Move folder specific functions into their own source file 2016-09-06 18:23:26 +02:00
jsteube
176fcb56b1 Reorder objects in Makefile 2016-09-06 15:33:57 +02:00
jsteube
1902e6c2eb Create real cpu_crc32.c and rp_cpu.c 2016-09-06 15:28:56 +02:00
jsteube
0a5759ef1c Move usage specific functions into their own source file 2016-09-06 14:11:03 +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
5dd5c15966 Move tty_*() specific functions into their own source file 2016-09-06 13:16:38 +02:00
jsteube
eb5e192df5 Move logfile() specific functions into their own source file 2016-09-06 13:05:49 +02:00
jsteube
305aa38b0e Fix import variables 2016-09-06 11:52:02 +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
jsteube
b95f491c64 Remove some explicit includes for __APPLE__ 2016-09-06 09:48:53 +02:00
jsteube
d44571ff70 Add some explicit includes for __APPLE__ 2016-09-06 09:44:33 +02:00
jsteube
0fe3bc5cb9 system #include should go to header 2016-09-06 09:39:44 +02:00
jsteube
e790ae0f95 Fix some calls to strdup() which should by mystrdup()
Fix some calls to free() which should by myfree()
2016-09-06 09:22:28 +02:00
jsteube
4b79ccd416 Preparation for easier integration of:
* https://github.com/hashcat/hashcat/pull/485
* https://github.com/hashcat/hashcat/pull/486
2016-09-05 21:47:26 +02:00
jsteube
ff376ce112 Moved bit operations out of shared.[hc] and created bitops.[hc]
based on 1aafa13e09
2016-09-05 14:12:31 +02:00
jsteube
2216920866 replaced macros with enums and static const char types
also had to move COMBINATOR_MODE defenition from inc_hash_constants.h to inc_types.cl to avoid conflicts
based on d57d9245db
2016-09-05 13:52:47 +02:00
jsteube
4366afecee Initializing u64 value with something 'u' seem to limit it's maximum value to 0xffffffff and then stop. So this broke restore support, as you can see when the restore pointer went > 0xffffffff, also in status view. cc @neheb 2016-09-04 21:57:00 +02:00
jsteube
c8858cd969 Abort session after NUM seconds of --runtime but do not count time in pause mode
From https://github.com/hashcat/hashcat/issues/472
2016-09-03 15:27:25 +02:00
Jens Steube
a289c37ecf Allow loading of bcrypt hashes with signature $2b$ (February 2014) 2016-09-02 10:03:22 +02:00
Jens Steube
54249835f4 Merge pull request #482 from neheb/master
Fix some more warnings.
2016-09-01 16:53:58 +02:00
Rosen Penev
edb07bc6c7
Missed a few 2016-08-30 18:19:09 -07:00
Rosen Penev
ed1ad9714d
Fix -Wmissing-declarations 2016-08-30 18:13:41 -07:00
jsteube
71a8459d85 Two new modes added:
* Added new hash-mode 14000 = DES (PT = $salt, key = $pass)
* Added new hash-mode 14100 = 3DES (PT = $salt, key = $pass)
This patch initial was created out of this PR: https://github.com/hashcat/hashcat/pull/452 which is now no longer required
I've replace the -a 3 kernel with a bitsliced version which is around 10 times faster
I've also added test.sh and test.pl patches, but some of the test scripts need to be fixed
2016-08-30 17:44:14 +02:00
Rosen Penev
88519f9437
Fix -Wfloat-conversion warnings 2016-08-28 12:44:19 -07:00
neheb
242e1c49d8 Fix for #473
__x86__ is not defined under 32-bit MinGW. But WIN32 is. WIN64 for consistency.
2016-08-27 17:45:56 -07:00
Rosen Penev
d666191d67
Sign fixes 2016-08-26 22:27:44 -07:00
Rosen Penev
c495f6a090
Remove unreachable code: break 2016-08-26 22:27:37 -07:00
Rosen Penev
aeee10fbeb
Fix -Wundef warnings 2016-08-26 22:27:33 -07:00
Rosen Penev
be47aebc24
Avoid float to double promotions 2016-08-26 22:27:30 -07:00
Rosen Penev
a0b89951c1
More sign conversion fixes 2016-08-19 15:56:43 -07:00
Jens Steube
57ce1fd81e Add program build info for MP and AMP kernels 2016-08-18 21:59:30 +02:00
jsteube
b22bcd0602 Give better logging, even in production release, in case of a kernel build error 2016-08-18 21:45:07 +02:00
Jens Steube
687b4a816d Prepare v3.10 release 2016-08-18 21:03:46 +02:00
philsmd
04baf0ee54
added additional forward slash between folder and file (to make sure) 2016-08-18 15:48:44 +02:00
philsmd
ab1005ab1a
fixes #425: flexible way of searching for CRT_glob.o on linux and cygwin 2016-08-18 15:16:10 +02:00
philsmd
665e960093
sanity check: do not allow mask files or increment w/ --skip/--limit 2016-08-18 14:39:07 +02:00
philsmd
ed8315ba21
add sanity check to disallow --show and --outfile-autohex-disable 2016-08-18 13:48:59 +02:00
philsmd
58ae741cbd
the actual changes for #461 :) 2016-08-18 12:17:51 +02:00
philsmd
d78deef080 added locking too, just to be save 2016-08-18 11:46:33 +02:00
philsmd
14677e915f new feature: allow -o to be used in stdout mode 2016-08-18 11:04:23 +02:00
Jens Steube
bdecbbee1a Merge pull request #446 from usernamestaken/master
CRAM_MD5 throws salt length exception when the issue is in the hash
2016-08-17 16:41:15 +02:00
radix
e30dac2c6e
If a custom char set is undefined, declare it as undefined rather than NULL 2016-08-17 09:30:42 -05:00
Michael Sprecher
7593db9483
Added new hash-mode 13900 = OpenCart 2016-08-02 15:00:58 +02:00
radix
494afc0f66
Added Custom.Chars for modes 6, and 7. 2016-07-30 20:39:23 -05:00
radix
817917591e
Had a typo in the output, fixed. 2016-07-30 20:20:46 -05:00
radix
004812819f
Add Custom.Chars to output window in the case of a user specifying -1, -2, -3, -4. 2016-07-30 20:14:46 -05:00
radix
d4dfe58a72
CRAM_MD5 throws salt length exception when the issue is in the hash 2016-07-28 10:38:31 -05:00
Rosen Penev
37eaafdabf Fix GCC sign warnings 2016-07-25 23:08:02 -07:00
jsteube
8acf5b3879 Add support for @ rule (RULE_OP_MANGLE_PURGECHAR) to use on GPU 2016-07-25 22:54:07 +02:00
jsteube
d3a95a67ae Fixed a bug where hashcat did not take into account how long it takes to prepare a session when auto-aborting with --runtime is in use 2016-07-24 22:26:40 +02:00
jsteube
215457d74d Workaround for OpenCL runtimes which do accept -I parameter in the OpenCL kernel build options, but do not allow quotes 2016-07-23 23:30:42 +02:00
jsteube
c837df09ae Workaround for OpenCL runtimes which do accept -I parameter in the OpenCL kernel build options, but do not allow quotes 2016-07-21 10:06:31 +02:00
jsteube
2b7e36b042 Output cracked hashes on Windows using \r\n and not \n
Replace RegGetValue() with RegQueryValueEx() to enable Windows XP 32 bit compatibility
This fixes https://github.com/hashcat/hashcat/issues/418
2016-07-17 20:32:47 +02:00
jsteube
2167df6915 Fix for -I parameter workaround, use chdir () before modifying cpath_real
Fixes https://github.com/hashcat/hashcat/issues/432
2016-07-13 11:36:57 +02:00
Jens Steube
752e548f4e Merge branch 'master' of https://github.com/hashcat/hashcat 2016-07-12 12:02:14 +02:00
Jens Steube
346400f518 Add missing continue 2016-07-12 12:01:55 +02:00
jsteube
e56a4e9c60 Workaround OpenCL runtimes that do not accept -I parameter in the OpenCL kernel build options even if this is an OpenCL standard option 2016-07-11 23:45:25 +02:00
jsteube
e2dbaa6efa Do not error and exit if an OpenCL platform has no devices, just print a warning and continue with the next platform 2016-07-11 17:15:57 +02:00
Jens Steube
f1cd53e335 Globally fix return parameter handling to not use brackets 2016-07-11 14:45:17 +02:00
Jens Steube
6ba0eb8b39 Get rid of exit() calls in OpenCL wrapper library with the goal to have a better control which error can be ignored under special circumstances
Note, not all return codes from some of the subfunctions are uset yet, it would be too much changes at once
This is a preparation for https://github.com/hashcat/hashcat/issues/416
2016-07-10 13:23:06 +02:00
jsteube
3fa2d10914 Allow the use of enc_id == 0 in hash-mode 10600 and 10700 as it takes no part in the actual computation
Fixes https://github.com/hashcat/hashcat/issues/423
2016-07-09 14:35:38 +02:00
Jens Steube
e7214abee3 Do not remove *.dictstat with make clean 2016-07-09 09:54:11 +02:00
jsteube
49f693a1c9 Replace LINUX macro with compiler predefined macro __linux__ 2016-07-08 23:23:16 +02:00
jsteube
96f2ade4bb Replace DARWIN macro with __APPLE__
As discussed on https://github.com/hashcat/hashcat/pull/409
2016-07-08 23:14:57 +02:00
jsteube
2043338859 Rewrite some code to workaround strict aliasing rule violation for older compilers
Rewrite some variable initializers on older compilers
2016-07-08 22:57:27 +02:00
Jens Steube
baea682491 Missing save of original platform id 2016-07-08 14:46:44 +02:00
Jens Steube
d77c63a12c Merge branch 'master' of https://github.com/hashcat/hashcat 2016-07-08 14:39:15 +02:00
Jens Steube
5909bbb7b7 Make use of cl_context_properties[] to clCreateContext(), even if OpenCL specification allow the use of NULL, some runtimes fail without 2016-07-08 14:38:57 +02:00
Jens Steube
7350f38bc4 Merge pull request #426 from philsmd/master
fixes -m #424: problem removing multiple already found WPA hashes
2016-07-08 14:33:10 +02:00
Jens Steube
72abe90e10 Merge pull request #421 from lifanov/freebsd-port
FreeBSD support
2016-07-08 14:32:59 +02:00
philsmd
6eec6d42f5
fixes -m 424: problem removing multiple already found WPA hashes 2016-07-08 12:38:49 +02:00
Nikolai Lifanov
6e04a52e53 enable path resolution on FreeBSD 2016-07-06 10:33:46 -04:00
Nikolai Lifanov
54ebe1fe23 fix get_path_exe: not sure what I was thinking 2016-07-06 10:20:46 -04:00
Nikolai Lifanov
1a3b610601 add tty handling for FreeBSD 2016-07-06 08:42:53 -04:00
Nikolai Lifanov
c2bcdbebcb implement thread affinity for FreeBSD 2016-07-06 08:24:09 -04:00