1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-08 16:40:57 +00:00
Go to file
jsteube dad03e394d Fixed two major problems
1) SIMD code for all attack-mode

Macro vector_accessible() was not refactored and missing completely.
Had to rename variables rules_cnt, combs_cnt and bfs_cnt into il_cnt which was a good thing anyway as with new SIMD code they all act in the same way.

2) SIMD code for attack-mode 0

With new SIMD code, apply_rules_vect() has to return u32 not u32x.
This has massive impact on all *_a0 kernels.

I've rewritten most of them. Deep testing using test.sh is still required.

Some kernel need more fixes:

- Some are kind of completely incompatible like m10400 but they still use old check_* includes, we should get rid of them as they are no longer neccessary as we have simd.c
- Some have a chance but require additional effort like m11500. We can use commented out "#define NEW_SIMD_CODE" to find them

This change can have negative impact on -a0 performance for device that require vectorization. That is mostly CPU devices. New GPU's are all scalar, so they wont get hurt by this.
This change also proofes that there's no way to efficiently vectorize kernel rules with new SIMD code, but it enables the addition of the rule functions like @ that we were missing for some long time. This is a TODO.
2016-02-27 17:18:54 +01:00
charsets Initial commit 2015-12-04 15:47:52 +01:00
docs Allow and support vector-width 16, which is current maximum for 2016-02-18 08:51:45 +01:00
extra/tab_completion Allow and support vector-width 16, which is current maximum for 2016-02-18 08:51:45 +01:00
include Evil Bug: Because of not-zeroing a buffer it's possible a hash was cracked but not reported as cracked because it was not in scope, but when it was in scope it was already marked as cracked and therefore not reported 2016-02-23 10:36:43 +01:00
masks Initial commit 2015-12-04 15:47:52 +01:00
obj Initial commit 2015-12-04 15:47:52 +01:00
OpenCL Fixed two major problems 2016-02-27 17:18:54 +01:00
rules Update unix-ninja's leetspeak file 2016-01-07 16:35:14 -05:00
src this fixes the beta issue #163 (-d and --opencl-platforms not within valid range) 2016-02-24 19:50:05 +01:00
tools Prepare NEW_SIMD_MODE for -a 1 kernels 2016-02-20 16:13:06 +01:00
.editorconfig Add an .editorconfig file enforcing some of the code style. See 2015-12-10 17:11:36 +01:00
.gitignore Added support for build without ADL/NVML/NVAPI (issue #120) 2016-01-20 20:55:09 +01:00
example0.cmd More cleanup 2015-12-15 13:23:32 +01:00
example0.hash Initial commit 2015-12-04 15:47:52 +01:00
example0.sh the example*.sh files should now also use the native binary, only when we use the packaging we need to use .bin 2016-01-03 18:34:38 +01:00
example400.cmd More cleanup 2015-12-15 13:23:32 +01:00
example400.hash Initial commit 2015-12-04 15:47:52 +01:00
example400.sh the example*.sh files should now also use the native binary, only when we use the packaging we need to use .bin 2016-01-03 18:34:38 +01:00
example500.cmd More cleanup 2015-12-15 13:23:32 +01:00
example500.hash Initial commit 2015-12-04 15:47:52 +01:00
example500.sh the example*.sh files should now also use the native binary, only when we use the packaging we need to use .bin 2016-01-03 18:34:38 +01:00
example.dict Initial commit 2015-12-04 15:47:52 +01:00
hashcat_tuning.hctab Add another example of an old budget GPU that benefits from higher vector width than returned by preferred 2016-02-23 20:53:55 +01:00
hashcat.hcstat Initial commit 2015-12-04 15:47:52 +01:00
Makefile Initial commit 2015-12-04 15:47:52 +01:00
README.md Update README.md 2015-12-06 16:42:19 +01:00

oclHashcat

oclHashcat is the world's fastest and most advanced GPGPU-based password recovery utility, supporting five unique modes of attack for over 170 highly-optimized hashing algorithms. oclHashcat currently supports AMD (OpenCL) and Nvidia (CUDA) graphics processors on GNU/Linux and Windows 7/8/10, and has facilities to help enable distributed password cracking.

License

oclHashcat is licensed under the MIT license. Refer to docs/license.txt for more information.

Installation

Download the latest release and unpack it in the desired location. Please remember to use 7z x when unpacking the archive from the command line to ensure full file paths remain intact.

Usage/Help

Please refer to the Hashcat Wiki and the output of --help for usage information and general help. A list of frequently asked questions may also be found here. The Hashcat Forums also contain a plethora of information.

Building

Refer to docs/BUILD.md for instructions on how to build oclHashcat from source.

Contributing

Contributions are welcome and encouraged, provided your code is of sufficient quality. Before submitting a pull request, please ensure your code adheres to the following requirements:

  1. Licensed under MIT license, or dedicated to public domain (BSD, GPL, etc. code is incompatible)
  2. Adheres to either C89, C90, or C99 standards
  3. Compiles cleanly with no warnings when compiled with -W -Wall -std=c99
  4. Uses Allman-style code blocks & indentation
  5. Uses 2-spaces as indentation or a tab if it's required (for example: Makefiles)
  6. Uses lower-case function and variable names
  7. Avoids the use of ! and uses positive conditionals wherever possible (e.g., if (foo == 0) instead of if (!foo), and if (foo) instead of if (foo !=0))
  8. Use code like array[index + 0] if you also need to do array[index + 1], to keep it aligned

You can use GNU Indent to help assist you with the style requirements:

indent -st -bad -bap -sc -bl -bli0 -ncdw -nce -cli0 -cbi0 -pcs -cs -npsl -bs -nbc -bls -blf -lp -i2 -ts2 -nut -l1024 -nbbo -fca -lc1024 -fc1

Your pull request should fully describe the functionality you are adding/removing or the problem you are solving. Regardless of whether your patch modifies one line or one thousand lines, you must describe what has prompted and/or motivated the change.

Solve only one problem in each pull request. If you're fixing a bug and adding a new feature, you need to make two separate pull requests. If you're fixing three bugs, you need to make three separate pull requests. If you're adding four new features, you need to make four separate pull requests. So on, and so forth.

If your patch fixes a bug, please be sure there is an issue open for the bug before submitting a pull request. If your patch aims to improve performance or optimizes an algorithm, be sure to quantify your optimizations and document the trade-offs, and back up your claims with benchmarks and metrics.

In order to maintain the quality and integrity of the oclHashcat source tree, all pull requests must be reviewed and signed off by at least two board members before being merged. The project lead has the ultimate authority in deciding whether to accept or reject a pull request. Do not be discouraged if your pull request is rejected!

Happy Cracking!