glv2 / bruteforce-luks

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

Recommend Live Linux distro #3

Closed Jacketbg closed 8 years ago

Jacketbg commented 8 years ago

Can you recommend a live distro that will compile bruteforce-luks without issues? I'm trying with CentOS 7, but even if I install gcc, automake and autoconf, I'm getting stuck on ./configure:

checking for crypt_activate_by_passphrase in -lcryptsetup... no
configure: error: cryptsetup library required

cryptsetup is installed:

Package cryptsetup-luks-libs-1.2.0-11.el6.x86_64 already installed and latest version

Thanks!

glv2 commented 8 years ago

Have you installed the development files for cryptsetup? On CentOS they should be in the cryptsetup-luks-devel package.

Jacketbg commented 8 years ago

Thanks! That got me a bit further, but I'm not getting an error from make:

In file included from src/bruteforce-luks.c:22:
/usr/include/libcryptsetup.h:95: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:164: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libcryptsetup.h:190: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:256: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:273: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:298: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:300: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:329: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:331: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:348: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:350: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:409: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:428: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:448: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:475: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:477: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:490: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libcryptsetup.h:591: error: expected declaration specifiers or ‘...’ before ‘size_t’
src/bruteforce-luks.c: In function ‘decryption_func_bruteforce’:
src/bruteforce-luks.c:137: error: too many arguments to function ‘crypt_activate_by_passphrase’
src/bruteforce-luks.c: In function ‘decryption_func_dictionary’:
src/bruteforce-luks.c:263: error: too many arguments to function ‘crypt_activate_by_passphrase’
make: *** [src/bruteforce-luks.o] Error 1

Here's the info from yum for cryptsetup-luks-devel:

Installed Packages
Name        : cryptsetup-luks-devel
Arch        : x86_64
Version     : 1.2.0
Release     : 11.el6
Size        : 19 k
Repo        : installed
From repo   : base
Jacketbg commented 8 years ago

Don't bother, turned out that the box I was compiling on was CentOS 6.4. All is fine on 7.1. Thank you for the help!