gocrack icon indicating copy to clipboard operation
gocrack copied to clipboard

Source 'make build' fails

Open Pir00t opened this issue 5 years ago • 4 comments

Hello,

Trying to build from source on Ubuntu 18.04 with Hashcat 5.1.0 but getting the following error:

github.com/fireeye/gocat

In file included from /usr/local/include/hashcat/types.h:28:0, from ./wrapper.h:5, from ../gocat/gocat.go:9: /usr/local/include/hashcat/ext_lzma.h:8:10: fatal error: LzmaDec.h: No such file or directory #include <LzmaDec.h>

compilation terminated. Makefile:14: recipe for target 'build' failed make: *** [build] Error 2

So far I've built Hashcat in Shared mode and confirmed it works with my GPUs.

Any help would be greatly appreciated.

Pir00t avatar Aug 23 '19 10:08 Pir00t

Not all the needed headers are currently pulled out with the Hashcat install process. After having similar problem, copying various header files from the Hashcat source directory to the includes path solved my problem.

cp deps/LZMA-SDK/C/LzmaDec.h /usr/local/include/hashcat/
cp deps/LZMA-SDK/C/7zTypes.h /usr/local/include/hashcat/
cp deps/LZMA-SDK/C/Lzma2Dec.h /usr/local/include/hashcat/
cp -r ./OpenCL/inc_types.h /usr/local/include/hashcat/
cp -r ./deps/zlib/contrib /usr/local/include/hashcat

kulinacs avatar Oct 30 '19 20:10 kulinacs

Thanks for the reply @kulinacs.

This seems to have bypassed the errors I was getting previous. Now I'm hit with another build error:

# github.com/fireeye/gocat /usr/bin/ld: cannot find -lhashcat collect2: error ld returned 1 exit status

Pir00t avatar Nov 13 '19 11:11 Pir00t

Think this may be fixed - pending some testing. Had to edit the Hashcat Makefile as it was appending the version to libhashcat.so

Pir00t avatar Nov 13 '19 14:11 Pir00t

Now failing on this file: https://github.com/fireeye/gocrack/blob/master/server/storage/bdb/user.go

multiple-value uuid.NewV4().String() in single-value context

Same issue for ldap.go and importer.go

Suggestions welcome

Pir00t avatar Nov 13 '19 16:11 Pir00t