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

632 Commits

Author SHA1 Message Date
Jens Steube
ca31ef43af Fixed race condition in maskfile mode by using a dedicated flag for restore execution 2019-08-06 14:07:43 +02:00
Gabriele Gristina
c88250e437 (hashcat) remove unused *rc* vars and cleanup 2019-07-10 17:10:15 +02:00
Jens Steube
3c4cb5c0f8
Merge pull request #2061 from f0cker/brain_all
Brain all
2019-06-18 10:52:56 +02:00
Jens Steube
62d5d2dfbb OpenCL Runtime: Workaround ROCm OpenCL driver problem trying to write temporary file into readonly folder by setting TMPDIR environment variable 2019-06-17 17:35:23 +02:00
f0cker
3bb68e7981 Added brain status (tx/rx) for all devices 2019-06-15 22:46:40 +00:00
Royce Williams
348221c15c minor tweaks to hash-count min/max language 2019-05-19 04:59:33 -08:00
Jens Steube
f1632b933e Add support to configure hash-mode specific range of number of hashes supported 2019-05-19 14:46:05 +02:00
Jens Steube
3c4f4df771 Rename some more variables 2019-05-01 15:52:56 +02:00
Jens Steube
e3500ff4aa Add CUDA device attributes to -I 2019-04-30 13:38:44 +02:00
Jens Steube
4b986de5fb Prepare native CUDA hybrid integration 2019-04-25 14:45:17 +02:00
jsteube
708a86fb59 Move old ascii_digest() to hashes.c and rename it to hash_encode(), also remove some unused includes 2019-03-31 17:39:00 +02:00
jsteube
1537fc4e5d Improve handling of temporary skipped devices (due to JiT build failure or unstable_warning) 2019-03-04 10:29:57 +01:00
jsteube
166f908241 Get rid of some old hack and cleanly distinguish between HL_MODE_FILE_PLAIN and HL_MODE_FILE_BINARY 2019-02-25 11:20:22 +01:00
jsteube
b2154b7ed9 Fix use-after-free of hash_name 2019-01-21 10:00:44 +01:00
jsteube
bc1dd699e3 Add -m 1500 module 2019-01-15 11:53:59 +01:00
jsteube
c3630b2f18 Allow modules to change value from user_options->hash_mode to something different in hashconfig->hash_mode. This will be required for modes that can automatically select the right hash_mode for the user for instance LUKS 2019-01-14 19:02:09 +01:00
jsteube
17bd76ee62 Use settings from selftest hash for benchmark unless overriden by module hooks 2019-01-12 01:59:18 +01:00
Jens Steube
222d76f01e Replace parse_func() with module_hash_decode() 2018-12-14 12:22:13 +01:00
Jens Steube
4177e1ee28 Replace gitmodules with files and add support for system-wide libraries 2018-11-08 12:52:06 +01:00
Jens Steube
a4a9d29420 Fixed calculation of brain-attack if a given wordlist has the size zero
Fixes https://github.com/hashcat/hashcat/issues/1756
2018-11-03 12:20:55 +01:00
Jens Steube
3b8abb7f0d Fixed missing call to WSACleanup() to cleanly shutdown windows sockets system 2018-11-01 11:09:37 +01:00
Jens Steube
d6fe2c7cd4 The hashcat brain 2018-10-28 16:47:13 +01:00
Jens Steube
f3f4ab4421 Do not return -1 in case of --keyspace 2018-10-25 13:56:03 +02:00
Jens Steube
5b8a35a118 Fix returncode from hashcat in case --show or --left was used 2018-10-17 09:13:54 +02:00
jsteube
52c52836e3 Add new option --slow-candidates which allows hashcat to generate passwords on-host 2018-09-01 12:31:17 +02:00
jsteube
067ffa9d64 Add more tracker for amplifier and iterations to status screen 2018-08-18 02:17:42 +02:00
jsteube
27db8ced7e Add a tracker for salts, amplifier and iterations to status screen 2018-08-18 01:41:07 +02:00
jsteube
82457d2904 Fixed a missing check for errors on OpenCL device leading to invalid removal of restore file 2018-07-10 13:17:07 +02:00
jsteube
469fece141 OpenCL Kernels: Abort session if kernel self-test failed 2018-06-13 12:22:54 +02:00
Jens Steube
fb00b528c4 Improve autotune and synchronize results on same OpenCL devices 2018-02-03 13:49:39 +01:00
jsteube
11b18512c7 Terminal: Add workitem settings to status display (can be handy for debugging) 2018-02-02 23:22:21 +01:00
jsteube
3272e29497 Returncode: Enforce returncode 0 in case the user selected --speed-only or --progress-only and no other error occured 2018-02-01 11:18:40 +01:00
jsteube
dd97799e4c Hashcat Context: Fixed a memory leak in shutdown phase 2018-01-31 16:42:04 +01: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
jsteube
ea795ef5ab Move out code to check for hashfile or hash on commandline into dedicated function 2017-12-06 16:12:34 +01:00
jsteube
1184ae1cdd Added option --benchmark-all to benchmark all hash-modes not just the default selection 2017-12-05 11:08:59 +01:00
jsteube
42d1db4294 Fixed a restore issue leading to "Restore value is greater than keyspace" in case mask-files or wordlist-folders were used 2017-11-28 09:25:10 +01:00
jsteube
e93fa25454 Allow the use of hashcat_init() without a callback function 2017-11-21 11:30:39 +01:00
Rosen Penev
0555613305 Remove else statement after return
Suggested by clang tidy
2017-11-04 23:43:33 -07:00
jsteube
2517292ac1 Removed option --weak-hash-check (zero-length password check) to increase startup time, it also causes many Trap 6 error on OSX 2017-09-19 12:04:05 +02:00
jsteube
86f67517a0 Allow higher number of kernel_loops for -a 0 mode in case they are slow hashes 2017-08-29 10:28:42 +02:00
jsteube
f6fe5657a3 Fixed an integer overflow in masks not skipped when loaded from file 2017-08-26 14:40:53 +02:00
jsteube
12d95fd22c Added option --example-hashes to show an example hash for each hash-mode 2017-08-22 11:09:46 +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
Jens Steube
08fc0ec1fb Added self-test funcionality for OpenCL kernels on startup
Fixed a parser error for mode -m 9820 = MS Office <= 2003 $3, SHA1 + RC4, collider #2
2017-06-13 19:07:08 +02:00
Christopher Schmitt
4c45939aa7 opencl_ctx_devices_destroy should be before opencl_ctx_destroy 2017-05-30 12:19:43 -04:00
jsteube
7bd391df71 Fixed a condition that caused a hybrid attack using a maskfile to not select all wordlists from a wordlist folder
Fixes https://github.com/hashcat/hashcat/issues/1244
2017-05-17 12:33:46 +02:00
Royce Williams
b4264c7d0a minor grammar when restore value is greater than keyspace 2017-05-11 06:02:33 -08:00
sgroat
21efc80975 fix string 2017-04-10 13:35:01 -07:00
Royce Williams
067372f5ce more event_log_* standardization 2017-04-01 23:50:06 -08:00
jsteube
e933d12838 Rename Input.Mode, Input.Base, ... to Guess.Mode, Guess.Base, ... 2017-03-24 23:39:09 +01:00
jsteube
20057d8516 Roll back status view progress percentage in case -s was used 2017-03-15 16:15:37 +01:00
jsteube
72071fba87 Do not try to use save_hash() in case hashlist_mode == HL_MODE_FILE 2017-03-14 08:51:53 +01:00
jsteube
e9d5b6d44d Merge branch 'master' of https://github.com/hashcat/hashcat 2017-03-13 23:00:33 +01:00
jsteube
7e449e75d1 Fixed status view progress percentage in case -s was used 2017-03-13 23:00:17 +01:00
philsmd
ae3fb3516b
remove: do not remove hashes unless --remove was specified 2017-03-13 22:42:51 +01:00
Jens Steube
963a9772ba Fixed --remove was not applied in case all hashes have been cracked by help of potfile or weak-hash check 2017-03-12 11:05:37 +01:00
philsmd
b2d88a0832
minor: fixed some comments about --skip/--limit/--keyspace 2017-03-10 12:49:57 +01:00
jsteube
6b77606bdd Fixed recursion in loopback handling when session was aborted by the user 2017-03-02 23:30:43 +01:00
jsteube
54ad27da7d Session Management: Automatically set dedicated session names for non-cracking parameters, for example: --stdout 2017-03-02 19:57:34 +01:00
jsteube
dc170907ed Compress multiple newlines to one in host code, too 2017-02-26 15:48:14 +01:00
jsteube
79e8b6a6b9 Make sure to unlink the pidfile only if our instance created it, but even in case of error 2017-02-17 08:59:22 +01:00
philsmd
98129da7dc
add dummy check around hashcat_get_status () within inner2_loop to make coverity happy 2017-02-15 12:57:18 +01:00
jsteube
ed772a02a4 Check for at least one active OpenCL device before running weak-hash-check 2017-02-14 21:05:44 +01:00
jsteube
ac5d274845 Sessions: Move out handling of multiple instance from restore file into separate pidfile 2017-01-27 16:29:18 +01:00
jsteube
84fcd8289f Files: Do several file and folder checks on startup rather than when they are actually used to avoid related error after eventual intense operations 2017-01-27 14:50:39 +01:00
jsteube
c7999c66bc Returncode: Added dedicated returncode (see docs/status_codes.txt) for shutdowns caused by --runtime and checkpoint keypress 2017-01-06 08:45:40 +01:00
jsteube
038b915e2d Fixed runtime limit: No longer required so sample startup time after refactorization 2017-01-05 22:34:47 +01:00
jsteube
1f756bf752 Include passwords for removed hashes present in the potfile to next loopback iteration 2017-01-03 19:21:27 +01:00
jsteube
1f266fb0f2 Added new event EVENT_WEAK_HASH_ALL_CRACKED if all hashes have been cracked during weak hash check 2017-01-03 09:56:40 +01:00
jsteube
4a81601c0a Reenabled automatic status screen display in case of stdin used 2016-12-29 13:05:29 +01:00
jsteube
f424650c3b Fixed infinite loop when using --loopback in case all hashes have been cracked
Fixes https://github.com/hashcat/hashcat/issues/917
2016-12-10 09:37:59 +01:00
jsteube
ec5610271a New option --progress-only: Quickly provides ideal progress step size and time to process it per device based on the user hashes and selected options, then quit 2016-12-09 23:44:43 +01:00
jsteube
a048bdc02c Fix some variable names in hashcat.log 2016-11-22 18:39:02 +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
72e39a7ec0 Try to use true and false in case we're handling a bool data-type just as kind of a hint it's a bool 2016-11-18 10:09:03 +01:00
jsteube
4d9cb462a9 Add back input queue in status view
Implements https://github.com/hashcat/hashcat/issues/577
2016-11-10 22:30:17 +01:00
jsteube
1edc129f8a Added core-clock and memory-clock to output in benchmark mode with --machine-readable enabled 2016-11-10 17:50:29 +01:00
jsteube
0fb9779c15 Make a final status snapshot 2016-11-02 22:45:39 +01:00
jsteube
d6b7b39515 Fix for invalid error "Restore value greater keyspace" 2016-10-31 23:19:44 +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
3442892fda Use __attribute__ ((format (printf, 2, 3))) to help compiler to identify format strings 2016-10-31 09:19:37 +01:00
jsteube
eb58b076da Fix compiler warnings caused by -Wstack-usage=524288 2016-10-30 22:22:26 +01:00
Rosen Penev
a219b95c17
Fix a bunch of warnings 2016-10-30 10:58:14 -07:00
Jens Steube
cf1c133678 Merge pull request #552 from matrix/master
Fix OSX segfault on check_hash()
2016-10-30 14:00:35 +01:00
Gabriele Gristina
e7406bec33 Fixed OSX stack overflow - v2 2016-10-30 00:33:12 +02:00
jsteube
b16c15c151 Fix missing TOPID in hashcat.log for user options 2016-10-29 23:21:52 +02:00
jsteube
9e156321ef Bring back mask length of mask as number to status screen 2016-10-29 22:44:01 +02:00
jsteube
f3fc5d96c4 Limit status_ctx access with a flag, easier to test 2016-10-29 15:12:45 +02:00
jsteube
e26b08f61f Move opencl_info() to terminal.c 2016-10-25 16:40:06 +02:00
jsteube
824654e2fb Create opencl_ctx_devices_show() as an example for how to access opencl devices from library and as replacement for inlined code for -I 2016-10-25 15:43:09 +02:00
jsteube
e1010ffba1 Prepare library user access to OpenCL device information without running an attack 2016-10-23 17:31:22 +02:00
jsteube
8ecabcb9ac Fix --stdout and --keyspace 2016-10-20 22:30:00 +02:00
jsteube
574acfab6a Move masks_pos from rd* to masks_ctx and dicts_pot from rd* to straight_ctx 2016-10-20 22:14:54 +02:00
jsteube
761e3f0d96 Move out words_cur from restore_ctx to status_ctx and let the dispatcher update it 2016-10-20 21:27:42 +02:00
jsteube
f6334b5f90 Handling --show and --left need to be refactored, do not use those flags atm 2016-10-18 20:42:34 +02:00
jsteube
c3266e363a Make status_display_machine_readable() use of hashcat_status_t 2016-10-18 00:13:40 +02:00
jsteube
89e3168280 Make status_display(), status_benchmark_automate() and status_benchmark() use of hashcat_status_t 2016-10-17 23:49:44 +02:00
jsteube
1d0810a759 Added status_get_hwmon_dev() to status.c 2016-10-17 17:02:56 +02:00
jsteube
2b28010aae Added status_get_input_candidates_dev() to status.c 2016-10-17 16:46:16 +02:00