bruteforce-luks icon indicating copy to clipboard operation
bruteforce-luks copied to clipboard

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

Open Dr-AkA opened this issue 2 years ago • 4 comments

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'

Dr-AkA avatar Dec 01 '23 14:12 Dr-AkA

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

srulikuk avatar Feb 06 '24 23:02 srulikuk

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

glv2 avatar Feb 20 '24 13:02 glv2

@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?

srulikuk avatar Feb 20 '24 16:02 srulikuk

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.

glv2 avatar Feb 20 '24 20:02 glv2