Comments (6)
From [email protected] on January 13, 2011 09:47:56
I think i'm understanding what you're asking for, but could you give an example of something that you would like to express using this feature. I don't find any situation that can't be expressed with "$string at expression" or "$string in (expression..expresson)"
Labels: -Type-Defect Type-Enhancement
from yara.
From [email protected] on January 13, 2011 10:03:07
I found a situation where the proposed feature would be more natural than the current solution. For example if you want to guarantee that every occurrence of some string is inside a given offset range you could say:
for all ocurrence of $string: (@ > expression1 and @ < expression2)
That should be expressed now as:
not $string in (0..expression1) and not $string in (expression2..filesize)
It works, but is not very readable.
from yara.
From [email protected] on January 13, 2011 10:52:47
Thanks for the feedback. Here is an example of what I am trying to express:
rule example
{
strings:
$guid = { ... } // 16 bytes
condition:
for any of ($guid) : (int32(@ + 16 + x) < 0) // x being some constant/offset
}
I would like the expression to be evaluated for each occurrence of $guid and have the rule fire if expression is true for any occurrence in the "for any of" case.
from yara.
From [email protected] on January 13, 2011 11:04:05
Interesting, i didn't though about intXX(). People end up using yara in very creative ways :)
Well, it makes sense, so i'll try to included in next release.
from yara.
From [email protected] on January 13, 2011 11:15:05
Great! Thank you!
If it would be easier to point me in the right direction, I'd be more than happy to take a crack at it.
Cheers.
from yara.
From [email protected] on March 22, 2011 07:17:27
Feature added in version 1.5
Status: Fixed
from yara.
Related Issues (20)
- Support chi2 algorithm in math library
- GUID mismatch in dotnet module
- Using YARA scanning process in a container led to OOM due to the generation of a large amount of cache. HOT 1
- Windows Defender detects YARA as Malware!! HOT 1
- Assert thrown for PE module in debug
- False negative with certain hex patterns
- Problem while using scanner with libyara in C++ HOT 2
- Add libyara.lib in the windows builds of the ci
- ERROR_TOO_MANY_SCAN_THREADS HOT 1
- Alignment in 32-bits. Again
- Add Support for Scanning Windows 64-bit process from 32-bit Processes in YARA HOT 3
- Ruby yara-ffi and virustotal yara release 4.5.0 HOT 1
- Build fails for Ubuntu 22.04 HOT 5
- NULL pointer dereference in libyara/re.c
- Test failure on OpenBSD - tests/test-pe.c:390: rule does not match contents HOT 4
- Crash with deeply nested directory hierarchies HOT 5
- Mingw fail to find jansson HOT 4
- add lookaround forward/backward to regular expression. HOT 1
- Excluding the feature of scanning folders HOT 1
- Fast Scan mode not working as intended when using `x of them` conditions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yara.