glv2 / bruteforce-luks

Try to find the password of a LUKS encrypted volume.
GNU General Public License v3.0
244 stars 34 forks source link

Bruteforce luks :is not a valid LUKS volume, or you don't have permission to access it. #37

Open Dr-AkA opened 11 months ago

Dr-AkA commented 11 months ago

greetings, I tried to decrypt my luks2 hard drive, I came across this issue, I ran bruteforce-luks as root, still getting this error, I cloned the drive used the header but still the same issue, can any one help?

sudo bruteforce-luks -t 4 -f '/media/aka/Courses/img/password.txt' -v 30 '/media/aka/Courses/img/LUKS.001'

srulikuk commented 9 months ago

luks2 has protections against bruteforce hence you get that error. I have not found an alternative that can bruteforce luks2 yet.

glv2 commented 9 months ago

Trying to decrypt a luks2 volume should work, unless the program was compiled with an older version of libcryptsetup only supporting luks1.

srulikuk commented 9 months ago

@glv2 I built using the instructions and it did not recognise the luks2 header, do i have to specify anywhere the version of libcryptsetup to use?

glv2 commented 9 months ago

If your system has cryptsetup >= 2.0.0, luks2 support should work.

You could try compiling the latest code from github and then do make check. If all the tests pass, it means that luks2 support is working, and that your problem might come from the luks header you are using.