-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling for PE and IMPHASH - Openssl #11
Comments
On Windows, getting rid of |
Hello, I met the same problem.When I built on Ubuntu 20.04, I got the errors like followings. I also followed the instructions to use ./configure --without-crypto. Could you give me some advice to fix this problem? Thanks in advance. |
@Jacob-Dong I cannot tell you anything other than to remove the |
Thank you for your reply.I have fixed this problem.The reason why I got this error is that I didn't get the envionment variables right. |
Linux Build (Debian 9, Debian 10 and Ubuntu 20.04)
When following the instructions to use ./configure --without-crypto
Result = Not being able to use rules with HASH and/or IMPHASH.
I have sucessfully compiled yara with cryto enabled but when i try to compile kraken, I get multiple errors, which i belive are associated with linking to openssl libraries:
/usr/bin/ld: /usr/local/lib/libyara.a(pe.o): in function
imphash': pe.c:(.text+0x11ee): undefined reference to
MD5_Init'Is there a way to resolve this, so i can use PE and IMHASH yara rules?
NOTE: I'm also using yara 4.0.1. When I use the same signatures on my MacOS (using the instructions you provided), it builds successfully and I can use rules with HASH and IMPHASH.
When I follow the instructions you provided but use rules with PE and IMPASH I get this when I try to compile using:
BACKEND=test.com RULES=signature-base/yara/ make linux
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4b2b42]
goroutine 1 [running]:
github.com/hillu/go-yara/v4.(*Rules).Save.func2(0x0, 0xf368c0, 0xf368c0)
/root/go/pkg/mod/github.com/hillu/go-yara/[email protected]/rules.go:184 +0x22
github.com/hillu/go-yara/v4.(*Rules).Save(0x0, 0x4e234d, 0x5, 0x0, 0x0)
/root/go/pkg/mod/github.com/hillu/go-yara/[email protected]/rules.go:184 +0x8c
main.main()
/root/kraken/compiler/main.go:78 +0x16f
make: *** [Makefile:38: rules-compiler] Error 2
It might also be that the linux build does not include hash as a module during "make", whilst in the other builds (MacOS and Windows), hash is made as a module.
Any help you can provide to help me get this working on Linux would be greatly appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered: