jsteube
3c9d26b161
Add some conditions to make scan-build happy
6 years ago
jsteube
e5322c8bee
Fix --remove handling in -m 16800 and -m 16801 with new outfile format
6 years ago
jsteube
0096f1a56b
Add generic_salt_encode so we have both function types
6 years ago
jsteube
6f4b72bcd3
Rename parse_and_store_generic_salt to generic_salt_decode
6 years ago
jsteube
75f7172cca
Prepare remove of hash_type variable
6 years ago
jsteube
bc22bfee2e
Some cleanup
6 years ago
jsteube
fcfd07ceb2
Move parse_and_store_generic_salt to shared.c
6 years ago
jsteube
4028bae578
Use dynloader.c instead of dlopen() directly
6 years ago
jsteube
7e1e1d34f8
Use real dlopen() to load the module
6 years ago
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.
6 years ago
Jens Steube
4a9171ca5d
Fix use of select() on stdin on windows
...
Fixes #1705
6 years ago
jsteube
5f797147fb
Link ws2_32 in order to make use of select()
6 years ago
jsteube
fd71da8ade
Add timeout to fgets() for later use
6 years ago
jsteube
bdec457951
TrueCrypt/VeraCrypt cracking: Do an entropy check on the TC/VC header on start
6 years ago
jsteube
cd0923f1b8
General file handling: Abort if a byte order mark (BOM) was detected in a wordlist, hashlist, maskfile or rulefile
6 years ago
jsteube
cc8fa3ee80
Remove TOKEN_ATTR_TERMINATE_STRING from input_tokenizer() and replace with equalivalent code where it's needed
6 years ago
Jens Steube
1af8e29a4b
Add round_up_multiple_32() and round_up_multiple_64()
7 years ago
Jens Steube
d656e9c3a4
OpenCL Kernels: Use the kernel local buffer size as additional reference in order to limit the thread-count
7 years ago
jsteube
05a01d3843
fix some datatypes
7 years ago
Rosen Penev
aece2cc4be
Get rid of hc_ctime too. Also fix some cppcheck confusion with nvapi.
...
Missed from last pull request.
7 years ago
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.
7 years ago
jsteube
5e6d43107e
Startup: Check and abort session if outfile and wordlist point to the same file
7 years ago
Jens Steube
a037ba0c73
Merge pull request #1375 from neheb/warning
...
Fix for clang and some cppcheck warnings
7 years ago
Rosen Penev
da621fa3be
fix some clang -Weverything warnings
7 years ago
Rosen Penev
ec55209254
remove hc_sleep and _msec.
...
MinGW defines sleep and usleep so just use those directly.
7 years ago
philsmd
e33e828bc6
replace all time_t/__time64_t with hc_time_t and all related functions
7 years ago
philsmd
1644ac30b5
use an overflow check instead of a hard coded value for ETA
7 years ago
jsteube
8abd7ae9d1
Fix some old GCC compiler warnings
7 years ago
jsteube
b5f149476d
Trim OpenCL device name whitespaces
7 years ago
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
8 years ago
jsteube
4e2adc031a
Add some compiler independant integer overflow functions
8 years ago
jsteube
922fea7616
Add more integer overflow checks
8 years ago
jsteube
2d2eadd2f6
Use hc_path_create() for additional write checks on startup
8 years ago
jsteube
17548d3ee8
Helper: Added functions to check existence, type, read- and write-permissions and rewrite sources to use them instead of stat()
8 years ago
jsteube
6ece83760d
Add wrapping function for asprintf()
8 years ago
jsteube
316694fd08
Move hc_qsort_r() and hc_bsearch_r() from potfile.c to shared.c - Lets us use them from within all objects
8 years ago
jsteube
93adde9d2f
* Wrap everything related to *stat() into own functions
...
* Testwise remove early includes to stdin for OSX, see if they are still required
8 years ago
Rosen Penev
a219b95c17
Fix a bunch of warnings
8 years ago
jsteube
b044271b01
Move more status display calculate logic into separate functions
8 years ago
jsteube
42677df2a6
Start context-related logging with goal to get rid of logging.c
8 years ago
jsteube
81650dcc46
Initial proposal
8 years ago
jsteube
a5f842c4b5
Fix some missing sign conversions
8 years ago
jsteube
936655e0ee
Add missing include for windows
8 years ago
jsteube
df23d5b4e9
Move more functions out of hashcat.c
8 years ago
jsteube
59ebe10b07
Move functions from filenames.c to opencl.c and shared.c
8 years ago
jsteube
a70590b0dc
Move sanity check into user_options.c
8 years ago
jsteube
4cde17aea7
Fix race-condition in thread_keypress()
8 years ago
jsteube
3daf0af480
Added docs/credits.txt
...
Added docs/team.txt
8 years ago
jsteube
ae457c992e
get rid of hc_global_data_t data in shared.c
8 years ago
jsteube
245e2a3e73
shared.c is now clean, ready to cleanup on other sources
8 years ago