sha256_bf
所属分类:GPU/显卡
开发工具:Cuda
文件大小:8KB
下载次数:0
上传日期:2020-12-01 20:29:58
上 传 者:
sh-1993
说明: 使用cuda的sha256密码破解程序。
(A sha256 password cracker using cuda.)
文件列表:
Makefile (1147, 2020-12-02)
src (0, 2020-12-02)
src\main (0, 2020-12-02)
src\main\combinations.cpp (2093, 2020-12-02)
src\main\combinations.h (593, 2020-12-02)
src\main\sha256.cu (4251, 2020-12-02)
src\main\sha256.h (460, 2020-12-02)
src\main\sha256_bf.cu (2333, 2020-12-02)
src\main\utils.cu (891, 2020-12-02)
src\main\utils.h (231, 2020-12-02)
src\test (0, 2020-12-02)
src\test\combinations_test.h (566, 2020-12-02)
# Sha256
This is a Cuda program to crack Java Spring Security passwords created by the deprecated StandardPasswordEncoder class.
The digest made by that class generates a password with the following format:
```
salt + sha256_1024_iters(salt + clear_password)
```
The salt has a 8 bytes length.
The program uses bruteforce. It has an optimization when generating passwords that generate the passwords with a character repetition limit.
Java example of an encoded password using the above class:
```
import org.springframework.security.crypto.password.StandardPasswordEncoder;
public class Main {
public static void main(String[] args) {
StandardPasswordEncoder encoder = new StandardPasswordEncoder();
System.out.println(encoder.encode("hellowor"));
}
}
```
In the very first version it is able to check 1.9M Hk/s using a 1080 ti GPU. Note that the digest made by StandardPasswordEncoder it is not a simple sha256 digest but it does 1024 digest iterations.
# Usage
```
sha256_bf blocks threads charset passlen char_limit target
```
Where:
* blocks: number of cuda blocks.
* threads: number of cuda threads.
* charset: the set of chars to use.
* passlen: the len of passwords to generate.
* char_limit: maximum number of repetitons of the chars allowed in a passwords.
* target: the hex encoded string.
Example:
```
./bin/sha256_bf 1024 *** abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 8 2 e0df6922273d08b24ba4fa4ec2978bca41c937b133e77ec604b1c5c686554b3b824cb7196fbcd0d7
```
# Build
make
# Run tests
make run_tests
近期下载者:
相关文件:
收藏者: