RustCrack v1.1.2 can crack the hashes of MD5, SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512 or generate simple wordlists. It can also use CUDA to parallelize the tasks. RustCrack is designed to be efficent, fast and reliable.
install all the dependencies:
part 1:
sudo apt update &&
sudo apt upgrade &&
sudo apt install git &&
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh &&
sudo apt install nvidia-driver-535 &&
sudo reboot
part 2:
sudo apt install cuda &&
echo 'export PATH=/usr/local/cuda/bin:$PATH' >> ~/.bashrc &&
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc &&
source ~/.bashrc
install RustCrack:
git clone https://github.com/H4k1l/RustCrack.git
cargo run -- -h
RustCrack v1.1.2 can crack the hashes of MD5, SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512 or generate simple wordlists. It can also use CUDA to parallelize the tasks. RustCrack is designed to be efficent, fast and reliable.
Usage: RustCrack [OPTIONS]
Options:
-c, --chars <CHARS> [default: !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~]
-m, --mnlenght <MNLENGHT> [default: 1]
-x, --mxlenght <MXLENGHT> [default: 10]
-o, --output <OUTPUTFILE>
--gen generate a wordlist
-a, --algo <ALGORITHM> the hash algorithm to use (md5/sha-1/sha-224/sha-256/sha-384/sha-512)
-w, --wordlist <WORDLIST> try to use a wordlist to brute the hash
-H, --hash <HASH>
--hashfile <HASHFILE>
-v, --verbose... use -vv to get a more verbose output
--crack crack a hash
-t, --mxcudathreads <MXCUDATHREADS> maximum usable of cuda threads in percentage [default: 100]
--gpu use CUDA to maximize the efficency for nvidia GPU's
--nofile don't check if the hash is already found, and don't save the hash result
--expand expands the wordlist with new possible password combinations(example: 'hello' -> 'h3ll0')
-h, --help Print help
For crack an hash using a pure brute-force alorithm, you can simply run this command:
cargo run -- --crack -H <HASH>
You can personalize the process with various flag:
cargo run -- --crack --hashfile <HASHFILE> -a <ALGORITHM> -c abcdefghijklmnopqrstuvwxyz
If you provide a wordlist file RustCrack will use it to brute the hash, with this method, the use of the flags: "-c", "-x" and "-m" is useless.
cargo run ----crack -H <HASH> -w <WORDLIST>
RustCrack provide the CUDA GPU kernels for all of his original algorithms, you can access them via the --gpu flag:
cargo run ----crack -H <HASH> --gpu
Verbose mode when using GPU kernels is very useful, as it provides information about the cracking process (e.g., memory usage in DRAM), you can enable it with the flag "-v":
cargo run -- --crack -H <HASH> --gpu -v
Since the algorithm of the wordlist generator is the same as that of pure brute force, the parameters are the same:
cargo run -- --gen -o <OUTPUTFILE> -c abcdefghijklmnopqrstuvwxyz -x 8 -m 3
By default RustCrack stores the cracked hashes in a file to avoid having to crack them again, this storage and control action is bypassable with the flag "--nofile":
cargo run -- --crack -H <HASH> --nofile
The author is not responsible for any damages, misuse or illegal activities resulting from the use of this code.
This project is distributed under license Apache 2.0.

