matonis / yara_tools Goto Github PK
View Code? Open in Web Editor NEWCreate an entire YARA rule via Python? Whhhhhhaatttt?
License: MIT License
Create an entire YARA rule via Python? Whhhhhhaatttt?
License: MIT License
test
Unsurprisingly this routine is unnecessarily complicated. Code is hard to understand, needs better abstraction.
Users might find value in inline comments for conditions.
Hi, wondered if functionality to edit an existing rule (from str) was on the roadmap?
I'd like to be able to add meta fields to my existing rules programmatically
Cheers
Is there a workaround at the moment for adding a string of bytes to a rule in Yara's format?
Looked around in documentation/examples and I haven't found anything.
Eg:
my_string = " 80 42 00 8b 4d 08 ba 01 00 00 00 ff d0 81 c4 00 01 00 00 5"
Then programmatically build the rule such that I end up with:
`$a = {80 42 00 8b 4d 08 ba 01 00 00 00 ff d0 81 c4 00 01 00 00 5}`
Thank you for help!
The current design for condition groups might create some problems. Conditions might get complex enough to warrant its own object. This would enable unique processing of complex conditions without bogging down the code.
Is it possible to use variables when crafting condition statements.
Eg rule.add_condition(condition="pe.imphash() == "+ str(myvar)
)
Currently this fails when attempting to compile with Yara-python
I want to pip install yara_tools
.
rule.add_strings(strings="HelloWorld",condition="$IDENTIFIER at 0")
This possibly relates to enhancing condition functionality, but the template for conditions has no idea to map integers assigned to unitialized string variables. Meaning, the template cannot identifiy which incremental integer is represented in the rule.
This bug might be the start of an entire rewrite of relating strings & conditions in an entirely separate object. Not entirely sure yet if this is a bug based on how many might be actually using YARA.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.