R. Yushaev
074fad9fef
Correct buffer size parameter in snprintf calls
...
There are approx. 240 snprintf calls that set the target buffer size to
out_len - 1 or similar. This "mind the null character" subtraction is
unnecessary since snprintf already includes the string termination into
the given buffer size.
2018-12-07 10:37:56 +01:00
jsteube
8ec2af97ed
Eventual fix for unicode folder name issue on windows
2017-12-02 15:24:10 +01:00
Rosen Penev
dee6934f32
Fix cast qual with double pointers
2017-11-24 11:08:49 -08:00
Rosen Penev
0555613305
Remove else statement after return
...
Suggested by clang tidy
2017-11-04 23:43:33 -07: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
Royce Williams
067372f5ce
more event_log_* standardization
2017-04-01 23:50:06 -08: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
231592101e
Test commit to workaround coverity false-positive
2017-02-14 17:54:36 +01:00
philsmd
d92f8b1d82
memory: we should free this memory in case of error in folder.c
2017-02-14 14:45:27 +01:00
Rosen Penev
a3d04a40b0
Fix more cppcheck warnings
2017-02-10 16:10:21 -08:00
Rosen Penev
2a2bd0e2b1
Restore strerror as %m is unsupported by the BSDs
...
The BSDs just print m instead of the actual error message. Benefit
is not worth the cost.
2017-02-03 17:53:50 -08:00
jsteube
45daaab6ac
If the user specifies a folder to scan for wordlists instead of directly a wordlist, then ignore the hidden files
2017-01-05 16:21:57 +01:00
jsteube
b3067680a7
If the user specifies a folder to scan for wordlists instead of directly a wordlist, then ignore the hidden files
2017-01-05 16:15:12 +01:00
jsteube
6ece83760d
Add wrapping function for asprintf()
2016-12-24 00:40:40 +01:00
Rosen Penev
36bd1c7dd9
Replace some snprintf calls with asprintf.
...
Simplifies the code.
2016-12-19 16:46:30 -08:00
Jens Steube
035dcd6898
Merge pull request #898 from neheb/master
...
Thread safety fixes.
2016-12-03 13:04:27 +01:00
Rosen Penev
5c0bd0a15f
Remove strerror in favor of thread safe %m
2016-12-02 21:26:10 -08:00
Nikolai Lifanov
4c8addcfb5
FreeBSD: fix refactoring some more - sysctl produces a string
2016-12-02 19:43:51 -05:00
Rosen Penev
96783ed7a3
Fix compilation for native Cygwin
2016-11-29 14:10:39 -08:00
Nikolai Lifanov
9c937aa3d3
add missing includes for FreeBSD
...
These were lost during refactoring and found again
in preparation for port update to upcoming 3.20.
2016-11-21 17:03:40 -05:00
jsteube
66a9f2f544
Merge strcmp() changes from https://github.com/hashcat/hashcat/pull/604
2016-11-21 11:36:49 +01:00
jsteube
e43747f36c
Do not use deprecated readdir_r(), man pages tells us to fall back to readdir()
2016-11-21 10:55:25 +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
aa1b7408a0
Add some missing returncode checks to get_exec_path()
2016-11-20 14:01:13 +01:00
Rosen Penev
03efea645f
More sign fixes
2016-11-16 21:17:28 -08:00
jsteube
af633cdf77
Replaced all calls to readdir() with readdir_r() to ensure thread safety with exception to windows, because there's no readdir_r() for windows. We should replace this with FindFirstFile() and FindNextFile() in a later version
2016-11-16 13:50:42 +01:00
jsteube
24d535d197
Replaced all calls to getpwuid() with getpwuid_r() to ensure thread safety
2016-11-16 13:36:26 +01:00
jsteube
69804dc5f7
Fix folder.c warnings when compiling on windows
2016-11-07 15:05:12 +01:00
jsteube
9eb9543cda
Basic sysfs support to read temp and read/write fan speed for amd-gpu-pro
2016-11-05 23:19:13 +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
Rosen Penev
a219b95c17
Fix a bunch of warnings
2016-10-30 10:58:14 -07:00
jsteube
5815055a7a
Fixes https://github.com/hashcat/hashcat/issues/545
2016-10-25 11:30:27 +02:00
jsteube
c6c31a86d8
Add some changes to improve compiling on MSYS2
2016-10-21 09:07:39 +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
07f5b2195b
Hopefully fixes some OSX compiler errors
2016-10-10 09:18:10 +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
662ddec0bb
Update folder.c function parameters
2016-10-06 16:17:29 +02:00
jsteube
57cb082fda
Add some useful stuff to main.c
2016-10-03 01:27:55 +02:00
jsteube
9413ed8f56
Centralize hashcat_ctx memory allocation and deallocation
2016-10-02 00:00:21 +02:00
jsteube
5f18fb40f1
Added hc_mkdir instead of mkdir macro
2016-10-01 13:51:06 +02:00
jsteube
d16b6228a6
Fix exec_path_len replacement on OSX
2016-09-30 18:55:53 +02:00
jsteube
299edf5170
Fix some missing sign conversions
2016-09-30 18:09:29 +02:00
jsteube
af1701c765
Fix some memleaks on shutdown
2016-09-30 13:36:27 +02:00
jsteube
1cc4358820
Introduce folder_config_t
2016-09-21 23:06:11 +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
fe634d93aa
More pre-sorting
2016-09-11 10:53:29 +02:00