Commit Graph

669 Commits (bf0ffa66d73181a3286178b380f7fa6ffc14887c)

Author SHA1 Message Date
Gabriele Gristina c19404833e removed other comments
5 years ago
Gabriele Gristina 5d3ed3e754 Remove union from HCFILE, using std file ops in ocl_check_dri, remove debug comments
5 years ago
Gabriele Gristina c2e634c426 switch is_gzip from short to bool
5 years ago
Gabriele Gristina 398c89c75c switch almost all FILE ops, potfile is the only missing
5 years ago
Gabriele Gristina b2529af172 remove original commented code
5 years ago
Gabriele Gristina 6cb4abd526 Add zlib support v2
5 years ago
Jens Steube 3c4cb5c0f8
Merge pull request #2061 from f0cker/brain_all
5 years ago
f0cker 3bb68e7981 Added brain status (tx/rx) for all devices
5 years ago
Jens Steube 44ecc83d82 Do some CUDA and NVRTC version checks on startup
5 years ago
Jens Steube 034987fa51
Merge pull request #2035 from s3inlc/pkzip-fix-2
5 years ago
Jens Steube f1632b933e Add support to configure hash-mode specific range of number of hashes supported
5 years ago
Sein Coray 301b5b9777
added parser message for pkzip hashes which have unsupported compression type for kernel
5 years ago
Jens Steube d378aa7ab9 Show host memory requirement on startup
5 years ago
Jens Steube ec9925f3b1 Warnings self-check and autotune with CUDA
5 years ago
Jens Steube 4df00033d7 Prepare CUDA events
5 years ago
Jens Steube 5ee033673c Disable name mangling in NVRTC's PTX output and more
5 years ago
Jens Steube 503304f36a Add some first CUDA device memory allocations and host buffer copies
5 years ago
Jens Steube 50a6e720ca More OpenCL variables rename
5 years ago
Jens Steube af8e317cf4 Begin renaming some OpenCL only variables
5 years ago
Jens Steube a6fa7a2749 Add support for some first CUDA module loader
5 years ago
Jens Steube 456c57a6d0 Set vector width size for CUDA
5 years ago
Jens Steube 3c4f4df771 Rename some more variables
5 years ago
Jens Steube 495d89f831 Find alias devices across different backend API's
5 years ago
Jens Steube 6fd936b43a Removed --opencl-platforms filter in order to force backend device numbers to stay constant
5 years ago
Jens Steube e3500ff4aa Add CUDA device attributes to -I
5 years ago
Jens Steube d862458ab5 Begin renaming API specific variables in backend section
5 years ago
Jens Steube d73c0ac8a9 More CUDA attribute queries
5 years ago
Jens Steube a415422123 Initialize CUDA devices and some first attribute queries
5 years ago
Jens Steube 06171958ee Add --gpu-architecture to NVRTC build options
5 years ago
Jens Steube 4045e60021 Add nvrtc wrapper for later use
5 years ago
Jens Steube 4b986de5fb Prepare native CUDA hybrid integration
5 years ago
jsteube 92f4ccce93 Increase buffer size for --example-hashes output
5 years ago
jsteube 28437b0ab0 Add NV inline assembly instruction set check on startup
5 years ago
Jens Steube cf8c815caf
Merge pull request #1975 from Chick3nman/master
5 years ago
jsteube b8d609ba16 WPA/WPA2 cracking: In the potfile, replace password with PMK in order to detect already cracked networks across all WPA modes
5 years ago
jsteube c0a31b3239 Prepare potfile specific module_hash_decode and module_hash_encode hooks
5 years ago
jsteube d80603648e Replace plain_t with void in module_build_plain_postprocess() enables some options
5 years ago
Chick3nman f434809921 More Prep
5 years ago
Chick3nman 20aa7da205 Fixed typo
5 years ago
Chick3nman 2358220cbe Prepare for --status_json
5 years ago
jsteube 891a5beef8 Do not use uint if not needed
5 years ago
jsteube 0a8c7fab1c Do not use ulong. It causes the 32 bit compilation to fail
5 years ago
jsteube fb8a9d7c40 Get rid of cpu_sha1.c
5 years ago
jsteube 7d4bea41a0 Get rid of OpenCL/inc_hash_constants.h and OpenCL/inc_hash_functions.cl
5 years ago
jsteube 5ef67a8ab7 Apply previous blowfish optimization for -m 3200 also on -m 9000 and -m 18600
5 years ago
jsteube 42e440611a Fix some broken strict-aliasing rules
5 years ago
jsteube 218322f630 Support for inline VeraCrypt PIM Brute-Force
5 years ago
jsteube 111889d3fc Keep Guessing: No longer automatically activate --keep-guessing for modes 9720, 9820, 14900 and 18100
5 years ago
jsteube 1537fc4e5d Improve handling of temporary skipped devices (due to JiT build failure or unstable_warning)
5 years ago
jsteube c43ef406a9 Make sure not to abort entire benchmark if a mode was marked as unstable
5 years ago
jsteube 88a051629c Support module specific JiT compiler build options
5 years ago
jsteube 166f908241 Get rid of some old hack and cleanly distinguish between HL_MODE_FILE_PLAIN and HL_MODE_FILE_BINARY
5 years ago
jsteube 540b405e3a Replace IS_ROCM with HAS_VPERM and HAS_VADD3
5 years ago
jsteube 0096f1a56b Add generic_salt_encode so we have both function types
5 years ago
jsteube bab735b367 Get rid of hash_type variable. This hopefully reduces some confusion for new hashcat kernel developers
5 years ago
jsteube 75f7172cca Prepare remove of hash_type variable
5 years ago
jsteube 9b842e30ab Get rid of OPTI_TYPE_PRECOMPUTE_PERMUT
5 years ago
jsteube 62c660afe2 Add -m 14600 module
5 years ago
jsteube fc648c02f5 Add -m 2000 module
5 years ago
jsteube 78d2706038 Add -m 8900 module and module_extra_tmp_size()
5 years ago
jsteube 2bd55bca74 Add missing hook_salt buffer parameter to decoder/encoder function declaration
5 years ago
jsteube 4951816a30 Add module and unit test for hash-mode 7500
5 years ago
jsteube 4b9b59a3cb Add module 5500
5 years ago
jsteube b2154b7ed9 Fix use-after-free of hash_name
5 years ago
jsteube bc1dd699e3 Add -m 1500 module
5 years ago
jsteube 083d6e1fb2 Refresh dynloader management
5 years ago
jsteube 02fe28fe6c Preparation for -m 501
5 years ago
jsteube c3c665a338 Add -m 400 module
5 years ago
jsteube bc22bfee2e Some cleanup
5 years ago
jsteube 17bd76ee62 Use settings from selftest hash for benchmark unless overriden by module hooks
5 years ago
jsteube 74265307fe Automate module interface version management
5 years ago
jsteube 0ae955c5ba With this commit, all hash_mode depending branches from core files are converted into hooks which can be registered on a module level
5 years ago
jsteube 86819c070f Add module_hash_save_binary() and module_hash_init_selftest()
5 years ago
jsteube 54edd16746 Clean up some code
5 years ago
jsteube 0186f025d3 Add support for hash modules to usage.c
5 years ago
jsteube 4c133c4567 Prepare hash_category
5 years ago
jsteube bbcc8fea29 Use MODULE_DEFAULT in module_init to reference a global default function
5 years ago
jsteube 888da50aad Get rid of hash_mode depending branches in status.c
5 years ago
jsteube e0deb3f825 Add module_deep_comp_kernel()
5 years ago
jsteube 6cbb5e4992 Refactor kernel_accel, kernel_loops and kernel_threads management in combination with modules
5 years ago
jsteube 9190be8d44 Add forced_kernel_accel function
5 years ago
jsteube e17c3a54d8 Add hook for unstable_warning
5 years ago
jsteube 5633d6808f Move hash_mode specific code which enforce the use of the JiT compiler to modules
5 years ago
jsteube e537197184 Add module_build_plain_postprocess()
5 years ago
jsteube 0421cc6782 Add OPTS_TYPE_PT_ALWAYS_HEXIFY
6 years ago
jsteube cfc9772e0e Add module_hash_decode_zero_hash()
6 years ago
jsteube 3ad6fab63e Add module_potfile_disable()
6 years ago
jsteube da30151b70 Get rid of hash_mode in outfile_check.c
6 years ago
jsteube 6928e5bfbe Get rid of hash_mode in outfile_check.c
6 years ago
jsteube 4028bae578 Use dynloader.c instead of dlopen() directly
6 years ago
jsteube 7e1e1d34f8 Use real dlopen() to load the module
6 years ago
jsteube fa0b8e643d Fix pwdump column names
6 years ago
jsteube ac55386553 Get rid of hash_mode in selftest.c
6 years ago
jsteube ea22065b9c Get rid of hash_mode in user_options.c
6 years ago
jsteube e56c5035aa Get rid of hash_mode in wordlist.c
6 years ago
jsteube abbfc3d10b Get rid of hash_mode in hlfmt.c
6 years ago
jsteube 4993a85b27 Get rid of hash_mode in dictstat.c
6 years ago
jsteube 3c37daf94b Get rid of hash_mode in autotune.c
6 years ago
jsteube 074947c6db Get rid of hashconfig_get_kernel_threads() and hashconfig_get_kernel_loops()
6 years ago
jsteube af22a9d1d9 Remove hashconfig_forced_kernel_threads()
6 years ago
jsteube 6e794841e3 Add default_benchmark_esalt(), default_benchmark_hook_salt(), default_benchmark_salt()
6 years ago
jsteube e79fa9c22f Simplify use of default functions
6 years ago
jsteube ca169a890c Add more global default value functions
6 years ago
jsteube 1d8c31a7e2 Add more global default value functions
6 years ago
jsteube a4fb31e8f7 Add more global default value functions
6 years ago
jsteube 3848c73f80 Add decoder_apply_optimizer ()
6 years ago
Jens Steube bd37903131 Add hook_size, tmp_size, hook_salt_size
6 years ago
Jens Steube 3aecd150f9 Call module_hash_encode() in ascii_digest()
6 years ago
Jens Steube 222d76f01e Replace parse_func() with module_hash_decode()
6 years ago
Jens Steube 55add7c60e The goal of this branch to develop a plugin like interface for hashcat kernels.
6 years ago
Jens Steube 0b2ffec379 Fixed selection of OpenCL devices (-d) if there's more than 32 OpenCL devices installed
6 years ago
Jens Steube fca4f7e8a6 Prepare to use --keyboard-layout-mapping for algorithms other than TC/VC
6 years ago
Jens Steube e770449702 OpenCL Runtime: Use our own yielding technique for synchronizing rather than vendor specific
6 years ago
Jens Steube ae577410d0 OpenCL Device: Do a real query on OpenCL local memory type instead of just assuming it
6 years ago
Jens Steube 5d5ac1c935 Prepare for on-the-fly keyboard layout substituations required to crack booting TrueCrypt/VeraCrypt volumes
6 years ago
Jens Steube 06b39dc3d5 Startup: Show OpenCL runtime initialization message (per device)
6 years ago
Jens Steube a5818facf2 Brain: Set --brain-client-features default from 3 to 2
6 years ago
Jens Steube 2aff01b20e Hardware Monitor: Renamed --gpu-temp-abort to --hwmon-temp-abort
6 years ago
Jens Steube 2a366741a5 Added new option --kernel-threads to manually override the automatically calculated number of threads
6 years ago
Jens Steube 344ea5b36d Memory: Reduced default maximum bitmap size from 24 to 18 and give a notice to use --bitmap-max to restore
6 years ago
Jens Steube 83632a83e4 Memory: Limit maximum host memory to allocate depending on bitness
6 years ago
philsmd dbb81fb48e
fixes #1744: added --stdin-timeout-abort to allow a custom time (in seconds) to wait before abort (use 0 to disabled it)
6 years ago
Jens Steube d6fe2c7cd4 The hashcat brain
6 years ago
jsteube d96b649751 Add support for -a 1 in -S mode
6 years ago
Jens Steube a4ac370496 Test fix for plain_t in 32 bit mode
6 years ago
philsmd 73ed017daf
stdin: add read timeout checks (abort if no input for a long time)
6 years ago
R. Yushaev 5c87720acc Add SHA3 and Keccak
6 years ago
jsteube 52c52836e3 Add new option --slow-candidates which allows hashcat to generate passwords on-host
6 years ago
philsmd 0f449b6440
hcstat2: allow to use option --markov-hcstat2 instead of just --markov-hcstat
6 years ago
jsteube 067ffa9d64 Add more tracker for amplifier and iterations to status screen
6 years ago
jsteube 27db8ced7e Add a tracker for salts, amplifier and iterations to status screen
6 years ago
jsteube 6092308324 Add sempaphore macros for later use
6 years ago
jsteube e67195aa11 Try to evaluate available OpenCL device memory and use this information instead of total available OpenCL device memory for autotune
6 years ago
jsteube bdec457951 TrueCrypt/VeraCrypt cracking: Do an entropy check on the TC/VC header on start
6 years ago
jsteube c1ebfe486f Refactor --progress-only and --speed-only calculation
6 years ago
jsteube cc8fa3ee80 Remove TOKEN_ATTR_TERMINATE_STRING from input_tokenizer() and replace with equalivalent code where it's needed
6 years ago
jsteube 048298020e All remaining parser functions have been rewritten to make use of input_tokenizer():
6 years ago
jsteube 230ec5e004 Add TOKEN_ATTR_TERMINATE_STRING feature to input_tokenizer()
6 years ago
jsteube 82457d2904 Fixed a missing check for errors on OpenCL device leading to invalid removal of restore file
6 years ago
jsteube 384fe1ba15 Add support for multiple valid signatures in input_tokenizer()
6 years ago
jsteube 9196f1ba55 Added rounds_count_length() function to detect optional rounds=
6 years ago
jsteube f574cbc88a the following parser functions have been rewritten to make use of
6 years ago
jsteube 50824a24c6 Rewrite parse_and_store_salt from scratch and rename original to parse_and_store_salt_legacy() for migration phase
6 years ago
jsteube 5f83dd8620 Convert cisco4_parse_hash() to make use of input_tokenizer()
6 years ago
jsteube 2abe8caf24 Convert bcrypt_parse_hash() to make use of input_tokenizer()
6 years ago
jsteube 26dea37c9d TEST CODE: tokenizer function in order to simplify parsing functions
6 years ago
jsteube 547025ec47 HCCAPX management: Use advanced hints in message_pair stored by hcxtools about endian bitness of replay counter
6 years ago
jsteube 469fece141 OpenCL Kernels: Abort session if kernel self-test failed
6 years ago
Jens Steube 1361651730 Add OPTS_TYPE_PREFERED_THREAD marker
6 years ago
jsteube fe4413797e OpenCL Kernels: Use three separate comparison kernels (depending on keyver) for WPA instead of one
6 years ago
jsteube 91e522d094 Add special marker for speed only mode
6 years ago
jsteube c4f30220a0 OpenCL Kernels: Refactored kernel thread management from native to maximum per kernel
6 years ago
Jens Steube d38608b9bc Add get_kernel_preferred_wgs_multiple() for future use
6 years ago
Jens Steube 1f442b5b0c Add get_kernel_local_mem_size() for future use
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
Jens Steube 9b1e66d87c Fixed a race condition in combinator- and hybrid-mode where the same scratch buffer was used by multiple threads
6 years ago
jsteube 05a01d3843 fix some datatypes
6 years ago
jsteube a3a16f676f OpenCL Kernels: Add a decompressing kernel and a compressing host code in order to reduce PCIe transfer time
6 years ago
jsteube 11b18512c7 Terminal: Add workitem settings to status display (can be handy for debugging)
6 years ago
Jens Steube 7062425d2b OpenCL Kernels: Use a special kernel to initialize the password buffer used during autotune measurements to reduce startup time
6 years ago
jsteube 0796c074c3 Added -m 16500 Kernels
6 years ago
Gabriele Gristina 03fab4a345 Fix clock_gettime() on OSX (v2)
6 years ago
Jens Steube c41af948ba
Merge pull request #1471 from neheb/32to64
7 years ago
jsteube bbe9b723e1 Timer: Switch from gettimeofday() to clock_gettime() to workaround problems on cygwin
7 years ago
Rosen Penev 1c5915cae3 remove special time handling in hashcat.
7 years ago
jsteube 494c2724f5 Add some types for later use
7 years ago
jsteube ea795ef5ab Move out code to check for hashfile or hash on commandline into dedicated function
7 years ago
jsteube 1184ae1cdd Added option --benchmark-all to benchmark all hash-modes not just the default selection
7 years ago
jsteube b864fa5ba7 Removed option --gpu-temp-retain that tried to retain GPU temperature at X degrees celsius, please use driver specific tools
7 years ago
Rosen Penev 353d3c3008 Fix a bunch of cast-qual warnings
7 years ago
Rosen Penev 8458f07a57 Replace char[] with *char
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
7 years ago
jsteube fbea72ebd6 Renamed default kernels to optimized kernels
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
7 years ago
jsteube f7a8e7c54b Multiple changes:
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:
7 years ago
jsteube 94a35ae50a Add support for hooks in selftest function
7 years ago