jsteube
75f7172cca
Prepare remove of hash_type variable
2019-02-12 15:30:42 +01:00
jsteube
9b842e30ab
Get rid of OPTI_TYPE_PRECOMPUTE_PERMUT
2019-02-07 17:05:02 +01:00
jsteube
fc648c02f5
Add -m 2000 module
2019-01-31 15:19:21 +01:00
jsteube
4b9b59a3cb
Add module 5500
2019-01-21 13:28:52 +01:00
jsteube
1e31b3b271
Add -m 14000 module
2019-01-16 19:55:54 +01:00
jsteube
bc1dd699e3
Add -m 1500 module
2019-01-15 11:53:59 +01:00
jsteube
bc22bfee2e
Some cleanup
2019-01-12 15:05:33 +01:00
jsteube
fcfd07ceb2
Move parse_and_store_generic_salt to shared.c
2019-01-10 20:51:38 +01:00
jsteube
5e0dec0d6d
Bring back needed variables
2019-01-09 10:03:41 +01:00
jsteube
77739ec946
Remove unused variable
2019-01-09 10:02:03 +01:00
jsteube
6aa7c9befb
Prepare to make byte swapping more intuitional in encoding/decoding functions
2019-01-08 20:09:55 +01:00
jsteube
ce0e19f185
Compile module as .dll example
2018-12-19 16:18:40 +01:00
jsteube
4028bae578
Use dynloader.c instead of dlopen() directly
2018-12-19 16:09:28 +01:00
jsteube
7e1e1d34f8
Use real dlopen() to load the module
2018-12-19 13:43:45 +01:00
Jens Steube
55add7c60e
The goal of this branch to develop a plugin like interface for hashcat kernels.
...
The modification of existing core source files to add new hashcat kernels conflicts with the idea of having private hashcat kernel repositories especially when backporting latest hashcat core changes and new features.
The final outcome of this should be a plugin format that does not require modifications on the core soruce files.
Also convert all existing hash-modes to hashcat modules.
We'll start with dynamic loading the modules at runtime rather than linking them at compile time.
This will require some extra code for different OS types but should beneficial on a long term.
This commit add some first ideas of how such modules could look like, however there's no dynamic loading interface yet.
Next steps will be removing all hash-mode depending special code from source files and move them to the modules.
Finally merge with master.
2018-12-06 14:02:10 +01:00
Jens Steube
ed8384d4bc
OpenCL Runtime: Disable auto-vectorization for Intel OpenCL runtime to workaround hanging JiT since version 18.1.0.013
2018-11-21 12:03:47 +01:00
Jens Steube
4359f61f84
Make sure to initialize INPUT_RECORD variables because of the union data type section
2018-10-21 11:31:51 +02:00
Jens Steube
4a9171ca5d
Fix use of select() on stdin on windows
...
Fixes #1705
2018-10-18 11:20:01 +02:00
jsteube
fd71da8ade
Add timeout to fgets() for later use
2018-09-01 13:19:29 +02:00
jsteube
634dd71384
Remove some suppressed warnings
2018-08-06 21:04:48 +02:00
jsteube
bdec457951
TrueCrypt/VeraCrypt cracking: Do an entropy check on the TC/VC header on start
2018-07-31 16:18:45 +02:00
jsteube
cd0923f1b8
General file handling: Abort if a byte order mark (BOM) was detected in a wordlist, hashlist, maskfile or rulefile
2018-07-30 13:23:48 +02:00
jsteube
cc8fa3ee80
Remove TOKEN_ATTR_TERMINATE_STRING from input_tokenizer() and replace with equalivalent code where it's needed
2018-07-24 13:55:23 +02:00
jsteube
c3fc50294f
Bring back CUDA_CACHE_DISABLE=1 because users report to have problems without it
2018-06-17 09:06:12 +02:00
jsteube
124d10989c
Try original NV kernel bytecode cache for faster startup, see how user response is
2018-06-16 22:26:39 +02:00
Jens Steube
1af8e29a4b
Add round_up_multiple_32() and round_up_multiple_64()
2018-02-13 13:20:29 +01:00
Jens Steube
d656e9c3a4
OpenCL Kernels: Use the kernel local buffer size as additional reference in order to limit the thread-count
2018-02-11 10:56:08 +01:00
jsteube
05a01d3843
fix some datatypes
2018-02-08 19:13:29 +01:00
jsteube
ef3cdddb18
Enforce environment variables to be set in cygwin environment
2018-01-27 13:26:36 +01:00
Rosen Penev
aece2cc4be
Get rid of hc_ctime too. Also fix some cppcheck confusion with nvapi.
...
Missed from last pull request.
2017-12-11 13:44:58 -08:00
Rosen Penev
1c5915cae3
remove special time handling in hashcat.
...
There's a way to get 64-bit time_t and 64-bit stat in MinGW, so use that.
2017-12-09 16:40:45 -08:00
Rosen Penev
353d3c3008
Fix a bunch of cast-qual warnings
2017-11-13 20:46:26 -08:00
jsteube
5e6d43107e
Startup: Check and abort session if outfile and wordlist point to the same file
2017-10-10 11:30:20 +02:00
jsteube
583849cd23
Fix missing free() for memory allocated with asprintf()
2017-10-04 13:04:58 +02:00
Rosen Penev
4ba19fa7c1
replace more snprintf calls with hc_asprintf.
2017-10-02 22:10:10 -07: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
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
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
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
Jens Steube
92eb946345
Merge pull request #1309 from neheb/master
...
get_random_num: Simplify
2017-07-30 12:30:27 +02:00
Rosen Penev
9736782411
Switch back to rand().
...
rand_s is broken in AppVeyor.
2017-07-29 15:54:20 -07:00
Rosen Penev
3c530a48c4
get_random_num: Simplify
...
random() is available everywhere except Windows and DOS.
Also switch Windows to rand_s.
2017-07-27 19:32:47 -07:00
jsteube
332396a003
Fix SCRYPT on ROCm
2017-07-28 02:28:52 +02:00
jsteube
33804110d1
Update default environment variables
2017-07-28 00:38:17 +02:00
jsteube
8abd7ae9d1
Fix some old GCC compiler warnings
2017-07-06 10:35:25 +02:00
jsteube
b5f149476d
Trim OpenCL device name whitespaces
2017-06-02 10:08:19 +02:00
jsteube
378f852cec
Parameter: Detect and error when users try to use a non-digit where a digit is expected
...
Fixes https://github.com/hashcat/hashcat/issues/1189
2017-03-19 15:11:41 +01:00
jsteube
ce337c5863
Replace __builtin_clz() and __builtin_clzll() with some straight forward solution
2017-03-02 23:12:31 +01:00
Rosen Penev
4ceb7a1afa
Prefer _WIN to _POSIX for defines.
...
Also miscellaneous fixes here and there.
2017-02-23 15:55:06 -08:00
jsteube
4e2adc031a
Add some compiler independant integer overflow functions
2017-02-23 10:39:17 +01:00
jsteube
922fea7616
Add more integer overflow checks
2017-02-22 16:33:23 +01:00
philsmd
bd9fdc1849
use putenv () with the COMPUTE environment as it was before
2017-02-15 14:32:24 +01:00
Jens Steube
f31330679f
Revert "tainted string: test number 2, try to limit the length of the compute variable"
2017-02-15 14:18:11 +01:00
Jens Steube
899b120316
Revert "tainted string: maybe strdup () helps us out"
2017-02-15 14:17:48 +01:00
philsmd
0ca0448bd9
tainted string: maybe strdup () helps us out
2017-02-15 13:57:07 +01:00
philsmd
d21fbe0b2f
tainted string: test #2 , try to limit the length of the compute variable
2017-02-15 13:45:02 +01:00
jsteube
e47932262d
Fix uint datatype (should be u32)
2017-02-15 13:26:02 +01:00
philsmd
6eaa7e3741
tainted string fix: check some lower/upper bounds of the strings
2017-02-15 13:19:53 +01:00
jsteube
b381b38fd8
Fix CID 1402374
2017-02-15 12:36:03 +01:00
jsteube
671f9a7eb7
Fix hc_path_create(), first close the file descriptor before unlinking the file itself
2017-02-14 16:12:18 +01:00
jsteube
934cc6fcec
Fix for https://github.com/hashcat/hashcat/issues/1006
2017-01-31 21:29:45 +01:00
jsteube
2d2eadd2f6
Use hc_path_create() for additional write checks on startup
2017-01-28 00:08:12 +01:00
jsteube
17548d3ee8
Helper: Added functions to check existence, type, read- and write-permissions and rewrite sources to use them instead of stat()
2017-01-27 11:46:45 +01:00
jsteube
9113a57fe6
Use vasprintf not asprintf
2016-12-24 00:57:38 +01:00
jsteube
6ece83760d
Add wrapping function for asprintf()
2016-12-24 00:40:40 +01:00
jsteube
316694fd08
Move hc_qsort_r() and hc_bsearch_r() from potfile.c to shared.c - Lets us use them from within all objects
2016-11-16 10:22:57 +01:00
jsteube
6d0eb174f5
Add some useful environment variable for use with amd-gpu-pro driver
2016-11-06 12:26:42 +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
b044271b01
Move more status display calculate logic into separate functions
2016-10-17 13:44:07 +02:00
jsteube
a5f842c4b5
Fix some missing sign conversions
2016-09-30 17:41:40 +02:00
jsteube
df23d5b4e9
Move more functions out of hashcat.c
2016-09-28 23:53:46 +02:00
jsteube
59ebe10b07
Move functions from filenames.c to opencl.c and shared.c
2016-09-24 21:44:43 +02:00
jsteube
a70590b0dc
Move sanity check into user_options.c
2016-09-20 17:04:31 +02:00
jsteube
4cde17aea7
Fix race-condition in thread_keypress()
2016-09-20 12:32:39 +02:00
jsteube
a0f6ed6832
Introduce hashes_t; not finishe yet
2016-09-16 17:01:18 +02:00
jsteube
3daf0af480
Added docs/credits.txt
...
Added docs/team.txt
2016-09-11 22:20:15 +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
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
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
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
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