mirror of
https://github.com/ufrisk/vmmyara.git
synced 2026-05-20 16:09:43 +08:00
master
vmmyara:
This is an API wrapper project that builds a vmmyara.dll/so that makes it easy to use the Yara API from within a C/C++ application. The main purpose of this project is to make it easy to use Yara from within the MemProcFS project.
Building Windows:
- git clone vmmyara:
git clone --recurse-submodules https://github.com/ufrisk/vmmyara - Open the YARA solution at: ./yara/windows/vs2019/yara.sln
- Upgrade to VS2022 and latest platform toolset when asked on first open.
- Build release x64 (or x86).
- On a successful build close the YARA solution.
- Open the vmmyara solution at: ./vmmyara.sln
- Build release x64 (or x86).
- On a successful build close the vmmyara solution.
- The resulting file vmmyara.dll will be in bin/x64/ (or bin/x86/).
Complete the above build flow once for each architecture. It's not possible to first build YARA for both 32-bit and 64-bit and then build vmmyara.
Building Linux:
- Install dependencies.
sudo apt-get install automake libtool make gcc pkg-config flex bison libssl-dev libtool-bin - git clone vmmyara:
git clone --recurse-submodules https://github.com/ufrisk/vmmyara - cd into the yara directory relative to the vmmyara root - i.e.
cd yara. ./bootstrap.sh./configure --with-crypto CFLAGS="-fPIC"make- cd into the vmmyara project directory relative to the vmmyara root, i.e.
cd vmmyara make- The resulting file vmmyara.so will be in the bin folder.
Building macOS:
- Install dependencies.
brew install openssl automake libtool pkg-config flex bison - git clone vmmyara:
git clone --recurse-submodules https://github.com/ufrisk/vmmyara - cd into the yara directory relative to the vmmyara root - i.e.
cd yara. ./bootstrap.sh./configure --with-crypto CFLAGS="-fPIC -mmacosx-version-min=11.0" LDFLAGS="-mmacosx-version-min=11.0"make- cd into the vmmyara project directory relative to the vmmyara root, i.e.
cd vmmyara - build using
make -f Makefile.macos(for dynamic openssl import) ormake -f Makefile.macos2(for static openssl include). - The resulting file vmmyara.dylib will be in the bin folder. Optionally code sign it.
Code Signing:
The Windows and Linux releases are unsigned. Reason for this is that I don't maintain the project and I don't sign other peoples code with my code signing certificate. It's really a shame that the YARA project don't provide official DLLs.
Description
Languages
C
95.2%
Makefile
4.8%