Rosen Penev
353d3c3008
Fix a bunch of cast-qual warnings
7 years ago
Rosen Penev
8458f07a57
Replace char[] with *char
...
The latter is more correct. The side effect is that filesize becomes smaller.
gcc clang
before
O2
756112 762120
Os
674192 680216
after
O2
748456 760728
Os
666536 674728
7 years ago
jsteube
635b2bfd50
Do initial OpenCL device thread management a bit different
7 years ago
philsmd
276879b1ea
show/left: improve speed of --show/--left again by using a single malloc/free for all nodes and reduce RAM by using the first nodes hash information
7 years ago
philsmd
433513a47f
get rid of last_node in pot_tree_entry, we update the first node of the list instead of the last one
7 years ago
philsmd
6542331101
show/left: improved the performance by using a tree and linked node structure
7 years ago
jsteube
2517292ac1
Removed option --weak-hash-check (zero-length password check) to increase startup time, it also causes many Trap 6 error on OSX
7 years ago
jsteube
7a278ef035
Fix overflow in out_push()
7 years ago
jsteube
5551337cf6
Show advice to use optimized kernels only if there's actually one for this hash-mode
7 years ago
Jens Steube
fcd20fbacb
OpenCL Runtime: Fall back to 64 threads default (from 256) on AMD GPU to prevent creating too many workitems
7 years ago
jsteube
688a580d6c
Fixed an integer overflow in innerloop_step and innerloop_cnt variables
7 years ago
jsteube
1d04de3a8e
Limit kernel-loops in straight-mode to 256, therefore allow rules to be stored in constant memory
7 years ago
jsteube
51372438fe
Allow OpenCL kernel inline assembly if ROCm drivers was detected
7 years ago
jsteube
12d95fd22c
Added option --example-hashes to show an example hash for each hash-mode
7 years ago
jsteube
58d1dedd1e
OpenCL Buffers: Do not allocate memory for amplifiers for fast hashes, it's simply not needed
7 years ago
jsteube
319799bbbf
Switch the datatypes of the variables responsible for work-item count and work-item size from u32 to u64
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
ac9bc55c9e
Fall back to 64 threads default (from 256) because modern GPU create too many workitems which then results in too less GPU memory available
7 years ago
jsteube
1cf6a078b0
Make tmp_size a real size_t as with latest GPU number can exceed 2^32
7 years ago
philsmd
bc1a101d2b
fixes #1321 : new option --wordlist-autohex-disable
7 years ago
jsteube
b847bbb274
Fix calculation of device_name_chksum; should be done for each iteration
7 years ago
jsteube
beb6ee2061
Add OPTI_TYPE_OPTIMIZED_KERNEL
...
Rename unconverted fast hash kernels to optimized kernels
Finalize some converted fast hashes to default kernels
7 years ago
jsteube
fbea72ebd6
Renamed default kernels to optimized kernels
...
Renamed pure kernels to default kernels
Replaced long option --length-limit-disable with --optimized-kernel-enable
Replaced short option -L with -O
Set --optimized-kernel-enable to unset by default
7 years ago
jsteube
967d7b9323
Rename SALT_TYPE_INTERN to SALT_TYPE_GENERIC
7 years ago
jsteube
f70da8a04c
Increase salt length for salt of generic hash types
...
Remove --hex-salt support for non-generic hash types
7 years ago
jsteube
f7a8e7c54b
Multiple changes:
...
* Added more preparations to support to crack passwords and salts up to length 256
* Added option --length-limit-disable to disable optimization based on password- and salt-length
* Added option --self-test-disable to disable self-test functionality on startup
7 years ago
jsteube
c918173fcf
Get rid of comb_t which can be safely replace with pw_t now
7 years ago
jsteube
4174f06008
PoC using a length-independant MD4 hash processing in -m 2100
7 years ago
jsteube
a673aee037
Very hot commit, continue reading here:
...
This is a test commit using buffers large enough to handle both passwords and salts up to length 256.
It requires changes to the kernel code, which is not included in here.
It also requires some of the host code to be modified. Before we're going to modify kernel code to support the larger lengths I want to be
sure of:
1. Host code modification is ok (no overflows or underflows)
2. Passwords and Salts are printed correctly to status, outfile, show, left, etc.
3. Performance does not change (or only very minimal)
This is not a patch that supports actual cracking both passwords and salts up to length 256, but it can not fail anyway.
If if it does, there's no reason to continue to add support for both passwords and salts up to length 256.
7 years ago
jsteube
94a35ae50a
Add support for hooks in selftest function
7 years ago
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
7 years ago
jsteube
b8ad89c529
Rename function and variables containing 'unicode' to 'utf16le' because that's what's meant actually
7 years ago
jsteube
018bb208d9
Refactor OPTS_TYPE_PT_UNICODE -> OPTS_TYPE_PT_UNICODE_LE and add OPTS_TYPE_PT_UNICODE_BE
7 years ago
Jens Steube
6345fb53f9
Add missing struct names
7 years ago
Jens Steube
2a1fe6962d
Move blake2_t and chacha20_t to interface.h
7 years ago
jsteube
ef33544bfa
Show time spent for dictionary cache building on startup
7 years ago
Jens Steube
5611d7f950
Merge pull request #1256 from 0xbsec/reject_unless_equal
...
Add support for rejection rule _N
7 years ago
DoZ10
62df9648d6
Removed unused structure
7 years ago
DoZ10
556e64ffe6
Revert "Removed unused structure"
...
This reverts commit e7dab5d210
.
7 years ago
DoZ10
e7dab5d210
Removed unused structure
7 years ago
mhasbini
1330424079
Add support for rejection rule _N
7 years ago
Jens Steube
f2ad095191
Merge pull request #1237 from DoZ10/master
...
New algorithm: Chacha20
7 years ago
DoZ10
cfc3fa64c0
Implemented offset parameter to reach full ks block of 64 bytes
7 years ago
mhasbini
be0dec621a
Add support for rule position 'p' in host mode
7 years ago
DoZ10
9dee1d274d
Removed plain_length parameter and copied esalt buffer to salt ofr sorting mechanism.
7 years ago
DoZ10
c50e8bc486
Fixed position parameters. Tested all kernels. Ok.
7 years ago
DoZ10
f6cd42352d
CPU parsing mostly done. Kernel showing good values.
8 years ago
DoZ10
152f0b5152
Init work on Chacha20
8 years ago
Jens Steube
b924901bb0
Merge pull request #1226 from DoZ10/master
...
Blake2b raw hash implementation
8 years ago
DoZ10
9d0855c02f
Fixed interface.c to remove XORing madness and blake2_t naming convention
8 years ago
DoZ10
87e0281237
Moved init params in CPU (interface.c). Fixed vector-type problem in kernel a0.
8 years ago
mhasbini
5734741392
Add support for rule: eX
8 years ago
Jens Steube
086a07264a
Switch from libiconv to win-iconv
8 years ago
Jens Steube
7cabb848d2
Wordlist encoding: Support added for internal convert from and to user-defined encoding during runtime
...
Wordlist encoding: Added parameters --encoding-from and --encoding-to to configure wordlist encoding handling
Dictstat: Structure for dictstat file changed as it has to include --encoding-from and --encoding-to parameter now
8 years ago
sgroat
21efc80975
fix string
8 years ago
jsteube
26949a4fce
WPA cracking: Improved nonce-error-corrections mode to fix corrupt nonce generated on Big-Endian devices
...
WPA cracking: Reduced --nonce-error-corrections default from 16 to 8 to compensate speed drop caused due to Big-Endian fixes
Fixes https://github.com/hashcat/hashcat/issues/1221
8 years ago
jsteube
368f8b39bc
Add function to distinguish between warning and advice messages
8 years ago
jsteube
e933d12838
Rename Input.Mode, Input.Base, ... to Guess.Mode, Guess.Base, ...
8 years ago
jsteube
d1b2fa0b31
Added hash-mode 15100 = Juniper/NetBSD sha1crypt
8 years ago
jsteube
c04dd5c8b1
WPA cracking: Added support for WPA/WPA2 handshake AP nonce automatic error correction
...
WPA cracking: Added parameter --nonce-error-corrections to configure range of error correction
8 years ago
Jens Steube
e82ce9243d
Added support for filtering hccapx message pairs using --hccapx-message-pair
8 years ago
Rosen Penev
4ceb7a1afa
Prefer _WIN to _POSIX for defines.
...
Also miscellaneous fixes here and there.
8 years ago
jsteube
62bc8689b7
Mask Checks: Added integer overflow detection for a keyspace of a mask provided by user
8 years ago
jsteube
c3251cebd8
Hardware Management: Bring back kernel exec timeout detection for NVidia on user request
8 years ago
jsteube
79e8b6a6b9
Make sure to unlink the pidfile only if our instance created it, but even in case of error
8 years ago
jsteube
9c5cfd17ac
Added support for automatic merge of LM halfes when --show and --left is used
...
Fixes https://github.com/hashcat/hashcat/issues/1034
8 years ago
philsmd
227c0be95e
resolves #1018 : added -m 3910 = md5(md5($pass).md5($salt))
8 years ago
jsteube
717da7f4f2
Added support for loading hccapx files
8 years ago
philsmd
dfd4084b3b
fixes #963 : show all user's hashes if --show/--left was specified
8 years ago
jsteube
ac5d274845
Sessions: Move out handling of multiple instance from restore file into separate pidfile
8 years ago
Jens Steube
07c89833c9
Added hash-mode 14800 = iTunes Backup >= 10.0
8 years ago
philsmd
297c797521
hook code: refactored the hook salt to be part of the hash_t struct
8 years ago
philsmd
6fe0173a79
#965 : new hook function to support LZMA1/LZMA2 decompression for -m 11600 = 7-Zip
8 years ago
jsteube
8257883ec1
Added hash-mode 14600 = LUKS
8 years ago
jsteube
c7999c66bc
Returncode: Added dedicated returncode (see docs/status_codes.txt) for shutdowns caused by --runtime and checkpoint keypress
8 years ago
jsteube
038b915e2d
Fixed runtime limit: No longer required so sample startup time after refactorization
8 years ago
jsteube
1f266fb0f2
Added new event EVENT_WEAK_HASH_ALL_CRACKED if all hashes have been cracked during weak hash check
8 years ago
jsteube
fa5b5d298d
Hash Parser: Improved error detection of invalid hex characters where hex character are expected
8 years ago
Gabriele Gristina
8b0764bc4d
Add support for SHA-224
8 years ago
jsteube
72599fd109
Fixed kernel loops in leading to slower performance in --increment mode
8 years ago
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
8 years ago
jsteube
db8ce269b2
Remove no longer used type cpu_rule_t
8 years ago
Rosen Penev
4d09cc10fd
Fix some formats and conversion errors
8 years ago
jsteube
cad3b3e10b
Get rid of truecrypt_mdlen
8 years ago
jsteube
7ca6a45781
Add some hint about performance for new users
8 years ago
jsteube
06c1d4a52e
Hardware-Management initialization refactor, to show HM related errors only once on startup
8 years ago
jsteube
0c55626689
Remove kernel exec timeout detection, should no longer occur due to autotune
8 years ago
jsteube
105513e307
On OSX, unset device_param->skipped back to true in case skipped_temp is set to true
8 years ago
jsteube
8645571a7c
Improve CPU detection on AMDGPU-Pro
8 years ago
jsteube
4d9cb462a9
Add back input queue in status view
...
Implements https://github.com/hashcat/hashcat/issues/577
8 years ago
Jens Steube
e3bc15eece
Merge pull request #576 from unix-ninja/master
...
Add hex charset (?h) to mpsp
8 years ago
unix-ninja
ca0bc3fc19
Fix cp_sys type def and add ?H charset
8 years ago
jsteube
1edc129f8a
Added core-clock and memory-clock to output in benchmark mode with --machine-readable enabled
8 years ago
jsteube
9eb9543cda
Basic sysfs support to read temp and read/write fan speed for amd-gpu-pro
8 years ago
jsteube
720b307ed7
Merge branch 'master' of https://github.com/hashcat/hashcat
8 years ago
jsteube
e63bc4d328
Query PCI-Express bus/device/function and store for later use
8 years ago
jsteube
2507f62722
Add hash-mode option OPTS_TYPE_PT_ALWAYS_ASCII to control need_hexify() from interface.c
8 years ago
jsteube
fb8fb6b21d
Actual use of --outfile-autohex-disable was lost during refactoring. Fixes https://github.com/hashcat/hashcat/issues/567
8 years ago
jsteube
0fb9779c15
Make a final status snapshot
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
jsteube
80b3f52952
Move from off_t to stat struct to avoid struggling with rarely available _off64_t in cache_git struct
8 years ago
jsteube
6d2ce0d71a
Added option --keep-guessing to continue cracking hashes even after they have been cracked.
...
It will be useful if there are multiple collisions and we want a specific one.
This one implements https://github.com/hashcat/hashcat/issues/493
8 years ago
jsteube
b8efae4281
Refactor all variables with HCBUFSIZ_LARGE size from stack to heap
8 years ago
jsteube
eb58b076da
Fix compiler warnings caused by -Wstack-usage=524288
8 years ago
jsteube
9f790d4dbd
Move u8 * instead of char * for most interface.c functions
8 years ago
jsteube
9e156321ef
Bring back mask length of mask as number to status screen
8 years ago
jsteube
f3fc5d96c4
Limit status_ctx access with a flag, easier to test
8 years ago
jsteube
df8a9ab5e5
Support mixed kernel thread count for mixed kernels in the same source file
...
Get rid of one global kernel_threads variable
Recognize reqd_work_group_size() values from OpenCL kernels and use them in host if possible
Fix some white spaces
Remove unused weak* kernels
Rename hashconfig_enforce_kernel_threads() to hashconfig_get_kernel_threads() - we do not enforce anymore
Rename hashconfig_enforce_kernel_loops() to hashconfig_get_kernel_loops() - we do not enforce anymore
Add some missing checks for --quiet
8 years ago
Etienne
f35f475b4f
Add --restore-file-path option
...
This option set the restore file path.
It's useful when we need all session files in specific directory.
Example:
hashcat -m 0 --session "Test" --potfile-path "/path/to/my/potfile.potfile"
--restore-file-path "/path/to/my/restore_file.restore" hashs.txt -a 3 ?a?a?a?a
Restore session with :
hashcat --sesion "Test" --restore --restore-file-path
"/path/to/my/restore_file.restore"
8 years ago
jsteube
39eed94703
Add option OPTS_TYPE_BINARY_HASHFILE for interface.c
8 years ago
jsteube
766a11356b
Fix some loop issue in --loopback
8 years ago
jsteube
636d953996
Move out all use of event_log_info() from library code to main.c or terminal.c
8 years ago
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
8 years ago
jsteube
97b58b16af
Fix some EOL handling
8 years ago
jsteube
97a33dc4ef
Sort events
8 years ago
jsteube
e1010ffba1
Prepare library user access to OpenCL device information without running an attack
8 years ago
jsteube
1c055a6311
Move event_log_info() out of hashes.c
8 years ago
jsteube
515107047b
Move event_log_info() out of wordlist.c
8 years ago
jsteube
bfdd0edbad
Move event_log_info() out of thread.c
8 years ago
jsteube
761e3f0d96
Move out words_cur from restore_ctx to status_ctx and let the dispatcher update it
8 years ago
jsteube
a460ab01b6
Bring back --username handling to --show and --left
8 years ago
jsteube
f5a92900c6
Rudimentary --show support is back
8 years ago
jsteube
f6334b5f90
Handling --show and --left need to be refactored, do not use those flags atm
8 years ago
jsteube
0fd48b228f
Get rid of all event_log_* calls in monitor.c and replace them with real events
8 years ago
jsteube
1f72aa95e6
Destinguish between EVENT_POTFILE_HASH_CRACKED and EVENT_CRACKER_HASH_CRACKED for prompt handling
8 years ago
jsteube
c3266e363a
Make status_display_machine_readable() use of hashcat_status_t
8 years ago
jsteube
89e3168280
Make status_display(), status_benchmark_automate() and status_benchmark() use of hashcat_status_t
8 years ago
jsteube
1d0810a759
Added status_get_hwmon_dev() to status.c
8 years ago
jsteube
2b28010aae
Added status_get_input_candidates_dev() to status.c
8 years ago
jsteube
8d81d3bd55
Added progress_mode to status.c
8 years ago
jsteube
86c1c7ef10
Added CPT functions for later use in status.c
8 years ago
jsteube
df521d664b
Move restore_* variables into separate functions for later use in status.c
8 years ago
jsteube
615d977b7c
Add new functions to hashcat_get_status()
8 years ago
jsteube
b044271b01
Move more status display calculate logic into separate functions
8 years ago
jsteube
2545ec6bf9
Prepare hashcat_get_status()
8 years ago
jsteube
694de36694
Print warnings in yellow and errors in red
8 years ago
jsteube
191269f4f0
Add --speed-only mode
8 years ago
jsteube
056083fdba
Revert "Prepare for hashcat_ctx_run_session()"
...
This reverts commit 0179097a53
.
8 years ago
jsteube
0179097a53
Prepare for hashcat_ctx_run_session()
8 years ago
jsteube
8de576f5e9
Make it possible to access error messages without using an event
8 years ago
jsteube
386efb7fb5
Make use of EVENT_CRACKER_HASH_CRACKED, do not print a cracked hash to stdout directly, let the client do it
8 years ago
jsteube
2a5545d2b7
Move logfile stuff back to hashcat.c, it's a core feature which should be handled by the library
8 years ago
jsteube
6d2c58d8df
Add main_potfile_remove_parse_post()
8 years ago
jsteube
27bec8be13
Get rid of logging.c and most exit() calls replaced with return() for true library usage
8 years ago
jsteube
42677df2a6
Start context-related logging with goal to get rid of logging.c
8 years ago
jsteube
f469694030
Add event_set_kernel_power_final()
8 years ago
jsteube
d993aa5ffa
Get rid of more log_info() in hashcat()
8 years ago
jsteube
27887bf9ce
Get rid of more log_info() in hashcat()
8 years ago
jsteube
81650dcc46
Initial proposal
8 years ago