Commit Graph

375 Commits (master)

Author SHA1 Message Date
jsteube 124d10989c Try original NV kernel bytecode cache for faster startup, see how user response is
6 years ago
Jens Steube 1af8e29a4b Add round_up_multiple_32() and round_up_multiple_64()
6 years ago
Jens Steube d656e9c3a4 OpenCL Kernels: Use the kernel local buffer size as additional reference in order to limit the thread-count
6 years ago
jsteube 05a01d3843 fix some datatypes
6 years ago
jsteube ef3cdddb18 Enforce environment variables to be set in cygwin environment
6 years ago
Rosen Penev aece2cc4be Get rid of hc_ctime too. Also fix some cppcheck confusion with nvapi.
7 years ago
Rosen Penev 1c5915cae3 remove special time handling in hashcat.
7 years ago
Rosen Penev 353d3c3008 Fix a bunch of cast-qual warnings
7 years ago
jsteube 5e6d43107e Startup: Check and abort session if outfile and wordlist point to the same file
7 years ago
jsteube 583849cd23 Fix missing free() for memory allocated with asprintf()
7 years ago
Rosen Penev 4ba19fa7c1 replace more snprintf calls with hc_asprintf.
7 years ago
Rosen Penev ec55209254 remove hc_sleep and _msec.
7 years ago
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
7 years ago
jsteube 8ee75141ea OpenCL Runtime: Set OpenCL build option -O2 fixed for ROCm and AMDGPU-PRO using AMD_OCL_BUILD_OPTIONS_APPEND
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
Jens Steube 92eb946345 Merge pull request #1309 from neheb/master
7 years ago
Rosen Penev 9736782411 Switch back to rand().
7 years ago
Rosen Penev 3c530a48c4 get_random_num: Simplify
7 years ago
jsteube 332396a003 Fix SCRYPT on ROCm
7 years ago
jsteube 33804110d1 Update default environment variables
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
7 years ago
jsteube ce337c5863 Replace __builtin_clz() and __builtin_clzll() with some straight forward solution
7 years ago
Rosen Penev 4ceb7a1afa
Prefer _WIN to _POSIX for defines.
7 years ago
jsteube 4e2adc031a Add some compiler independant integer overflow functions
7 years ago
jsteube 922fea7616 Add more integer overflow checks
7 years ago
philsmd bd9fdc1849
use putenv () with the COMPUTE environment as it was before
7 years ago
Jens Steube f31330679f Revert "tainted string: test number 2, try to limit the length of the compute variable"
7 years ago
Jens Steube 899b120316 Revert "tainted string: maybe strdup () helps us out"
7 years ago
philsmd 0ca0448bd9
tainted string: maybe strdup () helps us out
7 years ago
philsmd d21fbe0b2f
tainted string: test #2, try to limit the length of the compute variable
7 years ago
jsteube e47932262d Fix uint datatype (should be u32)
7 years ago
philsmd 6eaa7e3741
tainted string fix: check some lower/upper bounds of the strings
7 years ago
jsteube b381b38fd8 Fix CID 1402374
7 years ago
jsteube 671f9a7eb7 Fix hc_path_create(), first close the file descriptor before unlinking the file itself
7 years ago
jsteube 934cc6fcec Fix for https://github.com/hashcat/hashcat/issues/1006
7 years ago
jsteube 2d2eadd2f6 Use hc_path_create() for additional write checks on startup
7 years ago
jsteube 17548d3ee8 Helper: Added functions to check existence, type, read- and write-permissions and rewrite sources to use them instead of stat()
7 years ago
jsteube 9113a57fe6 Use vasprintf not asprintf
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 6d0eb174f5 Add some useful environment variable for use with amd-gpu-pro driver
8 years ago
jsteube 93adde9d2f * Wrap everything related to *stat() into own functions
8 years ago
jsteube b044271b01 Move more status display calculate logic into separate functions
8 years ago
jsteube a5f842c4b5 Fix some missing sign conversions
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 a0f6ed6832 Introduce hashes_t; not finishe yet
8 years ago
jsteube 3daf0af480 Added docs/credits.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
jsteube d9073296e4 Make hc_sleep() a function
8 years ago
jsteube e3d0cd0bdd Move more functions out of shared.c
8 years ago
jsteube 51a059a606 Move status specific functions into their own source file
8 years ago
jsteube 9eb47153d4 Replace all #ifdef with #if defined (...) for convention
8 years ago
jsteube a56855e355 Move restore specific functions into their own source file
8 years ago
jsteube 1fc22dba03 Move bitmap specific functions into their own source file
8 years ago
jsteube 25726e4f4e Remove some (hopefully) redundant macros and compiler options
8 years ago
jsteube 80d7dce9b5 Move more functions out of shared.c
8 years ago
jsteube 8dd57b715b Create real opencl.c to better distinguish between opencl helper functions and library handling functions
8 years ago
jsteube f9e1329ca9 Fix CRLF
8 years ago
jsteube 9336ca8838 Remove data. access from pthread_setaffinity_np (apple version)
8 years ago
jsteube 3ba5c743f8 Move affinity specific functions into their own source file
8 years ago
Gabriele 'matrix' Gristina b0c6eee06c Fix multiple build issues with OSX
8 years ago
jsteube 3ed4bfd237 Move tuningdb specific functions into their own source file
8 years ago
jsteube b8e47c2ba2 Move locking specific functions into their own source file
8 years ago
jsteube c3fe5b40b1 Move folder specific functions into their own source file
8 years ago
jsteube 1902e6c2eb Create real cpu_crc32.c and rp_cpu.c
8 years ago
jsteube 0a5759ef1c Move usage specific functions into their own source file
8 years ago
jsteube 21666f77b7 Move maskprocessor and statusprocessor specific functions into their own source file
8 years ago
jsteube d15ae38723 Move hwmon specific functions into their own source file
8 years ago
jsteube 5dd5c15966 Move tty_*() specific functions into their own source file
8 years ago
jsteube eb5e192df5 Move logfile() specific functions into their own source file
8 years ago
jsteube 3dc77ced14 More preparation for easier integration of:
8 years ago
jsteube b95f491c64 Remove some explicit includes for __APPLE__
8 years ago
jsteube d44571ff70 Add some explicit includes for __APPLE__
8 years ago
jsteube e790ae0f95 Fix some calls to strdup() which should by mystrdup()
8 years ago
jsteube 4b79ccd416 Preparation for easier integration of:
8 years ago
jsteube ff376ce112 Moved bit operations out of shared.[hc] and created bitops.[hc]
8 years ago
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
8 years ago
Jens Steube a289c37ecf Allow loading of bcrypt hashes with signature $2b$ (February 2014)
8 years ago
Jens Steube 54249835f4 Merge pull request #482 from neheb/master
8 years ago
Rosen Penev ed1ad9714d
Fix -Wmissing-declarations
8 years ago
jsteube 71a8459d85 Two new modes added:
8 years ago
Rosen Penev d666191d67
Sign fixes
8 years ago
Rosen Penev c495f6a090
Remove unreachable code: break
8 years ago
Rosen Penev aeee10fbeb
Fix -Wundef warnings
8 years ago
Rosen Penev be47aebc24
Avoid float to double promotions
8 years ago
Rosen Penev a0b89951c1
More sign conversion fixes
8 years ago
Jens Steube bdecbbee1a Merge pull request #446 from usernamestaken/master
8 years ago
Michael Sprecher 7593db9483
Added new hash-mode 13900 = OpenCart
8 years ago
radix d4dfe58a72
CRAM_MD5 throws salt length exception when the issue is in the hash
8 years ago
Rosen Penev 37eaafdabf Fix GCC sign warnings
8 years ago
jsteube 8acf5b3879 Add support for @ rule (RULE_OP_MANGLE_PURGECHAR) to use on GPU
8 years ago
jsteube 2b7e36b042 Output cracked hashes on Windows using \r\n and not \n
8 years ago
Jens Steube f1cd53e335 Globally fix return parameter handling to not use brackets
8 years ago
jsteube 3fa2d10914 Allow the use of enc_id == 0 in hash-mode 10600 and 10700 as it takes no part in the actual computation
8 years ago
jsteube 49f693a1c9 Replace LINUX macro with compiler predefined macro __linux__
8 years ago
jsteube 96f2ade4bb Replace DARWIN macro with __APPLE__
8 years ago
jsteube 2043338859 Rewrite some code to workaround strict aliasing rule violation for older compilers
8 years ago
Jens Steube 72abe90e10 Merge pull request #421 from lifanov/freebsd-port
8 years ago
Nikolai Lifanov 54ebe1fe23 fix get_path_exe: not sure what I was thinking
8 years ago
Nikolai Lifanov 1a3b610601 add tty handling for FreeBSD
8 years ago
Nikolai Lifanov c2bcdbebcb implement thread affinity for FreeBSD
8 years ago
philsmd a5700bf4ef
fixed problem where hashcat did not remove WPA/WPA2 hashes found in potfile
8 years ago
Nikolai Lifanov 883bc202db implement get_exec_path for FreeBSD
8 years ago
Nikolai Lifanov 3d3d212595 FreeBSD also needs stdio.h
8 years ago
jsteube edb5028a4d Fix for PR 69122fb554 which wasn't complete
8 years ago
Moritz Kick 69122fb554 Make linux-build POSIX compatible
8 years ago
Jens Steube 3370820109 Merge pull request #392 from unix-ninja/master
8 years ago
Unix-Ninja 2188a01ae9 Refactor OSX preprocessor constants to read 'DARWIN'
8 years ago
jsteube 115c95eb02 Use dedicated variables to control shutdown of parallel threads like keypress and monitoring
8 years ago
Jens Steube 772e2ac33f Fix benchmark devices_status bug
8 years ago
jsteube 6191e8bf79 Fix reset to automatic for NvAPI
8 years ago
jsteube 49811cfee1 Set fanspeed to automatic on shutdown
8 years ago
jsteube de1d1da454 Disable some of NVMLs useless throttle reasons
8 years ago
jsteube 057909fdfd Do not overwrite quit status when user forced it with keypress
8 years ago
Jens Steube a5a38620d4 Move keyspress detecting thread to outer loop
8 years ago
Jens Steube e7df9b112a windows path update
8 years ago
Jens Steube 6d2aa559a6 Windows doesn't accept escape characters, falling back to old method for windows
8 years ago
Jens Steube 268b1e3ad0 Remove workaround with multiple include folders; Instead use a naive escape function
8 years ago
Jens Steube 8298cd4926 Drop -m 190, no reason to keep it
8 years ago
radix 5d41b93514
Update wording on some warning messages.
8 years ago
dropdead 30aebe81fa Cleaned log output
8 years ago
jsteube 07acd52ed4 Some optical change on startup
8 years ago
jsteube d57ac912cc Fix https://github.com/hashcat/oclHashcat/issues/374
8 years ago
jsteube 92a111be74 Fixed some macros
8 years ago
jsteube 2bd49e6720 Added --gpu-temp-retain support for windows through nvapi
8 years ago
jsteube e43be7aba3 Do not try to set fanspeed if connection to X11 failed
8 years ago
jsteube 9a970c0955 Added support for XNVCTRL on Linux to add support for --gpu-temp-retain for NVidia GPU
8 years ago
Jens Steube eb88171bdd Fix precompute bug in PeopleSoft PS_TOKEN
8 years ago
Jens Steube 3022abf956 some axcrypt fixes
8 years ago
jsteube b9eefd9b20 Added new hash-mode 13800 = Windows 8+ phone PIN/Password
8 years ago
jsteube 2e706edc18 Do not show *throttle* in status display if the reason is unknown
8 years ago
jsteube a3e6690a9c Remove union in hm_attrs_t; Remove code related to threshold_slowdown which will be replaced with NvGetPerfPoliciesInfo()
8 years ago
jsteube 040bbd416a More nvapi preparations and display skip reason in benchmark
8 years ago
jsteube 3c6296801a Prepare for reintegration of nvapi for checking thermal limit
8 years ago
jsteube d329451cc1 Here it is: --powertune-enable for nvidia -- Works on both linux and windows
8 years ago
jsteube a23c0c4716 Added a ton of new NVML stuff
8 years ago
jsteube d89a8a68d6 Finally got rid of NvAPI on Windows, replace with NVML
8 years ago
jsteube 19e36694da Added support for --gpu-temp-retain for nvidia devices on windows
8 years ago
jsteube 8ffbeac954 Add NvAPI_GPU_GetPerfDecreaseInfo() -- but i doesn't work, so deactive it
8 years ago
jsteube 63de7cdca8 Add NvAPI support for PCIE Lanes
8 years ago
jsteube 72384c1fc3 Add NVML support for PCIE Lanes
8 years ago
Jens Steube 53a4e0cbb7 Add PCI-E Lanes to status display, if available
8 years ago
Jens Steube 3e6ae89297 Add ADL_Overdrive6_TargetTemperatureData_Get() which for some reason does not work
8 years ago