Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I've been reading the documentation and another one documentation2, but I am still find it is hard to implement a code that scans a file with exisiting yara rule in C++. The documentation doesn't show any good example of it.

What I have tried:

I was looking for example through the internet, and I found one (click to see what I found), but unfortunately it was even harder to understand than the documentation. In most explanation videos I saw people use it in Linux, while the willing is to see a simple example that working on windows 10 using C++ in Visual Studio environment, it will help a lot!

If something needs to be more clear, you can write and I will do my best to explain my self better. Thank you very much beforehand.
Posted
Updated 11-Oct-20 4:22am
Comments
[no name] 11-Oct-20 10:31am    
Most of the examples are in Python and C. You're in a minority with C++.

1 solution

Complete information on using this library in C/C++ are provided at The C API — yara 4.0.2 documentation[^]. If you have a specific issue with your code then you need to provide the code and the details of the problem.
 
Share this answer
 
Comments
Member 14961343 12-Oct-20 1:47am    
First of all, thank you for giving a comment about my question.
Second, I know about this link that you added in your comment, and I know that there are explanations over there about using yara rules in c++, but, the problem is that I have no idea how to start my code, how the structure of the code should be. Therefore, it will be helpful to see an example of that.
Richard MacCutchan 12-Oct-20 4:01am    
I am afraid you are in the wrong place. This is the Quick Answers forum which offers help with specific technical questions. If you do not understand the code examples on the yara website there is not much that we can offer here.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900