Debian Codegraph @

README

raw
1 bruteforce-luks
2 ===============
3
4 The purpose of this program is to try to find the password of a LUKS
5 encrypted volume.
6
7 It can be used in two ways:
8
9 - try all the possible passwords given a charset
10 - try all the passwords in a file
11
12 There is a command line option to specify the number of threads to use.
13
14 Sending a USR1 signal to a running bruteforce-luks process makes it print
15 progress and continue.
16
17
18 ## Exhaustive mode
19
20 The program tries to decrypt at least one of the key slots by trying
21 all the possible passwords. It is especially useful if you know
22 something about the password (i.e. you forgot a part of your password but still
23 remember most of it). Finding the password of a volume without knowing
24 anything about it would take way too much time (unless the password is really
25 short and/or weak).
26
27 There are command line options to specify:
28
29 - the minimum password length to try
30 - the maximum password length to try
31 - the beginning of the password
32 - the end of the password
33 - the character set to use (among the characters of the current locale)
34
35
36 ## Dictionary mode
37
38 The program tries to decrypt at least one of the key slots by trying all the
39 passwords contained in a file. The file must have one password per line.
40
41
42 ## Dependencies
43
44 The program requires the cryptsetup library.
45
46
47 ## Compilation
48
49 Install the dependencies. For example on a GNU/Linux Debian-like system, enter
50 the commands:
51
52 sudo apt install dh-autoreconf
53 sudo apt install libcryptsetup-dev
54
55 For Fedora, enter the commands:
56
57 sudo dnf install dh-autoreconf
58 sudo dnf install cryptsetup-devel
59
60 If you are building from the raw sources, you must first generate the
61 configuration script:
62
63 ./autogen.sh
64
65
66 Then, build the program with the commands:
67
68 ./configure
69 make
70
71
72 To install it on your system, use the command:
73
74 make install
75
76
77 ## Examples
78
79 Try to find the password of a LUKS encrypted volume using 4 threads, trying
80 only passwords with 5 characters:
81
82 bruteforce-luks -t 4 -l 5 -m 5 /dev/sdb1
83
84
85 Try to find the password of a LUKS encrypted volume using 8 threads, trying
86 only passwords with 5 to 10 characters beginning with "W4l" and ending with "z":
87
88 bruteforce-luks -t 8 -l 5 -m 10 -b "W4l" -e "z" /dev/sda2
89
90
91 Try to find the password of a LUKS encrypted volume using 8 threads, trying
92 only passwords with 10 characters using the character set "P情8ŭ":
93
94 bruteforce-luks -t 8 -l 10 -m 10 -s "P情8ŭ" /dev/sdc3
95
96
97 Try to find the password of a LUKS encrypted volume using 6 threads, trying
98 the passwords contained in a dictionary file:
99
100 bruteforce-luks -t 6 -f dictionary.txt /dev/sdd1
101
102
103 Instead of passing a block device to the program, you can copy the beginning
104 of the LUKS volume to a file and pass this file to the program:
105
106 sudo dd if=/dev/sda1 of=/tmp/luks-header bs=1M count=10
107 bruteforce-luks -t 4 -l 5 -m 5 /tmp/luks-header
108
109
110 Print progress info:
111
112 pkill -USR1 -f bruteforce-luks
113
114
115 Print progress info every 30 seconds:
116
117 bruteforce-luks -t 6 -f dictionary.txt -v 30 /dev/sdd1
118
119
120 Save/restore state between sessions:
121
122 bruteforce-luks -t 6 -f dictionary.txt -w state.txt /dev/sdd1
123 (Let the program run for a few minutes and stop it)
124 bruteforce-luks -t 6 -w state.txt /dev/sdd1