Coder Social home page Coder Social logo

Comments (13)

admiralbenbou avatar admiralbenbou commented on May 29, 2024 1

Hello. Sure, office.txt
var stopwatch = new Stopwatch(); stopwatch.Start(); try{ List<ScanResult> scanResults = QuickScan.Memory(buffer, rulesPath, ScanFlags.Fast ); stopwatch.Stop(); if (scanResults.Any()) return true; return false; }

from libyara.net.

shaheeraliwrg avatar shaheeraliwrg commented on May 29, 2024 1

Thanks for sharing this, it's really helpful @admiralbenbou

from libyara.net.

swannman avatar swannman commented on May 29, 2024

@admiralbenbou could you please share sample code and a Yara rule that demonstrates this issue? Thanks!

from libyara.net.

admiralbenbou avatar admiralbenbou commented on May 29, 2024

may be important. this method is used in a multi-threaded application - a transport agent for exchange. and an exception does not occur immediately - only after processing several emails (several method calls)

from libyara.net.

shaheeraliwrg avatar shaheeraliwrg commented on May 29, 2024

@swannman I'm experiencing the same issue, is there any update?

from libyara.net.

admiralbenbou avatar admiralbenbou commented on May 29, 2024

@swannman I'm experiencing the same issue, is there any update?

i asked my colleagues - c developers to make for me fixed version and i use it now https://github.com/k-sec-tools/ExchangeFilter/tree/main/libyaranet. but our version is few commits behind the official repo

from libyara.net.

shaheeraliwrg avatar shaheeraliwrg commented on May 29, 2024

@admiralbenbou That's fantastic! Could you tell me which version of Yara was used? Current version is 4.1.3 please check this link for reference.

from libyara.net.

admiralbenbou avatar admiralbenbou commented on May 29, 2024

@shaheeraliwrg not sure, it was 3.8.0 or 3.8.1. Be careful cause in yarav4.* API has been changed

from libyara.net.

swannman avatar swannman commented on May 29, 2024

@admiralbenbou would you be open to creating a pull request so we can merge your changes into this repro?

from libyara.net.

admiralbenbou avatar admiralbenbou commented on May 29, 2024

@swannman dont think it will make sense. my colleagues just fixed libyara v3.7.x code(bcause the main bug was in this librara) and rebuilt libyaraNET with it. and because libyara v3 is not actual version, i dont think we have to pull this changes to main libyara repo

from libyara.net.

shaheeraliwrg avatar shaheeraliwrg commented on May 29, 2024

@swannman How can we upgrade libyara.net's YARA version? Does there exist any documentation or guideline to do this? I would like to upgrade the YARA version to the latest, as it may solve the issues listed above. Can you please help me upgrade the version?

from libyara.net.

swannman avatar swannman commented on May 29, 2024

@shaheeraliwrg libyara.NET ships with YARA 4.0.2 today. We consume YARA from this nuget which we build from the vcpkg project here.

It looks like the latest version of YARA in vcpkg is 4.1.1. Is there a fix between 4.0.2 and 4.1.1 for the issue that you were seeing?

from libyara.net.

shaheeraliwrg avatar shaheeraliwrg commented on May 29, 2024

@swannman I'm not sure if this issue has been fixed in the latest Yara version. But if possible we should go with the latest version (there are tons of fixes in the latest version). I tried upgrading the libyara.Net with the latest yara version, but I wasn't able to finish due to the lack of documentation.

from libyara.net.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.