gocrack
gocrack copied to clipboard
Source 'make build' fails
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.
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
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
Think this may be fixed - pending some testing. Had to edit the Hashcat Makefile as it was appending the version to libhashcat.so
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