-
Notifications
You must be signed in to change notification settings - Fork 7
/
sha256crack.1
89 lines (89 loc) · 1.88 KB
/
sha256crack.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.Dd 11/28/10
.Dt sha256crack 1
.Os Darwin
.Sh NAME
.Nm sha256crack
.Nd crack passwords hashed with SHA-256 using OpenCL.
.Sh SYNOPSIS
.Nm
.Op Fl h | -help
.Op options
.Op Ar hash
.Sh DESCRIPTION
.Nm
cracks passwords hashed with the SHA-256 algorithm via
brute force hash calculation.
It calculates hashes for all possible strings in a given range of length
composed of characters in a given character set.
.Pp
Depending on options passed,
.Nm
may run on the host CPU or an OpenCL device, such as the GPU.
.Sh OPTIONS
.Bl -tag -width -indent
.It Fl h, -help
Output a brief help message.
.It Fl H, -host
Run without OpenCL, use the host CPU to perform the calculation.
.It Fl C, -cpu
Run with OpenCL, use the CPU device.
.It Fl G, -gpu
Run with OpenCL, use the GPU device.
.It Fl d Ar DEV , Fl -device Ar DEV
Run with OpenCL, use device specified by
.Ar DEV .
Permissible devices include:
.Bl -tag -width -indent
.It 0
no device, equivalent to
.Fl -host
.It 1
CPU
.It 2
GPU (default)
.It 4
Accelerator
.El
.It Fl i Ar MIN , Fl -min-length Ar MIN
Set minimum password length to
.Ar MIN .
Defaults to 3.
.It Fl a Ar MAX , Fl -max-length Ar MAX
Set maximum password length to
.Ar MAX .
Defaults to 5.
.It Fl c Ar SET , Fl -charset Ar SET
Set the password character set to
.Ar SET .
The default set is composed of small letters of the English alphabet.
.It Fl k Ar S , Fl -chunk-size Ar S
Set the OpenCL chunk size to
.Ar S .
Defaults to 1000000.
Passing 0 as the chunk size will prevent
.Nm
from splitting the calculation into chunks.
.It Fl s, -silent
Do not print verbose information.
This will cause
.Nm
to only output the password, if a match is found.
If no match is found,
.Nm
will produce no output.
.Pp
.It Ar hash
The hash to crack.
If no
.Ar hash
is specified,
.Nm
will use the hash for the "hello" password.
.El
.Pp
.\" .Sh ENVIRONMENT
.\" .Sh FILES
.\" .Sh DIAGNOSTICS
.\" .Sh SEE ALSO
.\" .Sh BUGS
.\" .Sh HISTORY