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

73 Commits

Author SHA1 Message Date
philsmd
a24d723d66
minor code style fixes 2022-03-31 19:19:16 +02:00
Gabriele Gristina
47134e363e Backend Info: Added folder_config info to output 2022-02-12 02:03:48 +01:00
Pierre Pronchery
1cb24b0a3c Fix the build for NetBSD 2022-01-10 00:14:45 +01:00
Jens Steube
28c08de9ef Folders: Do not escape the variable cpath_real to prevent certain OpenCL runtimes from running into an error which do not support escape characters 2021-06-24 09:24:02 +02:00
Jens Steube
23ba4f0b66 Folder Management: Add support for XDG Base Directory specification if hashcat was installed using make install 2021-06-06 11:03:44 +02:00
nycex
40c68b8bf4
use recursive mkdir for the profile and the cache dir 2021-06-05 21:55:59 +02:00
nycex
954b7d0a4d
apply suggested changes 2021-06-05 20:49:23 +02:00
nycex
470e844e5d
use XDG_CACHE_HOME for kernels 2021-06-05 00:38:43 +02:00
nycex
036247186b
fix remaining style issues 2021-06-04 23:20:25 +02:00
nycex
964eb51dd9
fallback to ~/.hashcat if the xdg base directory does not exist 2021-06-04 23:20:24 +02:00
nycex
d018469aef
conform to hashcat style conventions 2021-06-04 23:20:24 +02:00
nycex
8d78815767
use XDG_DATA_HOME for profile_dir 2021-06-04 23:20:24 +02:00
Jens Steube
dc9f4e993a Fix for #2387, but need some testing first 2020-06-03 11:10:31 +02:00
Jens Steube
d5cd0a0030 Fix invalid brain session id calculation and move sorting functions to shared.c 2020-05-11 11:52:36 +02:00
Jens Steube
ce0257dd84
Merge pull request #2189 from neheb/fgfggdf
bools
2019-11-05 12:29:02 +01:00
Rosen Penev
bd6c0e57e4 Change 0/1 to true/false
Found with clang-tidy
2019-09-11 18:36:52 -07:00
Rosen Penev
fd8150769d Add casts where needed in C++ mode
Otherwise, -fpermissive must be passed.
2019-09-11 18:05:01 -07:00
Jens Steube
2e32eaf2bb Fix printing from NULL pointer address 2019-06-26 15:52:11 +02:00
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